Tanoda
OnDraggedEvent.cs
Go to the documentation of this file.
1using System.Collections;
2using System.Collections.Generic;
3using GILES.Interface;
4using UnityEngine;
5using UnityEngine.UI;
6
7public 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;
15 PanoramaManager.instance.SetTextureName(picname);
16 }
17 desc.permission = false;
18 }
19}
Every item's cell must contain this script
Texture2D GetFullRes(string filename)
static GlobalTextureHolder instance