Tanoda
OnDraggedQuizPicture.cs
Go to the documentation of this file.
1
using
System.Collections;
2
using
System.Collections.Generic;
3
using
GILES
.
Interface
;
4
using
UnityEngine
;
5
using
UnityEngine
.
UI
;
6
7
public
class
OnDraggedQuizPicture
: MonoBehaviour
8
{
9
private
InputField _if;
10
11
void
Start()
12
{
13
_if = GetComponent<InputField>();
14
}
15
16
void
OnSimpleDragAndDropEvent(
DragAndDropCell
.
DropEventDescriptor
desc)
17
{
18
if
(desc.item.GetComponentInChildren<RawImage>())
19
{
20
_if.text = desc.item.GetComponent<
pb_PrefabBrowserItemButton
>().asset.name;
21
}
22
desc.permission =
false
;
23
}
24
}
DragAndDropCell.DropEventDescriptor
Definition:
DragAndDropCell.cs:29
DragAndDropCell
Every item's cell must contain this script
Definition:
DragAndDropCell.cs:12
GILES.Interface.pb_PrefabBrowserItemButton
Definition:
pb_PrefabBrowserItemButton.cs:31
OnDraggedQuizPicture
Definition:
OnDraggedQuizPicture.cs:8
GILES.Interface
Definition:
pb_AutoStageItemEditor.cs:9
GILES
Definition:
pb_CollectionUtil.cs:4
UnityEngine.UI
Definition:
HSVPicker/UtilityScripts/BoxSlider.cs:7
UnityEngine
Definition:
HSVPicker/UtilityScripts/BoxSlider.cs:7
Source
Assets
Scripts
SimpleDragAndDrop
Scripts
OnDraggedQuizPicture.cs
Generated by
1.9.3