Tanoda
OnDraggedEvent.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
OnDraggedEvent
: MonoBehaviour
8
{
9
void
OnSimpleDragAndDropEvent(
DragAndDropCell
.
DropEventDescriptor
desc)
10
{
11
if
(desc.item.GetComponentInChildren<RawImage>())
12
{
13
var picname = desc.item.GetComponentInChildren<
pb_PrefabBrowserItemButton
>().asset.name;
14
PanoramaManager
.
instance
.SetTexture(
GlobalTextureHolder
.
instance
.
GetFullRes
(picname));
15
PanoramaManager
.
instance
.SetTextureName(picname);
16
}
17
desc.permission =
false
;
18
}
19
}
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
GILES.pb_MonoBehaviourSingleton.instance
static T instance
Definition:
pb_MonoBehaviourSingleton.cs:28
GlobalTextureHolder
Definition:
GlobalTextureHolder.cs:8
GlobalTextureHolder.GetFullRes
Texture2D GetFullRes(string filename)
Definition:
GlobalTextureHolder.cs:53
GlobalTextureHolder.instance
static GlobalTextureHolder instance
Definition:
GlobalTextureHolder.cs:9
OnDraggedEvent
Definition:
OnDraggedEvent.cs:8
PanoramaManager
Definition:
PanoramaManager.cs:10
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
OnDraggedEvent.cs
Generated by
1.9.3