Ejemplo n.º 1
0
    public override void OnInspectorGUI()
    {
        #if UNITY_2019_1_OR_NEWER
        PrefabTarget.enableDebugMode = EditorGUILayout.Toggle("Enable Debug Mode", PrefabTarget.enableDebugMode);
        PrefabTarget.showSkeleton    = EditorGUILayout.Toggle("Show Skeleton", PrefabTarget.showSkeleton);



        buildHandSignalControlGUI();
        EditorGUIUtils.GUILine();
        buildMovingCursorControlGUI();
        EditorGUIUtils.GUILine();
        buildGrabControlGUI();
        EditorGUIUtils.GUILine();
        buildRawTrackingControlGUI();
        #else
        EditorGUILayout.HelpBox("Hand Gesutre Prefab is only accessible on Unity 2019 or newer version. However you can still access Hand Gesture features by code.\n\nCheck https://sdk.madgaze.com/ for more information.", MessageType.Error);
        #endif
    }