/// <summary> /// This function is called when the MonoBehaviour will be destroyed. /// </summary> protected virtual void OnDestroy() { if ((DragPoints != null) && (CanvasTransform != null) && DragPoints.ContainsKey(CanvasTransform.GetInstanceID())) { DragPoints.Remove(CanvasTransform.GetInstanceID()); } }
public void ConvCanvasTransform(CanvasTransform ct) { _currentNode.AddComponent(new FusCanvasTransform(ct.CanvasRenderMode == Scene.CanvasRenderMode.Screen ? Serialization.V1.CanvasRenderMode.Screen : Serialization.V1.CanvasRenderMode.World) { Name = ct.Name, Scale = ct.Scale, ScreenSpaceSize = ct.ScreenSpaceSize, Size = ct.Size }); }
protected void Awake() { _searchField = (CanvasTransform.Find("SearchField").gameObject as GameObject).GetComponent <InputField>(); OnSearchValueUpdate(""); }