public override void OnInspectorGUI() { EasyFingerGestues t = (EasyFingerGestues)target; t.showProperties = HTEditorToolKit.DrawTitleFoldOut(t.showProperties, "Finger Gestues properties"); if (t.showProperties) { t.enable = EditorGUILayout.Toggle("Enable Gestues", t.enable); HTEditorToolKit.DrawSeparatorLine(); EditorGUILayout.Separator(); t.InputAreaCenter = EditorGUILayout.Vector2Field("Area Center", t.InputAreaCenter); t.InputAreaSize = EditorGUILayout.Vector2Field("Area radius", t.InputAreaSize); EditorGUILayout.Separator(); } }
///---------------------------------------------------------------------------------- /// <summary> /// mono 行为 /// </summary> ///---------------------------------------------------------------------------------- void Start() { instance = this; InstallGestureRecognizer(); }