“hujiajun” hai 1 ano
pai
achega
fa445d6eb4
Modificáronse 100 ficheiros con 0 adicións e 5880 borrados
  1. 0 9
      Runtime/DOTween/Editor.meta
  2. BIN=BIN
      Runtime/DOTween/Editor/DOTweenEditor.dll
  3. 0 24
      Runtime/DOTween/Editor/DOTweenEditor.dll.meta
  4. 0 8
      Runtime/SDK/Common/Base/Editor.meta
  5. 0 8
      Runtime/SDK/Common/Base/Editor/Base.meta
  6. 0 22
      Runtime/SDK/Common/Base/Editor/Base/MenuBase.cs
  7. 0 11
      Runtime/SDK/Common/Base/Editor/Base/MenuBase.cs.meta
  8. 0 8
      Runtime/SDK/Common/Base/Editor/BuildSettings.meta
  9. 0 7
      Runtime/SDK/Common/Base/Editor/BuildSettings/ParmScriptableObject.cs
  10. 0 11
      Runtime/SDK/Common/Base/Editor/BuildSettings/ParmScriptableObject.cs.meta
  11. 0 530
      Runtime/SDK/Common/Base/Editor/BuildSettings/SDKSettings.cs
  12. 0 11
      Runtime/SDK/Common/Base/Editor/BuildSettings/SDKSettings.cs.meta
  13. 0 8
      Runtime/SDK/Common/StandardAssets/Shaders/Editor.meta
  14. 0 16
      Runtime/SDK/Common/StandardAssets/Shaders/Editor/Demos.StandardShader.Inspectors.asmdef
  15. 0 7
      Runtime/SDK/Common/StandardAssets/Shaders/Editor/Demos.StandardShader.Inspectors.asmdef.meta
  16. 0 366
      Runtime/SDK/Common/StandardAssets/Shaders/Editor/ShadowShaderGUI.cs
  17. 0 11
      Runtime/SDK/Common/StandardAssets/Shaders/Editor/ShadowShaderGUI.cs.meta
  18. 0 718
      Runtime/SDK/Common/StandardAssets/Shaders/Editor/ShadowStandardShaderGUI.cs
  19. 0 11
      Runtime/SDK/Common/StandardAssets/Shaders/Editor/ShadowStandardShaderGUI.cs.meta
  20. 0 9
      Runtime/SDK/Modules/Module_CurvedUI/CurvedUI/Scripts/Editor.meta
  21. 0 173
      Runtime/SDK/Modules/Module_CurvedUI/CurvedUI/Scripts/Editor/ConditionalCompilationUtility.cs
  22. 0 12
      Runtime/SDK/Modules/Module_CurvedUI/CurvedUI/Scripts/Editor/ConditionalCompilationUtility.cs.meta
  23. 0 24
      Runtime/SDK/Modules/Module_CurvedUI/CurvedUI/Scripts/Editor/CurvedUIHandSwitcherEditor.cs
  24. 0 12
      Runtime/SDK/Modules/Module_CurvedUI/CurvedUI/Scripts/Editor/CurvedUIHandSwitcherEditor.cs.meta
  25. 0 74
      Runtime/SDK/Modules/Module_CurvedUI/CurvedUI/Scripts/Editor/CurvedUIInputModuleEditor.cs
  26. 0 12
      Runtime/SDK/Modules/Module_CurvedUI/CurvedUI/Scripts/Editor/CurvedUIInputModuleEditor.cs.meta
  27. 0 74
      Runtime/SDK/Modules/Module_CurvedUI/CurvedUI/Scripts/Editor/CurvedUIScriptOrder.cs
  28. 0 12
      Runtime/SDK/Modules/Module_CurvedUI/CurvedUI/Scripts/Editor/CurvedUIScriptOrder.cs.meta
  29. 0 639
      Runtime/SDK/Modules/Module_CurvedUI/CurvedUI/Scripts/Editor/CurvedUISettingsEditor.cs
  30. 0 12
      Runtime/SDK/Modules/Module_CurvedUI/CurvedUI/Scripts/Editor/CurvedUISettingsEditor.cs.meta
  31. 0 8
      Runtime/SDK/Modules/Module_DetectorSystem/SCNoticeDetector/Editor.meta
  32. 0 59
      Runtime/SDK/Modules/Module_DetectorSystem/SCNoticeDetector/Editor/SCNoticeDetectorEditor.cs
  33. 0 11
      Runtime/SDK/Modules/Module_DetectorSystem/SCNoticeDetector/Editor/SCNoticeDetectorEditor.cs.meta
  34. 0 8
      Runtime/SDK/Modules/Module_DetectorSystem/SCVolumeDetector/Scripts/Editor.meta
  35. 0 116
      Runtime/SDK/Modules/Module_DetectorSystem/SCVolumeDetector/Scripts/Editor/SCVolumeDetectorEditor.cs
  36. 0 11
      Runtime/SDK/Modules/Module_DetectorSystem/SCVolumeDetector/Scripts/Editor/SCVolumeDetectorEditor.cs.meta
  37. 0 8
      Runtime/SDK/Modules/Module_FPS/Editor.meta
  38. 0 16
      Runtime/SDK/Modules/Module_FPS/Editor/MenuFPS.cs
  39. 0 13
      Runtime/SDK/Modules/Module_FPS/Editor/MenuFPS.cs.meta
  40. 0 8
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor.meta
  41. 0 9
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/Baker.meta
  42. 0 176
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/Baker/BakerInspector.cs
  43. 0 12
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/Baker/BakerInspector.cs.meta
  44. 0 52
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/Baker/GenericBakerInspector.cs
  45. 0 8
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/Baker/GenericBakerInspector.cs.meta
  46. 0 9
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/Baker/Helpers.meta
  47. 0 38
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/Baker/Helpers/AnimationUtilityExtended.cs
  48. 0 12
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/Baker/Helpers/AnimationUtilityExtended.cs.meta
  49. 0 22
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/Baker/Helpers/SaveClipFolderPanel.cs
  50. 0 11
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/Baker/Helpers/SaveClipFolderPanel.cs.meta
  51. 0 52
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/Baker/HumanoidBakerInspector.cs
  52. 0 12
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/Baker/HumanoidBakerInspector.cs.meta
  53. 0 9
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK.meta
  54. 0 38
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/AimIKInspector.cs
  55. 0 10
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/AimIKInspector.cs.meta
  56. 0 189
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/AimPoserInspector.cs
  57. 0 10
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/AimPoserInspector.cs.meta
  58. 0 38
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/ArmIKInspector.cs
  59. 0 12
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/ArmIKInspector.cs.meta
  60. 0 115
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/BipedIKInspector.cs
  61. 0 10
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/BipedIKInspector.cs.meta
  62. 0 120
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/BipedIKSolversInspector.cs
  63. 0 10
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/BipedIKSolversInspector.cs.meta
  64. 0 38
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/CCDIKInspector.cs
  65. 0 10
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/CCDIKInspector.cs.meta
  66. 0 67
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/ConstraintsInspector.cs
  67. 0 10
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/ConstraintsInspector.cs.meta
  68. 0 87
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/EditorIKInspector.cs
  69. 0 11
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/EditorIKInspector.cs.meta
  70. 0 38
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/FABRIKInspector.cs
  71. 0 10
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/FABRIKInspector.cs.meta
  72. 0 35
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/FABRIKRootInspector.cs
  73. 0 10
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/FABRIKRootInspector.cs.meta
  74. 0 99
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/FingerRigInspector.cs
  75. 0 10
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/FingerRigInspector.cs.meta
  76. 0 107
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/FullBodyBipedIKInspector.cs
  77. 0 10
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/FullBodyBipedIKInspector.cs.meta
  78. 0 13
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/GroundingInspector.cs
  79. 0 12
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/GroundingInspector.cs.meta
  80. 0 106
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/IKEffectorInspector.cs
  81. 0 10
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/IKEffectorInspector.cs.meta
  82. 0 27
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/IKExecutionOrderInspector.cs
  83. 0 10
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/IKExecutionOrderInspector.cs.meta
  84. 0 67
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/IKInspector.cs
  85. 0 10
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/IKInspector.cs.meta
  86. 0 103
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/IKSolverAimInspector.cs
  87. 0 10
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/IKSolverAimInspector.cs.meta
  88. 0 101
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/IKSolverArmInspector.cs
  89. 0 12
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/IKSolverArmInspector.cs.meta
  90. 0 94
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/IKSolverFABRIKRootInspector.cs
  91. 0 10
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/IKSolverFABRIKRootInspector.cs.meta
  92. 0 339
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/IKSolverFullBodyBipedInspector.cs
  93. 0 10
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/IKSolverFullBodyBipedInspector.cs.meta
  94. 0 80
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/IKSolverFullBodyInspector.cs
  95. 0 10
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/IKSolverFullBodyInspector.cs.meta
  96. 0 104
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/IKSolverHeuristicInspector.cs
  97. 0 10
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/IKSolverHeuristicInspector.cs.meta
  98. 0 19
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/IKSolverInspector.cs
  99. 0 10
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/IKSolverInspector.cs.meta
  100. 0 100
      Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/IKSolverLegInspector.cs

+ 0 - 9
Runtime/DOTween/Editor.meta

@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: 4a96ed178b8bb304fb74fcfb0b265464
-folderAsset: yes
-timeCreated: 1515640315
-licenseType: Free
-DefaultImporter:
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

BIN=BIN
Runtime/DOTween/Editor/DOTweenEditor.dll


+ 0 - 24
Runtime/DOTween/Editor/DOTweenEditor.dll.meta

@@ -1,24 +0,0 @@
-fileFormatVersion: 2
-guid: b0d88a64d2391ba4f9b77f612eb5442d
-timeCreated: 1474962307
-licenseType: Free
-PluginImporter:
-  serializedVersion: 1
-  iconMap: {}
-  executionOrder: {}
-  isPreloaded: 0
-  platformData:
-    Any:
-      enabled: 0
-      settings: {}
-    Editor:
-      enabled: 1
-      settings:
-        DefaultValueInitialized: true
-    WindowsStoreApps:
-      enabled: 0
-      settings:
-        CPU: AnyCPU
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 8
Runtime/SDK/Common/Base/Editor.meta

@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 53cee41dced46f943b3cf948a8ccc7c1
-folderAsset: yes
-DefaultImporter:
-  externalObjects: {}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 8
Runtime/SDK/Common/Base/Editor/Base.meta

@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: e63d6b244a5ff3f4881a891f2ad15581
-folderAsset: yes
-DefaultImporter:
-  externalObjects: {}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 22
Runtime/SDK/Common/Base/Editor/Base/MenuBase.cs

@@ -1,22 +0,0 @@
-using UnityEngine;
-using UnityEditor;
-
-namespace SC.Menu {
-    public abstract class MenuBase : MonoBehaviour {
-        protected static void CreatePrefab(string ResourcesPath) {
-            GameObject go = (GameObject)PrefabUtility.InstantiatePrefab(Resources.Load(ResourcesPath));
-
-            if(go) {
-                GameObjectUtility.SetParentAndAlign(go, Selection.activeTransform == null ? null : Selection.activeTransform.gameObject);
-                go.transform.SetParent(Selection.activeTransform);
-                Undo.RegisterCreatedObjectUndo(go, go.name);
-                Selection.activeTransform = go.transform;
-                //Debug.Log("Create Sucess ! Prefab:" + ResourcesPath);
-            } else {
-                //Debug.LogError("Create Failed ! Prefab:" + ResourcesPath);
-            }
-
-        }
-    }
-}
-

+ 0 - 11
Runtime/SDK/Common/Base/Editor/Base/MenuBase.cs.meta

@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 691541ccdb30be045aa7308ef311629f
-MonoImporter:
-  externalObjects: {}
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 8
Runtime/SDK/Common/Base/Editor/BuildSettings.meta

@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 0d262ea02c80b8d40944176d517ccf44
-folderAsset: yes
-DefaultImporter:
-  externalObjects: {}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 7
Runtime/SDK/Common/Base/Editor/BuildSettings/ParmScriptableObject.cs

@@ -1,7 +0,0 @@
-using System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
-
-public class ParmScriptableObject : ScriptableObject {
-    public bool IsIgnor;
-}

+ 0 - 11
Runtime/SDK/Common/Base/Editor/BuildSettings/ParmScriptableObject.cs.meta

@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 0dd28e83602bdfd40961136960a88505
-MonoImporter:
-  externalObjects: {}
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 530
Runtime/SDK/Common/Base/Editor/BuildSettings/SDKSettings.cs

@@ -1,530 +0,0 @@
-using System;
-using System.Collections;
-using System.Collections.Generic;
-using System.IO;
-using System.Reflection;
-using UnityEditor;
-using UnityEditor.Build;
-using UnityEditor.Build.Reporting;
-using UnityEngine;
-
-public class SDKSettings : EditorWindow {
-
-
-    [InitializeOnLoadMethod]
-    static void CheckSettings() {
-        if(EditorUserBuildSettings.activeBuildTarget == BuildTarget.Android) {
-
-            if(!IsIgnor && IsApply() == false) {
-                Init();  
-            } 
-        } 
-    }
-
-    static EditorWindow window;
-
-   [MenuItem("SDK/ProjectSettings")]
-    static void Init() {
-        if(window == null) {
-          //  window = EditorWindow.GetWindow(typeof(SDKSettings));
-         //   window.autoRepaintOnSceneChange = true;
-          //  window.minSize = new Vector2(720, 420);
-        //    window.maxSize = new Vector2(720, 420);
-        }
-    }
-    static bool isQualityApply = true;
-    static bool isPlayerApply = true; 
-    void OnGUI() {
-        GUILayout.Space(10);
-        NoticWindow();
-        
-        if(EditorUserBuildSettings.activeBuildTarget != BuildTarget.Android) {
-            return;
-        }
-
-        GUILayout.Space(10);
-        isQualityApply = QualityWindow();
-        GUILayout.Space(10);
-        isPlayerApply = PlayerWindow();
-
-
-        if(IsApply() == false) {
-
-            GUILayout.Space(60);
-            ApplyWindow();
-        }
-
-    }
-
-    static bool IsApply() {
-        if(EditorUserBuildSettings.activeBuildTarget != BuildTarget.Android) {
-            return true;
-        }
-
-        if(PlayerCheck() && QualityCheck())
-            return true;
-
-        return false;
-    }
-
-    static bool IsIgnor { get { return GetAssetDataBase(); } }
-    static void Ignor() {
-        SaveAssetDataBase(true);
-    }
-    static string assetPath = "Assets/SDK/Common/Base/Editor/BuildSettings/Parm.asset";
-    static void SaveAssetDataBase(bool isIgnor) {
-        ParmScriptableObject asset;
-        if(File.Exists(assetPath)) {
-            asset = AssetDatabase.LoadAssetAtPath<ParmScriptableObject>(assetPath);
-        } else {
-            asset =(ParmScriptableObject) CreateInstance("ParmScriptableObject"); 
-            AssetDatabase.CreateAsset(asset, assetPath);
-        }
-        asset.IsIgnor = isIgnor;
-        AssetDatabase.SaveAssets();
-        AssetDatabase.Refresh();//must Refresh
-    }
-
-    static bool GetAssetDataBase() {
-        ParmScriptableObject asset;
-        if(File.Exists(assetPath)) {
-            asset = AssetDatabase.LoadAssetAtPath<ParmScriptableObject>(assetPath);
-            return asset.IsIgnor;
-        } 
-        return false;  
-    }
-     
-    static void NoticWindow() {
-        GUILayout.Space(20);
-        EditorGUILayout.BeginHorizontal();
-
-        GUIStyle styleNoticeText = new GUIStyle();
-        styleNoticeText.alignment = TextAnchor.MiddleCenter;
-        styleNoticeText.fontSize = 14;
-        styleNoticeText.fontStyle = FontStyle.Bold;
-
-        if(EditorUserBuildSettings.activeBuildTarget == BuildTarget.Android) {
-            GUILayout.Label("Notice: Recommended Project settings for SDK", styleNoticeText);
-        } else {
-            GUILayout.Label("This Only Effect When Platform Select Android", styleNoticeText);
-        }
-
-        EditorGUILayout.EndHorizontal();
-        GUILayout.Space(20);
-    }
-
-    void ApplyWindow() { 
-        EditorGUILayout.BeginHorizontal();
-        EditorGUILayout.LabelField("", GUILayout.Width(100));
-
-        GUIStyle styleApply = new GUIStyle("LargeButton");
-        styleApply.alignment = TextAnchor.MiddleCenter; 
-        if(GUILayout.Button("Apply", styleApply)) {
-            QualitySet(); 
-            PlayerSet();
-        }
-        
-        EditorGUILayout.LabelField("", GUILayout.Width(100));
-
-        GUIStyle style1Apply = new GUIStyle("LargeButton");
-        styleApply.alignment = TextAnchor.MiddleCenter;
-        if(GUILayout.Button("Ignor", style1Apply)) {
-            Ignor();
-            window.Close();
-            Close();
-        }
-
-        EditorGUILayout.LabelField("", GUILayout.Width(100));
-        //if(GUILayout.Button(strBtnApply[(int)elanguage], styleApply, GUILayout.Width(100), GUILayout.Height(30))) {
-        //    EditorApplication.delayCall += OnClickApply;
-        //}
-        //styleApply = null;
-
-        //EditorGUILayout.LabelField("", GUILayout.Width(200));
-        //if(GUILayout.Button("xxx", GUILayout.Width(100), GUILayout.Height(30))) {
-
-        //}
-        EditorGUILayout.EndHorizontal();
-    }
-
-    #region ProjectSettings->Player
-
-    static bool PlayerWindow() {
-        bool isApply = true;
-
-        GUILayout.Label("PlayerSettings", EditorStyles.boldLabel);
-
-        EditorGUILayout.BeginHorizontal();
-
-        GUILayout.Label("Minimum API Level:API26(or higher)");
-
-        if(PlayerSettings.Android.minSdkVersion < AndroidSdkVersions.AndroidApiLevel26) {
-
-            GUIStyle styleSlide = new GUIStyle();
-            styleSlide.normal.textColor = Color.red;
-            GUILayout.Label("Failed", styleSlide);
-            isApply = false;
-        } else {
-
-            GUIStyle styleApplied = new GUIStyle();
-            styleApplied.normal.textColor = Color.green;
-            GUILayout.Label("Applied", styleApplied);
-        }
-
-        EditorGUILayout.EndHorizontal();
-
-        EditorGUILayout.BeginHorizontal();
-
-        GUILayout.Label("APICompatibilityLevel:.NET4.x");
-
-        if(PlayerSettings.GetApiCompatibilityLevel(BuildTargetGroup.Android) != ApiCompatibilityLevel.NET_4_6) {
-
-            GUIStyle styleSlide = new GUIStyle();
-            styleSlide.normal.textColor = Color.red;
-            GUILayout.Label("Failed", styleSlide);
-            isApply = false;
-        } else {
-
-            GUIStyle styleApplied = new GUIStyle();
-            styleApplied.normal.textColor = Color.green;
-            GUILayout.Label("Applied", styleApplied);
-        }
-
-        EditorGUILayout.EndHorizontal();
-
-
-        EditorGUILayout.BeginHorizontal();
-
-        GUILayout.Label("Multithreaded Rendering:True"); 
-
-        if(PlayerSettings.GetMobileMTRendering(BuildTargetGroup.Android)==false) {
-
-            GUIStyle styleSlide = new GUIStyle();
-            styleSlide.normal.textColor = Color.red;
-            GUILayout.Label("Failed", styleSlide);
-            isApply = false;
-
-        } else {
-
-            GUIStyle styleApplied = new GUIStyle();
-            styleApplied.normal.textColor = Color.green;
-            GUILayout.Label("Applied", styleApplied);
-
-        }
-
-        EditorGUILayout.EndHorizontal();
-
-
-        EditorGUILayout.BeginHorizontal();
-
-        GUILayout.Label("Graphics APIs:Only OpenGLES3");
-        
-        UnityEngine.Rendering.GraphicsDeviceType[] gapi = PlayerSettings.GetGraphicsAPIs(BuildTarget.Android);
-
-        if(gapi.Length != 1 || gapi[0] != UnityEngine.Rendering.GraphicsDeviceType.OpenGLES3) {
-
-            GUIStyle styleSlide = new GUIStyle();
-            styleSlide.normal.textColor = Color.red;
-            GUILayout.Label("Failed", styleSlide);
-            isApply = false;
-        } else {
-
-            GUIStyle styleApplied = new GUIStyle();
-            styleApplied.normal.textColor = Color.green;
-            GUILayout.Label("Applied", styleApplied);
-        }
-
-        EditorGUILayout.EndHorizontal();
-
-
-        EditorGUILayout.BeginHorizontal();
-
-        int staticBatchingValue = 0;
-        int dynamicBatchingValue = 0;
-        Type playerSettingsType = typeof(PlayerSettings);
-        MethodInfo method = playerSettingsType.GetMethod("GetBatchingForPlatform",BindingFlags.NonPublic | BindingFlags.Static);
-        object[] param = new object[] { BuildTarget.Android, staticBatchingValue, dynamicBatchingValue };
-        method.Invoke(null, param);
-
-        GUILayout.Label("Dynamic Batching:Enable");
-        if ((int)param[2] != 1)
-        {
-            GUIStyle styleSlide = new GUIStyle();
-            styleSlide.normal.textColor = Color.red;
-            GUILayout.Label("Failed", styleSlide);
-            isApply = false;
-        }
-        else
-        {
-            GUIStyle styleApplied = new GUIStyle();
-            styleApplied.normal.textColor = Color.green;
-            GUILayout.Label("Applied", styleApplied);
-        }
-
-        EditorGUILayout.EndHorizontal();
-
-
-        EditorGUILayout.BeginHorizontal();
-
-        GUILayout.Label("Asset Serialization:ForceText");
-        if (EditorSettings.serializationMode != SerializationMode.ForceText)
-        {
-            GUIStyle styleSlide = new GUIStyle();
-            styleSlide.normal.textColor = Color.red;
-            GUILayout.Label("Failed", styleSlide);
-            isApply = false;
-        }
-        else
-        {
-
-            GUIStyle styleApplied = new GUIStyle();
-            styleApplied.normal.textColor = Color.green;
-            GUILayout.Label("Applied", styleApplied);
-        }
-        EditorGUILayout.EndHorizontal();
-
-
-        EditorGUILayout.BeginHorizontal();
-
-        GUILayout.Label("Orientation:Landscape Left");
-        if(PlayerSettings.defaultInterfaceOrientation != UIOrientation.LandscapeLeft) {
-
-            GUIStyle styleSlide = new GUIStyle();
-            styleSlide.normal.textColor = Color.red;
-            GUILayout.Label("Failed", styleSlide);
-            isApply = false;
-        } else {
-
-            GUIStyle styleApplied = new GUIStyle();
-            styleApplied.normal.textColor = Color.green;
-            GUILayout.Label("Applied", styleApplied);
-        }
-        EditorGUILayout.EndHorizontal();
-
-        return isApply;
-         
-    }
-    static bool PlayerCheck() {
-        bool isApply = true;
-        if(PlayerSettings.Android.minSdkVersion < AndroidSdkVersions.AndroidApiLevel26) {
-            isApply = false;
-        }
-        if(PlayerSettings.GetApiCompatibilityLevel(BuildTargetGroup.Android) != ApiCompatibilityLevel.NET_4_6) {
-            isApply = false;
-        }
-        if(PlayerSettings.GetMobileMTRendering(BuildTargetGroup.Android) == false) {
-            isApply = false;
-        }
-
-        UnityEngine.Rendering.GraphicsDeviceType[] gapi = PlayerSettings.GetGraphicsAPIs(BuildTarget.Android);
-
-        if(gapi.Length != 1 || gapi[0] != UnityEngine.Rendering.GraphicsDeviceType.OpenGLES3) {
-            isApply = false;
-        }
-
-        if(PlayerSettings.defaultInterfaceOrientation != UIOrientation.LandscapeLeft) {
-            isApply = false;
-        }
-
-        if(EditorSettings.serializationMode != SerializationMode.ForceText) {
-            isApply = false;
-        }
-
-        int staticBatchingValue = 0;
-        int dynamicBatchingValue = 0;
-        Type playerSettingsType = typeof(PlayerSettings);
-        MethodInfo method = playerSettingsType.GetMethod("GetBatchingForPlatform", BindingFlags.NonPublic | BindingFlags.Static);
-        object[] param = new object[] { BuildTarget.Android, staticBatchingValue, dynamicBatchingValue };
-        method.Invoke(null, param);
-        if((int)param[2] != 1) {
-            isApply = false;
-        }
-
-        return isApply;
-    }
-    static void PlayerSet() {
-
-        PlayerSettings.Android.minSdkVersion = AndroidSdkVersions.AndroidApiLevel26;
-        PlayerSettings.Android.targetSdkVersion = AndroidSdkVersions.AndroidApiLevelAuto;
-
-        PlayerSettings.SetApiCompatibilityLevel(BuildTargetGroup.Android, ApiCompatibilityLevel.NET_4_6);
-
-        PlayerSettings.SetMobileMTRendering(BuildTargetGroup.Android, true);
-
-        PlayerSettings.SetUseDefaultGraphicsAPIs(BuildTarget.Android,false);
-        PlayerSettings.SetGraphicsAPIs(BuildTarget.Android,new UnityEngine.Rendering.GraphicsDeviceType[1] { UnityEngine.Rendering.GraphicsDeviceType.OpenGLES3 });
-
-        PlayerSettings.defaultInterfaceOrientation = UIOrientation.LandscapeLeft;
-        EditorSettings.serializationMode = SerializationMode.ForceText;
-        
-        Type playerSettingsType = typeof(PlayerSettings);
-        MethodInfo method = playerSettingsType.GetMethod("SetBatchingForPlatform", BindingFlags.NonPublic | BindingFlags.Static);
-        int staticBatchingValue = 1;
-        int dynamicBatchingValue = 1;
-        object[] param = new object[] { BuildTarget.Android, staticBatchingValue, dynamicBatchingValue };
-        method.Invoke(null, param);
-
-
-    }
-
-    [InitializeOnLoadMethod]
-    static void PlayerSetMust() {
-        if(PlayerSettings.productName == "New Unity Project") {
-            PlayerSettings.productName = "SDK";
-        }
-        if(PlayerSettings.companyName == "DefaultCompany") {
-            PlayerSettings.companyName = "XR";
-        }
-
-    }
-
-    #endregion
-
-    #region ProjectSettings->Tags and Layers
-
-    //[InitializeOnLoadMethod]
-    //static void TagsAndLayerSet() {
-    //    bool isExist = false;
-    //    foreach(var item in UnityEditorInternal.InternalEditorUtility.layers) {
-    //        if(item == "focus") {
-    //            isExist = true;
-    //            break;
-    //        }
-    //    }
-    //    if(isExist == false) {
-    //        AutoAddLayer("focus");
-    //    }
-
-    //    isExist = false;
-    //    foreach(var item in UnityEditorInternal.InternalEditorUtility.layers) {
-    //        if(item == "no light") {
-    //            isExist = true;
-    //            break;
-    //        }
-    //    }
-    //    if(isExist == false) {
-    //        AutoAddLayer("no light"); 
-    //    }
-
-
-    //    isExist = false;
-    //    foreach(var item in UnityEditorInternal.InternalEditorUtility.tags) {
-    //        if(item == "SlamCamera") {
-    //            isExist = true;
-    //            break;
-    //        }
-    //    }
-    //    if(isExist == false) {
-    //        UnityEditorInternal.InternalEditorUtility.AddTag("SlamCamera");
-    //    }
-    //}
-    static void AutoAddLayer(string layer) {
-        SerializedObject tagMagager = new SerializedObject(AssetDatabase.LoadAllAssetsAtPath("ProjectSettings/Tagmanager.asset"));
-        SerializedProperty it = tagMagager.GetIterator();
-        while(it.NextVisible(true)) {
-            if(it.name.Equals("layers")) {
-                for(int i = 0; i < it.arraySize; i++) {
-                    if(i <= 7) {
-                        continue;
-                    }
-                    SerializedProperty sp = it.GetArrayElementAtIndex(i);
-                    if(string.IsNullOrEmpty(sp.stringValue)) {
-                        sp.stringValue = layer;
-                        tagMagager.ApplyModifiedProperties();
-                        return;
-                    }
-                }
-            }
-        }
-    }
-
-    //static void AutoAddLayer(string layer) {
-    //    if(!HasThisLayer(layer)) {
-    //        SerializedObject tagMagager = new SerializedObject(AssetDatabase.LoadAllAssetsAtPath("ProjectSettings/Tagmanager.asset"));
-    //        SerializedProperty it = tagMagager.GetIterator();
-    //        while(it.NextVisible(true)) {
-    //            if(it.name.Equals("layers")) {
-    //                for(int i = 0; i < it.arraySize; i++) {
-    //                    if(i <= 7) {
-    //                        continue;
-    //                    }
-    //                    SerializedProperty sp = it.GetArrayElementAtIndex(i);
-    //                    if(string.IsNullOrEmpty(sp.stringValue)) {
-    //                        sp.stringValue = layer;
-    //                        tagMagager.ApplyModifiedProperties();
-    //                        return;
-    //                    }
-    //                }
-    //            }
-    //        }
-    //    }
-    //}
-    //static bool HasThisLayer(string layer) {
-    //    //先清除已保存的
-    //    SerializedObject tagManager = new SerializedObject(AssetDatabase.LoadAllAssetsAtPath("ProjectSettings/Tagmanager.asset"));
-    //    SerializedProperty it = tagManager.GetIterator();
-    //    while(it.NextVisible(true)) {
-    //        if(it.name.Equals("layers")) {
-    //            for(int i = 0; i < it.arraySize; i++) {
-    //                if(i <= 7) {
-    //                    continue;
-    //                }
-    //                SerializedProperty sp = it.GetArrayElementAtIndex(i);
-    //                if(!string.IsNullOrEmpty(sp.stringValue)) {
-    //                    if(sp.stringValue.Equals(layer)) {
-    //                        sp.stringValue = string.Empty;
-    //                        tagManager.ApplyModifiedProperties();
-    //                    }
-    //                }
-    //            }
-    //        }
-    //    }
-    //    for(int i = 0; i < UnityEditorInternal.InternalEditorUtility.layers.Length; i++) {
-    //        if(UnityEditorInternal.InternalEditorUtility.layers[i].Contains(layer)) {
-    //            return true;
-    //        }
-    //    }
-    //    return false;
-    //}
-    #endregion
-
-    #region ProjectSettings->Quality
-
-    static bool QualityWindow() {
-        bool isApply = true;
-        GUILayout.Label("QulitySettings", EditorStyles.boldLabel);
-
-        EditorGUILayout.BeginHorizontal();
-
-        GUILayout.Label("QulityLevel:Middle");
-
-        if(QualitySettings.GetQualityLevel() != 2) {
-
-            GUIStyle styleSlide = new GUIStyle();
-            styleSlide.normal.textColor = Color.red;
-            GUILayout.Label("Failed", styleSlide);
-            isApply = false;
-        } else {
-
-            GUIStyle styleApplied = new GUIStyle();
-            styleApplied.normal.textColor = Color.green;
-            GUILayout.Label("Applied", styleApplied);
-        }
-
-        EditorGUILayout.EndHorizontal();
-
-        return isApply;
-    }
-    static bool QualityCheck() {
-        bool isApply = true;
-        if(QualitySettings.GetQualityLevel() != 2) {
-            isApply = false;
-        }
-        return isApply;
-    }
-    static void QualitySet() {
-        QualitySettings.SetQualityLevel(2);
-    }
-
-    #endregion
-}

+ 0 - 11
Runtime/SDK/Common/Base/Editor/BuildSettings/SDKSettings.cs.meta

@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 8f7a56740cbd5794289c6c93cee503f7
-MonoImporter:
-  externalObjects: {}
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 8
Runtime/SDK/Common/StandardAssets/Shaders/Editor.meta

@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: b2355745fff8492c8b0fa928e7d62373
-folderAsset: yes
-DefaultImporter:
-  externalObjects: {}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 16
Runtime/SDK/Common/StandardAssets/Shaders/Editor/Demos.StandardShader.Inspectors.asmdef

@@ -1,16 +0,0 @@
-{
-    "name": "Demos.StandardShader.Inspectors",
-    "references": [
-        "ShadowSDK.Examples"
-    ],
-    "includePlatforms": [
-        "Editor"
-    ],
-    "excludePlatforms": [],
-    "allowUnsafeCode": false,
-    "overrideReferences": false,
-    "precompiledReferences": [],
-    "autoReferenced": true,
-    "defineConstraints": [],
-    "versionDefines": []
-}

+ 0 - 7
Runtime/SDK/Common/StandardAssets/Shaders/Editor/Demos.StandardShader.Inspectors.asmdef.meta

@@ -1,7 +0,0 @@
-fileFormatVersion: 2
-guid: 1987465f85c541e3b0bc01967722eb01
-AssemblyDefinitionImporter:
-  externalObjects: {}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 366
Runtime/SDK/Common/StandardAssets/Shaders/Editor/ShadowShaderGUI.cs

@@ -1,366 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-using System;
-using UnityEditor;
-using UnityEngine;
-using UnityEngine.Rendering;
-using Object = UnityEngine.Object;
-
-/// <summary>
-/// A custom base shader inspector for ShadowSDK shaders.
-/// </summary>
-public abstract class ShadowShaderGUI : ShaderGUI {
-    protected enum RenderingMode {
-        Opaque,
-        TransparentCutout,
-        Transparent,
-        PremultipliedTransparent,
-        Additive,
-        Custom
-    }
-
-    protected enum CustomRenderingMode {
-        Opaque,
-        TransparentCutout,
-        Transparent
-    }
-
-    protected enum DepthWrite {
-        Off,
-        On
-    }
-
-    protected static class BaseStyles {
-        public static string renderingOptionsTitle = "Rendering Options";
-        public static string advancedOptionsTitle = "Advanced Options";
-        public static string renderTypeName = "RenderType";
-        public static string renderingModeName = "_Mode";
-        public static string customRenderingModeName = "_CustomMode";
-        public static string sourceBlendName = "_SrcBlend";
-        public static string destinationBlendName = "_DstBlend";
-        public static string blendOperationName = "_BlendOp";
-        public static string depthTestName = "_ZTest";
-        public static string depthWriteName = "_ZWrite";
-        public static string depthOffsetFactorName = "_ZOffsetFactor";
-        public static string depthOffsetUnitsName = "_ZOffsetUnits";
-        public static string colorWriteMaskName = "_ColorWriteMask";
-
-        public static string cullModeName = "_CullMode";
-        public static string renderQueueOverrideName = "_RenderQueueOverride";
-
-        public static string alphaTestOnName = "_ALPHATEST_ON";
-        public static string alphaBlendOnName = "_ALPHABLEND_ON";
-
-        public static readonly string[] renderingModeNames = Enum.GetNames(typeof(RenderingMode));
-        public static readonly string[] customRenderingModeNames = Enum.GetNames(typeof(CustomRenderingMode));
-        public static readonly string[] depthWriteNames = Enum.GetNames(typeof(DepthWrite));
-        public static GUIContent sourceBlend = new GUIContent("Source Blend", "Blend Mode of Newly Calculated Color");
-        public static GUIContent destinationBlend = new GUIContent("Destination Blend", "Blend Mode of Existing Color");
-        public static GUIContent blendOperation = new GUIContent("Blend Operation", "Operation for Blending New Color With Existing Color");
-        public static GUIContent depthTest = new GUIContent("Depth Test", "How Should Depth Testing Be Performed.");
-        public static GUIContent depthWrite = new GUIContent("Depth Write", "Controls Whether Pixels From This Material Are Written to the Depth Buffer");
-        public static GUIContent depthOffsetFactor = new GUIContent("Depth Offset Factor", "Scales the Maximum Z Slope, with Respect to X or Y of the Polygon");
-        public static GUIContent depthOffsetUnits = new GUIContent("Depth Offset Units", "Scales the Minimum Resolvable Depth Buffer Value");
-        public static GUIContent colorWriteMask = new GUIContent("Color Write Mask", "Color Channel Writing Mask");
-        public static GUIContent cullMode = new GUIContent("Cull Mode", "Triangle Culling Mode");
-        public static GUIContent renderQueueOverride = new GUIContent("Render Queue Override", "Manually Override the Render Queue");
-    }
-
-    protected bool initialized;
-
-    protected MaterialProperty renderingMode;
-    protected MaterialProperty customRenderingMode;
-    protected MaterialProperty sourceBlend;
-    protected MaterialProperty destinationBlend;
-    protected MaterialProperty blendOperation;
-    protected MaterialProperty depthTest;
-    protected MaterialProperty depthWrite;
-    protected MaterialProperty depthOffsetFactor;
-    protected MaterialProperty depthOffsetUnits;
-    protected MaterialProperty colorWriteMask;
-    protected MaterialProperty cullMode;
-    protected MaterialProperty renderQueueOverride;
-
-    protected const string LegacyShadersPath = "Legacy Shaders/";
-    protected const string TransparentShadersPath = "/Transparent/";
-    protected const string TransparentCutoutShadersPath = "/Transparent/Cutout/";
-
-    public override void OnGUI(MaterialEditor materialEditor, MaterialProperty[] props) {
-        Material material = (Material)materialEditor.target;
-
-        FindProperties(props);
-        Initialize(material);
-
-        RenderingModeOptions(materialEditor);
-    }
-
-    protected virtual void FindProperties(MaterialProperty[] props) {
-        renderingMode = FindProperty(BaseStyles.renderingModeName, props);
-        customRenderingMode = FindProperty(BaseStyles.customRenderingModeName, props);
-        sourceBlend = FindProperty(BaseStyles.sourceBlendName, props);
-        destinationBlend = FindProperty(BaseStyles.destinationBlendName, props);
-        blendOperation = FindProperty(BaseStyles.blendOperationName, props);
-        depthTest = FindProperty(BaseStyles.depthTestName, props);
-        depthWrite = FindProperty(BaseStyles.depthWriteName, props);
-        depthOffsetFactor = FindProperty(BaseStyles.depthOffsetFactorName, props);
-        depthOffsetUnits = FindProperty(BaseStyles.depthOffsetUnitsName, props);
-        colorWriteMask = FindProperty(BaseStyles.colorWriteMaskName, props);
-
-        cullMode = FindProperty(BaseStyles.cullModeName, props);
-        renderQueueOverride = FindProperty(BaseStyles.renderQueueOverrideName, props);
-    }
-
-    protected void Initialize(Material material) {
-        if(!initialized) {
-            MaterialChanged(material);
-            initialized = true;
-        }
-    }
-
-    protected virtual void MaterialChanged(Material material) {
-        SetupMaterialWithRenderingMode(material,
-            (RenderingMode)renderingMode.floatValue,
-            (CustomRenderingMode)customRenderingMode.floatValue,
-            (int)renderQueueOverride.floatValue);
-    }
-
-    protected void RenderingModeOptions(MaterialEditor materialEditor) {
-        EditorGUI.BeginChangeCheck();
-
-        EditorGUI.showMixedValue = renderingMode.hasMixedValue;
-        RenderingMode mode = (RenderingMode)renderingMode.floatValue;
-        EditorGUI.BeginChangeCheck();
-        mode = (RenderingMode)EditorGUILayout.Popup(renderingMode.displayName, (int)mode, BaseStyles.renderingModeNames);
-
-        if(EditorGUI.EndChangeCheck()) {
-            materialEditor.RegisterPropertyChangeUndo(renderingMode.displayName);
-            renderingMode.floatValue = (float)mode;
-
-            Object[] targets = renderingMode.targets;
-
-            foreach(Object target in targets) {
-                MaterialChanged((Material)target);
-            }
-        }
-
-        EditorGUI.showMixedValue = false;
-
-        if((RenderingMode)renderingMode.floatValue == RenderingMode.Custom) {
-            EditorGUI.indentLevel += 2;
-            customRenderingMode.floatValue = EditorGUILayout.Popup(customRenderingMode.displayName, (int)customRenderingMode.floatValue, BaseStyles.customRenderingModeNames);
-            materialEditor.ShaderProperty(sourceBlend, BaseStyles.sourceBlend);
-            materialEditor.ShaderProperty(destinationBlend, BaseStyles.destinationBlend);
-            materialEditor.ShaderProperty(blendOperation, BaseStyles.blendOperation);
-            materialEditor.ShaderProperty(depthTest, BaseStyles.depthTest);
-            depthWrite.floatValue = EditorGUILayout.Popup(depthWrite.displayName, (int)depthWrite.floatValue, BaseStyles.depthWriteNames);
-            materialEditor.ShaderProperty(depthOffsetFactor, BaseStyles.depthOffsetFactor);
-            materialEditor.ShaderProperty(depthOffsetUnits, BaseStyles.depthOffsetUnits);
-            materialEditor.ShaderProperty(colorWriteMask, BaseStyles.colorWriteMask);
-            EditorGUI.indentLevel -= 2;
-        }
-
-        if(!PropertyEnabled(depthWrite)) {
-
-        }
-
-        materialEditor.ShaderProperty(cullMode, BaseStyles.cullMode);
-    }
-
-    protected static void SetupMaterialWithRenderingMode(Material material, RenderingMode mode, CustomRenderingMode customMode, int renderQueueOverride) {
-        // If we aren't switching to Custom, then set default values for all RenderingMode types. Otherwise keep whatever user had before
-        if(mode != RenderingMode.Custom) {
-            material.SetInt(BaseStyles.blendOperationName, (int)BlendOp.Add);
-            material.SetInt(BaseStyles.depthTestName, (int)CompareFunction.LessEqual);
-            material.SetFloat(BaseStyles.depthOffsetFactorName, 0.0f);
-            material.SetFloat(BaseStyles.depthOffsetUnitsName, 0.0f);
-            material.SetInt(BaseStyles.colorWriteMaskName, (int)ColorWriteMask.All);
-        }
-
-        switch(mode) {
-            case RenderingMode.Opaque: {
-                    material.SetOverrideTag(BaseStyles.renderTypeName, BaseStyles.renderingModeNames[(int)RenderingMode.Opaque]);
-                    material.SetInt(BaseStyles.customRenderingModeName, (int)CustomRenderingMode.Opaque);
-                    material.SetInt(BaseStyles.sourceBlendName, (int)BlendMode.One);
-                    material.SetInt(BaseStyles.destinationBlendName, (int)BlendMode.Zero);
-                    material.SetInt(BaseStyles.depthWriteName, (int)DepthWrite.On);
-                    material.DisableKeyword(BaseStyles.alphaTestOnName);
-                    material.DisableKeyword(BaseStyles.alphaBlendOnName);
-                    material.renderQueue = (renderQueueOverride >= 0) ? renderQueueOverride : (int)RenderQueue.Geometry;
-                }
-                break;
-
-            case RenderingMode.TransparentCutout: {
-                    material.SetOverrideTag(BaseStyles.renderTypeName, BaseStyles.renderingModeNames[(int)RenderingMode.TransparentCutout]);
-                    material.SetInt(BaseStyles.customRenderingModeName, (int)CustomRenderingMode.TransparentCutout);
-                    material.SetInt(BaseStyles.sourceBlendName, (int)BlendMode.One);
-                    material.SetInt(BaseStyles.destinationBlendName, (int)BlendMode.Zero);
-                    material.SetInt(BaseStyles.depthWriteName, (int)DepthWrite.On);
-                    material.EnableKeyword(BaseStyles.alphaTestOnName);
-                    material.DisableKeyword(BaseStyles.alphaBlendOnName);
-                    material.renderQueue = (renderQueueOverride >= 0) ? renderQueueOverride : (int)RenderQueue.AlphaTest;
-                }
-                break;
-
-            case RenderingMode.Transparent: {
-                    material.SetOverrideTag(BaseStyles.renderTypeName, BaseStyles.renderingModeNames[(int)RenderingMode.Transparent]);
-                    material.SetInt(BaseStyles.customRenderingModeName, (int)CustomRenderingMode.Transparent);
-                    material.SetInt(BaseStyles.sourceBlendName, (int)BlendMode.SrcAlpha);
-                    material.SetInt(BaseStyles.destinationBlendName, (int)BlendMode.OneMinusSrcAlpha);
-                    material.SetInt(BaseStyles.depthWriteName, (int)DepthWrite.Off);
-                    material.DisableKeyword(BaseStyles.alphaTestOnName);
-                    material.EnableKeyword(BaseStyles.alphaBlendOnName);
-                    material.renderQueue = (renderQueueOverride >= 0) ? renderQueueOverride : (int)RenderQueue.Transparent;
-                }
-                break;
-
-            case RenderingMode.PremultipliedTransparent: {
-                    material.SetOverrideTag(BaseStyles.renderTypeName, BaseStyles.renderingModeNames[(int)RenderingMode.Transparent]);
-                    material.SetInt(BaseStyles.customRenderingModeName, (int)CustomRenderingMode.Transparent);
-                    material.SetInt(BaseStyles.sourceBlendName, (int)BlendMode.One);
-                    material.SetInt(BaseStyles.destinationBlendName, (int)BlendMode.OneMinusSrcAlpha);
-                    material.SetInt(BaseStyles.depthWriteName, (int)DepthWrite.Off);
-                    material.DisableKeyword(BaseStyles.alphaTestOnName);
-                    material.EnableKeyword(BaseStyles.alphaBlendOnName);
-                    material.renderQueue = (renderQueueOverride >= 0) ? renderQueueOverride : (int)RenderQueue.Transparent;
-                }
-                break;
-
-            case RenderingMode.Additive: {
-                    material.SetOverrideTag(BaseStyles.renderTypeName, BaseStyles.renderingModeNames[(int)RenderingMode.Transparent]);
-                    material.SetInt(BaseStyles.customRenderingModeName, (int)CustomRenderingMode.Transparent);
-                    material.SetInt(BaseStyles.sourceBlendName, (int)BlendMode.One);
-                    material.SetInt(BaseStyles.destinationBlendName, (int)BlendMode.One);
-                    material.SetInt(BaseStyles.depthWriteName, (int)DepthWrite.Off);
-                    material.DisableKeyword(BaseStyles.alphaTestOnName);
-                    material.EnableKeyword(BaseStyles.alphaBlendOnName);
-                    material.renderQueue = (renderQueueOverride >= 0) ? renderQueueOverride : (int)RenderQueue.Transparent;
-                }
-                break;
-
-            case RenderingMode.Custom: {
-                    material.SetOverrideTag(BaseStyles.renderTypeName, BaseStyles.customRenderingModeNames[(int)customMode]);
-                    // _SrcBlend, _DstBlend, _BlendOp, _ZTest, _ZWrite, _ColorWriteMask are controlled by UI.
-
-                    switch(customMode) {
-                        case CustomRenderingMode.Opaque: {
-                                material.DisableKeyword(BaseStyles.alphaTestOnName);
-                                material.DisableKeyword(BaseStyles.alphaBlendOnName);
-                            }
-                            break;
-
-                        case CustomRenderingMode.TransparentCutout: {
-                                material.EnableKeyword(BaseStyles.alphaTestOnName);
-                                material.DisableKeyword(BaseStyles.alphaBlendOnName);
-                            }
-                            break;
-
-                        case CustomRenderingMode.Transparent: {
-                                material.DisableKeyword(BaseStyles.alphaTestOnName);
-                                material.EnableKeyword(BaseStyles.alphaBlendOnName);
-                            }
-                            break;
-                    }
-
-                    material.renderQueue = (renderQueueOverride >= 0) ? renderQueueOverride : material.renderQueue;
-                }
-                break;
-        }
-    }
-
-    /// <summary>
-    /// Check whether shader feature is enabled
-    /// </summary>
-    /// <param name="property">float property to check against</param>
-    /// <returns>false if 0.0f, true otherwise</returns>
-    protected static bool PropertyEnabled(MaterialProperty property) {
-        return !property.floatValue.Equals(0.0f);
-    }
-
-    /// <summary>
-    /// Get the value of a given float property for a material
-    /// </summary>
-    /// <param name="material">material to check</param>
-    /// <param name="propertyName">name of property against material</param>
-    /// <returns>if has property, then value of that property for current material, null otherwise</returns>
-    protected static float? GetFloatProperty(Material material, string propertyName) {
-        if(material.HasProperty(propertyName)) {
-            return material.GetFloat(propertyName);
-        }
-
-        return null;
-    }
-
-    /// <summary>
-    /// Get the value of a given vector property for a material
-    /// </summary>
-    /// <param name="material">material to check</param>
-    /// <param name="propertyName">name of property against material</param>
-    /// <returns>if has property, then value of that property for current material, null otherwise</returns>
-    protected static Vector4? GetVectorProperty(Material material, string propertyName) {
-        if(material.HasProperty(propertyName)) {
-            return material.GetVector(propertyName);
-        }
-
-        return null;
-    }
-
-    /// <summary>
-    /// Get the value of a given color property for a material
-    /// </summary>
-    /// <param name="material">material to check</param>
-    /// <param name="propertyName">name of property against material</param>
-    /// <returns>if has property, then value of that property for current material, null otherwise</returns>
-    protected static Color? GetColorProperty(Material material, string propertyName) {
-        if(material.HasProperty(propertyName)) {
-            return material.GetColor(propertyName);
-        }
-
-        return null;
-    }
-
-    /// <summary>
-    /// Sets the shader feature controlled by keyword and property name parameters active or inactive
-    /// </summary>
-    /// <param name="material">Material to modify</param>
-    /// <param name="keywordName">Keyword of shader feature</param>
-    /// <param name="propertyName">Associated property name for shader feature</param>
-    /// <param name="propertyValue">float to be treated as a boolean flag for setting shader feature active or inactive</param>
-    protected static void SetShaderFeatureActive(Material material, string keywordName, string propertyName, float? propertyValue) {
-        if(propertyValue.HasValue) {
-            if(keywordName != null) {
-                if(!propertyValue.Value.Equals(0.0f)) {
-                    material.EnableKeyword(keywordName);
-                } else {
-                    material.DisableKeyword(keywordName);
-                }
-            }
-
-            material.SetFloat(propertyName, propertyValue.Value);
-        }
-    }
-
-    /// <summary>
-    /// Sets vector property against associated material
-    /// </summary>
-    /// <param name="material">material to control</param>
-    /// <param name="propertyName">name of property to set</param>
-    /// <param name="propertyValue">value of property to set</param>
-    protected static void SetVectorProperty(Material material, string propertyName, Vector4? propertyValue) {
-        if(propertyValue.HasValue) {
-            material.SetVector(propertyName, propertyValue.Value);
-        }
-    }
-
-    /// <summary>
-    /// Set color property against associated material
-    /// </summary>
-    /// <param name="material">material to control</param>
-    /// <param name="propertyName">name of property to set</param>
-    /// <param name="propertyValue">value of property to set</param>
-    protected static void SetColorProperty(Material material, string propertyName, Color? propertyValue) {
-        if(propertyValue.HasValue) {
-            material.SetColor(propertyName, propertyValue.Value);
-        }
-    }
-}

+ 0 - 11
Runtime/SDK/Common/StandardAssets/Shaders/Editor/ShadowShaderGUI.cs.meta

@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 23df42fa0d2774d47a8ae159856e35a4
-MonoImporter:
-  externalObjects: {}
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 718
Runtime/SDK/Common/StandardAssets/Shaders/Editor/ShadowStandardShaderGUI.cs

@@ -1,718 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-using System;
-using System.IO;
-using UnityEditor;
-using UnityEngine;
-using UnityEngine.Rendering;
-using Object = UnityEngine.Object;
-
-
-
-public class ShadowStandardShaderGUI : ShadowShaderGUI {
-    protected enum AlbedoAlphaMode {
-        Transparency,
-        Metallic,
-        Smoothness
-    }
-
-    protected static class Styles {
-        public static string primaryMapsTitle = "Main Maps";
-        public static string renderingOptionsTitle = "Rendering Options";
-        public static string advancedOptionsTitle = "Advanced Options";
-        public static string fluentOptionsTitle = "Fluent Options";
-        public static string instancedColorName = "_InstancedColor";
-        public static string instancedColorFeatureName = "_INSTANCED_COLOR";
-        public static string stencilComparisonName = "_StencilComparison";
-        public static string stencilOperationName = "_StencilOperation";
-        public static string disableAlbedoMapName = "_DISABLE_ALBEDO_MAP";
-        public static string albedoMapAlphaMetallicName = "_METALLIC_TEXTURE_ALBEDO_CHANNEL_A";
-        public static string albedoMapAlphaSmoothnessName = "_SMOOTHNESS_TEXTURE_ALBEDO_CHANNEL_A";
-        public static string propertiesComponentHelp = "Use the {0} component(s) to control {1} properties.";
-        public static readonly string[] albedoAlphaModeNames = Enum.GetNames(typeof(AlbedoAlphaMode));
-        public static GUIContent instancedColor = new GUIContent("Instanced Color", "Enable a Unique Color Per Instance");
-        public static GUIContent albedo = new GUIContent("Albedo", "Albedo (RGB) and Transparency (Alpha)");
-        public static GUIContent albedoAssignedAtRuntime = new GUIContent("Assigned at Runtime", "As an optimization albedo operations are disabled when no albedo texture is specified. If a albedo texture will be specified at runtime enable this option.");
-        public static GUIContent alphaCutoff = new GUIContent("Alpha Cutoff", "Threshold for Alpha Cutoff");
-        public static GUIContent metallic = new GUIContent("Metallic", "Metallic Value");
-        public static GUIContent smoothness = new GUIContent("Smoothness", "Smoothness Value");
-        public static GUIContent enableChannelMap = new GUIContent("Channel Map", "Enable Channel Map, a Channel Packing Texture That Follows Unity's Standard Channel Setup");
-        public static GUIContent channelMap = new GUIContent("Channel Map", "Metallic (Red), Occlusion (Green), Emission (Blue), Smoothness (Alpha)");
-        public static GUIContent enableNormalMap = new GUIContent("Normal Map", "Enable Normal Map");
-        public static GUIContent normalMap = new GUIContent("Normal Map");
-        public static GUIContent normalMapScale = new GUIContent("Scale", "Scales the Normal Map Normal");
-        public static GUIContent enableEmission = new GUIContent("Emission", "Enable Emission");
-        public static GUIContent emissiveColor = new GUIContent("Color");
-        public static GUIContent enableTriplanarMapping = new GUIContent("Triplanar Mapping", "Enable Triplanar Mapping, a technique which programmatically generates UV coordinates");
-        public static GUIContent enableLocalSpaceTriplanarMapping = new GUIContent("Local Space", "If True Triplanar Mapping is Calculated in Local Space");
-        public static GUIContent triplanarMappingBlendSharpness = new GUIContent("Blend Sharpness", "The Power of the Blend with the Normal");
-        public static GUIContent directionalLight = new GUIContent("Directional Light", "Affected by One Unity Directional Light");
-        public static GUIContent specularHighlights = new GUIContent("Specular Highlights", "Calculate Specular Highlights");
-        public static GUIContent sphericalHarmonics = new GUIContent("Spherical Harmonics", "Read From Spherical Harmonics Data for Ambient Light");
-        public static GUIContent reflections = new GUIContent("Reflections", "Calculate Glossy Reflections");
-        public static GUIContent refraction = new GUIContent("Refraction", "Calculate Refraction");
-        public static GUIContent refractiveIndex = new GUIContent("Refractive Index", "Ratio of Indices of Refraction at the Surface Interface");
-        public static GUIContent rimLight = new GUIContent("Rim Light", "Enable Rim (Fresnel) Lighting");
-        public static GUIContent rimColor = new GUIContent("Color", "Rim Highlight Color");
-        public static GUIContent rimPower = new GUIContent("Power", "Rim Highlight Saturation");
-        public static GUIContent vertexColors = new GUIContent("Vertex Colors", "Enable Vertex Color Tinting");
-        public static GUIContent vertexExtrusion = new GUIContent("Vertex Extrusion", "Enable Vertex Extrusion Along the Vertex Normal");
-        public static GUIContent vertexExtrusionValue = new GUIContent("Vertex Extrusion Value", "How Far to Extrude the Vertex Along the Vertex Normal");
-        public static GUIContent blendedClippingWidth = new GUIContent("Blended Clipping Width", "The Width of the Clipping Primitive Clip Fade Region on Non-Cutout Materials");
-        public static GUIContent clippingBorder = new GUIContent("Clipping Border", "Enable a Border Along the Clipping Primitive's Edge");
-        public static GUIContent clippingBorderWidth = new GUIContent("Width", "Width of the Clipping Border");
-        public static GUIContent clippingBorderColor = new GUIContent("Color", "Interpolated Color of the Clipping Border");
-        public static GUIContent nearPlaneFade = new GUIContent("Near Fade", "Objects Disappear (Turn to Black/Transparent) as the Camera (or Hover/Proximity Light) Nears Them");
-        public static GUIContent nearLightFade = new GUIContent("Use Light", "A Hover or Proximity Light (Rather Than the Camera) Determines Near Fade Distance");
-        public static GUIContent fadeBeginDistance = new GUIContent("Fade Begin", "Distance From Camera (or Hover/Proximity Light) to Begin Fade In");
-        public static GUIContent fadeCompleteDistance = new GUIContent("Fade Complete", "Distance From Camera (or Hover/Proximity Light) When Fade is Fully In");
-        public static GUIContent fadeMinValue = new GUIContent("Fade Min Value", "Clamps the Fade Amount to a Minimum Value");
-        public static GUIContent hoverLight = new GUIContent("Hover Light", "Enable utilization of Hover Light(s)");
-        public static GUIContent enableHoverColorOverride = new GUIContent("Override Color", "Override Global Hover Light Color for this Material");
-        public static GUIContent hoverColorOverride = new GUIContent("Color", "Override Hover Light Color");
-        public static GUIContent proximityLight = new GUIContent("Proximity Light", "Enable utilization of Proximity Light(s)");
-        public static GUIContent enableProximityLightColorOverride = new GUIContent("Override Color", "Override Global Proximity Light Color for this Material");
-        public static GUIContent proximityLightCenterColorOverride = new GUIContent("Center Color", "The Override Color of the ProximityLight Gradient at the Center (RGB) and (A) is Gradient Extent");
-        public static GUIContent proximityLightMiddleColorOverride = new GUIContent("Middle Color", "The Override Color of the ProximityLight Gradient at the Middle (RGB) and (A) is Gradient Extent");
-        public static GUIContent proximityLightOuterColorOverride = new GUIContent("Outer Color", "The Override Color of the ProximityLight Gradient at the Outer Edge (RGB) and (A) is Gradient Extent");
-        public static GUIContent proximityLightSubtractive = new GUIContent("Subtractive", "Proximity Lights Remove Light from a Surface, Used to Mimic a Shadow");
-        public static GUIContent proximityLightTwoSided = new GUIContent("Two Sided", "Proximity Lights Apply to Both Sides of a Surface");
-        public static GUIContent fluentLightIntensity = new GUIContent("Light Intensity", "Intensity Scaler for All Hover and Proximity Lights");
-        public static GUIContent roundCorners = new GUIContent("Round Corners", "(Assumes UVs Specify Borders of Surface, Works Best on Unity Cube, Quad, and Plane)");
-        public static GUIContent roundCornerRadius = new GUIContent("Unit Radius", "Rounded Rectangle Corner Unit Sphere Radius");
-        public static GUIContent roundCornerMargin = new GUIContent("Margin %", "Distance From Geometry Edge");
-        public static GUIContent borderLight = new GUIContent("Border Light", "Enable Border Lighting (Assumes UVs Specify Borders of Surface, Works Best on Unity Cube, Quad, and Plane)");
-        public static GUIContent borderLightUsesHoverColor = new GUIContent("Use Hover Color", "Border Color Comes From Hover Light Color Override");
-        public static GUIContent borderLightReplacesAlbedo = new GUIContent("Replace Albedo", "Border Light Replaces Albedo (Replacement Rather Than Additive)");
-        public static GUIContent borderLightOpaque = new GUIContent("Opaque Borders", "Borders Override Alpha Value to Appear Opaque");
-        public static GUIContent borderWidth = new GUIContent("Width %", "Uniform Width Along Border as a % of the Smallest XYZ Dimension");
-        public static GUIContent borderMinValue = new GUIContent("Brightness", "Brightness Scaler");
-        public static GUIContent edgeSmoothingValue = new GUIContent("Edge Smoothing Value", "Smooths Edges When Round Corners and Transparency Is Enabled");
-        public static GUIContent borderLightOpaqueAlpha = new GUIContent("Alpha", "Alpha value of \"opaque\" borders.");
-        public static GUIContent innerGlow = new GUIContent("Inner Glow", "Enable Inner Glow (Assumes UVs Specify Borders of Surface, Works Best on Unity Cube, Quad, and Plane)");
-        public static GUIContent innerGlowColor = new GUIContent("Color", "Inner Glow Color (RGB) and Intensity (A)");
-        public static GUIContent innerGlowPower = new GUIContent("Power", "Power Exponent to Control Glow");
-        public static GUIContent iridescence = new GUIContent("Iridescence", "Simulated Iridescence via Albedo Changes with the Angle of Observation)");
-        public static GUIContent iridescentSpectrumMap = new GUIContent("Spectrum Map", "Spectrum of Colors to Apply (Usually a Texture with ROYGBIV from Left to Right)");
-        public static GUIContent iridescenceIntensity = new GUIContent("Intensity", "Intensity of Iridescence");
-        public static GUIContent iridescenceThreshold = new GUIContent("Threshold", "Threshold Window to Sample From the Spectrum Map");
-        public static GUIContent iridescenceAngle = new GUIContent("Angle", "Surface Angle");
-        public static GUIContent environmentColoring = new GUIContent("Environment Coloring", "Change Color Based on View");
-        public static GUIContent environmentColorThreshold = new GUIContent("Threshold", "Threshold When Environment Coloring Should Appear Based on Surface Normal");
-        public static GUIContent environmentColorIntensity = new GUIContent("Intensity", "Intensity (or Brightness) of the Environment Coloring");
-        public static GUIContent environmentColorX = new GUIContent("X-Axis Color", "Color Along the World Space X-Axis");
-        public static GUIContent environmentColorY = new GUIContent("Y-Axis Color", "Color Along the World Space Y-Axis");
-        public static GUIContent environmentColorZ = new GUIContent("Z-Axis Color", "Color Along the World Space Z-Axis");
-        public static GUIContent stencil = new GUIContent("Enable Stencil Testing", "Enabled Stencil Testing Operations");
-        public static GUIContent stencilReference = new GUIContent("Stencil Reference", "Value to Compared Against (if Comparison is Anything but Always) and/or the Value to be Written to the Buffer (if Either Pass, Fail or ZFail is Set to Replace)");
-        public static GUIContent stencilComparison = new GUIContent("Stencil Comparison", "Function to Compare the Reference Value to");
-        public static GUIContent stencilOperation = new GUIContent("Stencil Operation", "What to do When the Stencil Test Passes");
-        public static GUIContent ignoreZScale = new GUIContent("Ignore Z Scale", "For Features That Use Object Scale (Round Corners, Border Light, etc.), Ignore the Z Scale of the Object");
-    }
-
-    protected MaterialProperty instancedColor;
-    protected MaterialProperty albedoMap;
-    protected MaterialProperty albedoColor;
-    protected MaterialProperty albedoAlphaMode;
-    protected MaterialProperty albedoAssignedAtRuntime;
-    protected MaterialProperty alphaCutoff;
-    protected MaterialProperty enableChannelMap;
-    protected MaterialProperty channelMap;
-    protected MaterialProperty enableNormalMap;
-    protected MaterialProperty normalMap;
-    protected MaterialProperty normalMapScale;
-    protected MaterialProperty enableEmission;
-    protected MaterialProperty emissiveColor;
-    protected MaterialProperty enableTriplanarMapping;
-    protected MaterialProperty enableLocalSpaceTriplanarMapping;
-    protected MaterialProperty triplanarMappingBlendSharpness;
-    protected MaterialProperty metallic;
-    protected MaterialProperty smoothness;
-    protected MaterialProperty directionalLight;
-    protected MaterialProperty specularHighlights;
-    protected MaterialProperty sphericalHarmonics;
-    protected MaterialProperty reflections;
-    protected MaterialProperty refraction;
-    protected MaterialProperty refractiveIndex;
-    protected MaterialProperty rimLight;
-    protected MaterialProperty rimColor;
-    protected MaterialProperty rimPower;
-    protected MaterialProperty vertexColors;
-    protected MaterialProperty vertexExtrusion;
-    protected MaterialProperty vertexExtrusionValue;
-    protected MaterialProperty blendedClippingWidth;
-    protected MaterialProperty clippingBorder;
-    protected MaterialProperty clippingBorderWidth;
-    protected MaterialProperty clippingBorderColor;
-    protected MaterialProperty nearPlaneFade;
-    protected MaterialProperty nearLightFade;
-    protected MaterialProperty fadeBeginDistance;
-    protected MaterialProperty fadeCompleteDistance;
-    protected MaterialProperty fadeMinValue;
-    protected MaterialProperty hoverLight;
-    protected MaterialProperty enableHoverColorOverride;
-    protected MaterialProperty hoverColorOverride;
-    protected MaterialProperty proximityLight;
-    protected MaterialProperty enableProximityLightColorOverride;
-    protected MaterialProperty proximityLightCenterColorOverride;
-    protected MaterialProperty proximityLightMiddleColorOverride;
-    protected MaterialProperty proximityLightOuterColorOverride;
-    protected MaterialProperty proximityLightSubtractive;
-    protected MaterialProperty proximityLightTwoSided;
-    protected MaterialProperty fluentLightIntensity;
-    protected MaterialProperty roundCorners;
-    protected MaterialProperty roundCornerRadius;
-    protected MaterialProperty roundCornerMargin;
-    protected MaterialProperty borderLight;
-    protected MaterialProperty borderLightUsesHoverColor;
-    protected MaterialProperty borderLightReplacesAlbedo;
-    protected MaterialProperty borderLightOpaque;
-    protected MaterialProperty borderWidth;
-    protected MaterialProperty borderMinValue;
-    protected MaterialProperty edgeSmoothingValue;
-    protected MaterialProperty borderLightOpaqueAlpha;
-    protected MaterialProperty innerGlow;
-    protected MaterialProperty innerGlowColor;
-    protected MaterialProperty innerGlowPower;
-    protected MaterialProperty iridescence;
-    protected MaterialProperty iridescentSpectrumMap;
-    protected MaterialProperty iridescenceIntensity;
-    protected MaterialProperty iridescenceThreshold;
-    protected MaterialProperty iridescenceAngle;
-    protected MaterialProperty environmentColoring;
-    protected MaterialProperty environmentColorThreshold;
-    protected MaterialProperty environmentColorIntensity;
-    protected MaterialProperty environmentColorX;
-    protected MaterialProperty environmentColorY;
-    protected MaterialProperty environmentColorZ;
-    protected MaterialProperty stencil;
-    protected MaterialProperty stencilReference;
-    protected MaterialProperty stencilComparison;
-    protected MaterialProperty stencilOperation;
-    protected MaterialProperty ignoreZScale;
-
-    protected override void FindProperties(MaterialProperty[] props) {
-        base.FindProperties(props);
-
-        instancedColor = FindProperty(Styles.instancedColorName, props);
-        albedoMap = FindProperty("_MainTex", props);
-        albedoColor = FindProperty("_Color", props);
-        albedoAlphaMode = FindProperty("_AlbedoAlphaMode", props);
-        albedoAssignedAtRuntime = FindProperty("_AlbedoAssignedAtRuntime", props);
-        alphaCutoff = FindProperty("_Cutoff", props);
-        metallic = FindProperty("_Metallic", props);
-        smoothness = FindProperty("_Smoothness", props);
-        enableChannelMap = FindProperty("_EnableChannelMap", props);
-        channelMap = FindProperty("_ChannelMap", props);
-        enableNormalMap = FindProperty("_EnableNormalMap", props);
-        normalMap = FindProperty("_NormalMap", props);
-        normalMapScale = FindProperty("_NormalMapScale", props);
-        enableEmission = FindProperty("_EnableEmission", props);
-        emissiveColor = FindProperty("_EmissiveColor", props);
-        enableTriplanarMapping = FindProperty("_EnableTriplanarMapping", props);
-        enableLocalSpaceTriplanarMapping = FindProperty("_EnableLocalSpaceTriplanarMapping", props);
-        triplanarMappingBlendSharpness = FindProperty("_TriplanarMappingBlendSharpness", props);
-        directionalLight = FindProperty("_DirectionalLight", props);
-        specularHighlights = FindProperty("_SpecularHighlights", props);
-        sphericalHarmonics = FindProperty("_SphericalHarmonics", props);
-        reflections = FindProperty("_Reflections", props);
-        refraction = FindProperty("_Refraction", props);
-        refractiveIndex = FindProperty("_RefractiveIndex", props);
-        rimLight = FindProperty("_RimLight", props);
-        rimColor = FindProperty("_RimColor", props);
-        rimPower = FindProperty("_RimPower", props);
-        vertexColors = FindProperty("_VertexColors", props);
-        vertexExtrusion = FindProperty("_VertexExtrusion", props);
-        vertexExtrusionValue = FindProperty("_VertexExtrusionValue", props);
-        blendedClippingWidth = FindProperty("_BlendedClippingWidth", props);
-        clippingBorder = FindProperty("_ClippingBorder", props);
-        clippingBorderWidth = FindProperty("_ClippingBorderWidth", props);
-        clippingBorderColor = FindProperty("_ClippingBorderColor", props);
-        nearPlaneFade = FindProperty("_NearPlaneFade", props);
-        nearLightFade = FindProperty("_NearLightFade", props);
-        fadeBeginDistance = FindProperty("_FadeBeginDistance", props);
-        fadeCompleteDistance = FindProperty("_FadeCompleteDistance", props);
-        fadeMinValue = FindProperty("_FadeMinValue", props);
-        hoverLight = FindProperty("_HoverLight", props);
-        enableHoverColorOverride = FindProperty("_EnableHoverColorOverride", props);
-        hoverColorOverride = FindProperty("_HoverColorOverride", props);
-        proximityLight = FindProperty("_ProximityLight", props);
-        enableProximityLightColorOverride = FindProperty("_EnableProximityLightColorOverride", props);
-        proximityLightCenterColorOverride = FindProperty("_ProximityLightCenterColorOverride", props);
-        proximityLightMiddleColorOverride = FindProperty("_ProximityLightMiddleColorOverride", props);
-        proximityLightOuterColorOverride = FindProperty("_ProximityLightOuterColorOverride", props);
-        proximityLightSubtractive = FindProperty("_ProximityLightSubtractive", props);
-        proximityLightTwoSided = FindProperty("_ProximityLightTwoSided", props);
-        fluentLightIntensity = FindProperty("_FluentLightIntensity", props);
-        roundCorners = FindProperty("_RoundCorners", props);
-        roundCornerRadius = FindProperty("_RoundCornerRadius", props);
-        roundCornerMargin = FindProperty("_RoundCornerMargin", props);
-        borderLight = FindProperty("_BorderLight", props);
-        borderLightUsesHoverColor = FindProperty("_BorderLightUsesHoverColor", props);
-        borderLightReplacesAlbedo = FindProperty("_BorderLightReplacesAlbedo", props);
-        borderLightOpaque = FindProperty("_BorderLightOpaque", props);
-        borderWidth = FindProperty("_BorderWidth", props);
-        borderMinValue = FindProperty("_BorderMinValue", props);
-        edgeSmoothingValue = FindProperty("_EdgeSmoothingValue", props);
-        borderLightOpaqueAlpha = FindProperty("_BorderLightOpaqueAlpha", props);
-        innerGlow = FindProperty("_InnerGlow", props);
-        innerGlowColor = FindProperty("_InnerGlowColor", props);
-        innerGlowPower = FindProperty("_InnerGlowPower", props);
-        iridescence = FindProperty("_Iridescence", props);
-        iridescentSpectrumMap = FindProperty("_IridescentSpectrumMap", props);
-        iridescenceIntensity = FindProperty("_IridescenceIntensity", props);
-        iridescenceThreshold = FindProperty("_IridescenceThreshold", props);
-        iridescenceAngle = FindProperty("_IridescenceAngle", props);
-        environmentColoring = FindProperty("_EnvironmentColoring", props);
-        environmentColorThreshold = FindProperty("_EnvironmentColorThreshold", props);
-        environmentColorIntensity = FindProperty("_EnvironmentColorIntensity", props);
-        environmentColorX = FindProperty("_EnvironmentColorX", props);
-        environmentColorY = FindProperty("_EnvironmentColorY", props);
-        environmentColorZ = FindProperty("_EnvironmentColorZ", props);
-        stencil = FindProperty("_Stencil", props);
-        stencilReference = FindProperty("_StencilReference", props);
-        stencilComparison = FindProperty(Styles.stencilComparisonName, props);
-        stencilOperation = FindProperty(Styles.stencilOperationName, props);
-        ignoreZScale = FindProperty("_IgnoreZScale", props);
-    }
-
-    public override void OnGUI(MaterialEditor materialEditor, MaterialProperty[] props) {
-        Material material = (Material)materialEditor.target;
-
-        base.OnGUI(materialEditor, props);
-
-        MainMapOptions(materialEditor, material);
-        RenderingOptions(materialEditor, material);
-        FluentOptions(materialEditor, material);
-        AdvancedOptions(materialEditor, material);
-    }
-
-    public override void AssignNewShaderToMaterial(Material material, Shader oldShader, Shader newShader) {
-        // Cache old shader properties with potentially different names than the new shader.
-        float? smoothness = GetFloatProperty(material, "_Glossiness");
-        float? diffuse = GetFloatProperty(material, "_UseDiffuse");
-        float? specularHighlights = GetFloatProperty(material, "_SpecularHighlights");
-        float? normalMap = null;
-        Texture normalMapTexture = material.GetTexture("_BumpMap");
-        float? normalMapScale = GetFloatProperty(material, "_BumpScale");
-        float? emission = null;
-        Color? emissionColor = GetColorProperty(material, "_EmissionColor");
-        float? reflections = null;
-        float? rimLighting = null;
-        Vector4? textureScaleOffset = null;
-        float? cullMode = GetFloatProperty(material, "_Cull");
-
-        if(oldShader) {
-            if(oldShader.name.Contains("Standard")) {
-                normalMap = material.IsKeywordEnabled("_NORMALMAP") ? 1.0f : 0.0f;
-                emission = material.IsKeywordEnabled("_EMISSION") ? 1.0f : 0.0f;
-                reflections = GetFloatProperty(material, "_GlossyReflections");
-            } else if(oldShader.name.Contains("Fast Configurable")) {
-                normalMap = material.IsKeywordEnabled("_USEBUMPMAP_ON") ? 1.0f : 0.0f;
-                emission = GetFloatProperty(material, "_UseEmissionColor");
-                reflections = GetFloatProperty(material, "_UseReflections");
-                rimLighting = GetFloatProperty(material, "_UseRimLighting");
-                textureScaleOffset = GetVectorProperty(material, "_TextureScaleOffset");
-            }
-        }
-
-        base.AssignNewShaderToMaterial(material, oldShader, newShader);
-
-        // Apply old shader properties to the new shader.
-        SetShaderFeatureActive(material, null, "_Smoothness", smoothness);
-        SetShaderFeatureActive(material, "_DIRECTIONAL_LIGHT", "_DirectionalLight", diffuse);
-        SetShaderFeatureActive(material, "_SPECULAR_HIGHLIGHTS", "_SpecularHighlights", specularHighlights);
-        SetShaderFeatureActive(material, "_NORMAL_MAP", "_EnableNormalMap", normalMap);
-
-        if(normalMapTexture) {
-            material.SetTexture("_NormalMap", normalMapTexture);
-        }
-
-        SetShaderFeatureActive(material, null, "_NormalMapScale", normalMapScale);
-        SetShaderFeatureActive(material, "_EMISSION", "_EnableEmission", emission);
-        SetColorProperty(material, "_EmissiveColor", emissionColor);
-        SetShaderFeatureActive(material, "_REFLECTIONS", "_Reflections", reflections);
-        SetShaderFeatureActive(material, "_RIM_LIGHT", "_RimLight", rimLighting);
-        SetVectorProperty(material, "_MainTex_ST", textureScaleOffset);
-        SetShaderFeatureActive(material, null, "_CullMode", cullMode);
-
-        // Setup the rendering mode based on the old shader.
-        if(oldShader == null || !oldShader.name.Contains(LegacyShadersPath)) {
-            SetupMaterialWithRenderingMode(material, (RenderingMode)material.GetFloat(BaseStyles.renderingModeName), CustomRenderingMode.Opaque, -1);
-        } else {
-            RenderingMode mode = RenderingMode.Opaque;
-
-            if(oldShader.name.Contains(TransparentCutoutShadersPath)) {
-                mode = RenderingMode.TransparentCutout;
-            } else if(oldShader.name.Contains(TransparentShadersPath)) {
-                mode = RenderingMode.Transparent;
-            }
-
-            material.SetFloat(BaseStyles.renderingModeName, (float)mode);
-
-            MaterialChanged(material);
-        }
-    }
-
-    protected override void MaterialChanged(Material material) {
-        SetupMaterialWithAlbedo(material, albedoMap, albedoAlphaMode, albedoAssignedAtRuntime);
-
-        base.MaterialChanged(material);
-    }
-
-    protected void MainMapOptions(MaterialEditor materialEditor, Material material) {
-        GUILayout.Label(Styles.primaryMapsTitle, EditorStyles.boldLabel);
-
-        materialEditor.TexturePropertySingleLine(Styles.albedo, albedoMap, albedoColor);
-
-        if(albedoMap.textureValue == null) {
-            materialEditor.ShaderProperty(albedoAssignedAtRuntime, Styles.albedoAssignedAtRuntime, 2);
-        }
-
-        materialEditor.ShaderProperty(enableChannelMap, Styles.enableChannelMap);
-
-        if(PropertyEnabled(enableChannelMap)) {
-            EditorGUI.indentLevel += 2;
-            materialEditor.TexturePropertySingleLine(Styles.channelMap, channelMap);
-            GUILayout.Box("Metallic (Red), Occlusion (Green), Emission (Blue), Smoothness (Alpha)", EditorStyles.helpBox, new GUILayoutOption[0]);
-            EditorGUI.indentLevel -= 2;
-        }
-
-        if(!PropertyEnabled(enableChannelMap)) {
-            EditorGUI.indentLevel += 2;
-
-            albedoAlphaMode.floatValue = EditorGUILayout.Popup(albedoAlphaMode.displayName, (int)albedoAlphaMode.floatValue, Styles.albedoAlphaModeNames);
-
-            if((RenderingMode)renderingMode.floatValue == RenderingMode.TransparentCutout ||
-                (RenderingMode)renderingMode.floatValue == RenderingMode.Custom) {
-                materialEditor.ShaderProperty(alphaCutoff, Styles.alphaCutoff.text);
-            }
-
-            if((AlbedoAlphaMode)albedoAlphaMode.floatValue != AlbedoAlphaMode.Metallic) {
-                materialEditor.ShaderProperty(metallic, Styles.metallic);
-            }
-
-            if((AlbedoAlphaMode)albedoAlphaMode.floatValue != AlbedoAlphaMode.Smoothness) {
-                materialEditor.ShaderProperty(smoothness, Styles.smoothness);
-            }
-
-            SetupMaterialWithAlbedo(material, albedoMap, albedoAlphaMode, albedoAssignedAtRuntime);
-
-            EditorGUI.indentLevel -= 2;
-        }
-
-        if(PropertyEnabled(directionalLight) ||
-            PropertyEnabled(reflections) ||
-            PropertyEnabled(rimLight) ||
-            PropertyEnabled(environmentColoring)) {
-            materialEditor.ShaderProperty(enableNormalMap, Styles.enableNormalMap);
-
-            if(PropertyEnabled(enableNormalMap)) {
-                EditorGUI.indentLevel += 2;
-                materialEditor.TexturePropertySingleLine(Styles.normalMap, normalMap, normalMap.textureValue != null ? normalMapScale : null);
-                EditorGUI.indentLevel -= 2;
-            }
-        }
-
-        materialEditor.ShaderProperty(enableEmission, Styles.enableEmission);
-
-        if(PropertyEnabled(enableEmission)) {
-            materialEditor.ShaderProperty(emissiveColor, Styles.emissiveColor, 2);
-        }
-
-        materialEditor.ShaderProperty(enableTriplanarMapping, Styles.enableTriplanarMapping);
-
-        if(PropertyEnabled(enableTriplanarMapping)) {
-            materialEditor.ShaderProperty(enableLocalSpaceTriplanarMapping, Styles.enableLocalSpaceTriplanarMapping, 2);
-            materialEditor.ShaderProperty(triplanarMappingBlendSharpness, Styles.triplanarMappingBlendSharpness, 2);
-        }
-
-        EditorGUILayout.Space();
-        materialEditor.TextureScaleOffsetProperty(albedoMap);
-    }
-
-    protected void RenderingOptions(MaterialEditor materialEditor, Material material) {
-        EditorGUILayout.Space();
-        GUILayout.Label(Styles.renderingOptionsTitle, EditorStyles.boldLabel);
-
-        materialEditor.ShaderProperty(directionalLight, Styles.directionalLight);
-
-        if(PropertyEnabled(directionalLight)) {
-            materialEditor.ShaderProperty(specularHighlights, Styles.specularHighlights, 2);
-        }
-
-        materialEditor.ShaderProperty(sphericalHarmonics, Styles.sphericalHarmonics);
-
-        materialEditor.ShaderProperty(reflections, Styles.reflections);
-
-        if(PropertyEnabled(reflections)) {
-            materialEditor.ShaderProperty(refraction, Styles.refraction, 2);
-
-            if(PropertyEnabled(refraction)) {
-                materialEditor.ShaderProperty(refractiveIndex, Styles.refractiveIndex, 4);
-            }
-        }
-
-        materialEditor.ShaderProperty(rimLight, Styles.rimLight);
-
-        if(PropertyEnabled(rimLight)) {
-            materialEditor.ShaderProperty(rimColor, Styles.rimColor, 2);
-            materialEditor.ShaderProperty(rimPower, Styles.rimPower, 2);
-        }
-
-        materialEditor.ShaderProperty(vertexColors, Styles.vertexColors);
-
-        materialEditor.ShaderProperty(vertexExtrusion, Styles.vertexExtrusion);
-
-        if(PropertyEnabled(vertexExtrusion)) {
-            materialEditor.ShaderProperty(vertexExtrusionValue, Styles.vertexExtrusionValue, 2);
-        }
-
-        if((RenderingMode)renderingMode.floatValue != RenderingMode.Opaque &&
-            (RenderingMode)renderingMode.floatValue != RenderingMode.TransparentCutout) {
-            materialEditor.ShaderProperty(blendedClippingWidth, Styles.blendedClippingWidth);
-            //  GUILayout.Box(string.Format(Styles.propertiesComponentHelp, nameof(ClippingPrimitive), "other clipping"), EditorStyles.helpBox, new GUILayoutOption[0]);
-        }
-
-        materialEditor.ShaderProperty(clippingBorder, Styles.clippingBorder);
-
-        if(PropertyEnabled(clippingBorder)) {
-            materialEditor.ShaderProperty(clippingBorderWidth, Styles.clippingBorderWidth, 2);
-            materialEditor.ShaderProperty(clippingBorderColor, Styles.clippingBorderColor, 2);
-            //   GUILayout.Box(string.Format(Styles.propertiesComponentHelp, nameof(ClippingPrimitive), "other clipping"), EditorStyles.helpBox, new GUILayoutOption[0]);
-        }
-
-        materialEditor.ShaderProperty(nearPlaneFade, Styles.nearPlaneFade);
-
-        if(PropertyEnabled(nearPlaneFade)) {
-            materialEditor.ShaderProperty(nearLightFade, Styles.nearLightFade, 2);
-            materialEditor.ShaderProperty(fadeBeginDistance, Styles.fadeBeginDistance, 2);
-            materialEditor.ShaderProperty(fadeCompleteDistance, Styles.fadeCompleteDistance, 2);
-            materialEditor.ShaderProperty(fadeMinValue, Styles.fadeMinValue, 2);
-        }
-    }
-
-    protected void FluentOptions(MaterialEditor materialEditor, Material material) {
-        EditorGUILayout.Space();
-        GUILayout.Label(Styles.fluentOptionsTitle, EditorStyles.boldLabel);
-        RenderingMode mode = (RenderingMode)renderingMode.floatValue;
-        CustomRenderingMode customMode = (CustomRenderingMode)customRenderingMode.floatValue;
-
-        materialEditor.ShaderProperty(hoverLight, Styles.hoverLight);
-
-        if(PropertyEnabled(hoverLight)) {
-            //  GUILayout.Box(string.Format(Styles.propertiesComponentHelp, nameof(HoverLight), Styles.hoverLight.text), EditorStyles.helpBox, new GUILayoutOption[0]);
-
-            materialEditor.ShaderProperty(enableHoverColorOverride, Styles.enableHoverColorOverride, 2);
-
-            if(PropertyEnabled(enableHoverColorOverride)) {
-                materialEditor.ShaderProperty(hoverColorOverride, Styles.hoverColorOverride, 4);
-            }
-        }
-
-        materialEditor.ShaderProperty(proximityLight, Styles.proximityLight);
-
-        if(PropertyEnabled(proximityLight)) {
-            materialEditor.ShaderProperty(enableProximityLightColorOverride, Styles.enableProximityLightColorOverride, 2);
-
-            if(PropertyEnabled(enableProximityLightColorOverride)) {
-                materialEditor.ShaderProperty(proximityLightCenterColorOverride, Styles.proximityLightCenterColorOverride, 4);
-                materialEditor.ShaderProperty(proximityLightMiddleColorOverride, Styles.proximityLightMiddleColorOverride, 4);
-                materialEditor.ShaderProperty(proximityLightOuterColorOverride, Styles.proximityLightOuterColorOverride, 4);
-            }
-
-            materialEditor.ShaderProperty(proximityLightSubtractive, Styles.proximityLightSubtractive, 2);
-            materialEditor.ShaderProperty(proximityLightTwoSided, Styles.proximityLightTwoSided, 2);
-            //   GUILayout.Box(string.Format(Styles.propertiesComponentHelp, nameof(ProximityLight), Styles.proximityLight.text), EditorStyles.helpBox, new GUILayoutOption[0]);
-        }
-
-        materialEditor.ShaderProperty(borderLight, Styles.borderLight);
-
-        if(PropertyEnabled(borderLight)) {
-            materialEditor.ShaderProperty(borderWidth, Styles.borderWidth, 2);
-
-            materialEditor.ShaderProperty(borderMinValue, Styles.borderMinValue, 2);
-
-            materialEditor.ShaderProperty(borderLightReplacesAlbedo, Styles.borderLightReplacesAlbedo, 2);
-
-            if(PropertyEnabled(hoverLight) && PropertyEnabled(enableHoverColorOverride)) {
-                materialEditor.ShaderProperty(borderLightUsesHoverColor, Styles.borderLightUsesHoverColor, 2);
-            }
-
-            if(mode == RenderingMode.TransparentCutout || mode == RenderingMode.Transparent ||
-                (mode == RenderingMode.Custom && customMode == CustomRenderingMode.TransparentCutout) ||
-                (mode == RenderingMode.Custom && customMode == CustomRenderingMode.Transparent)) {
-                materialEditor.ShaderProperty(borderLightOpaque, Styles.borderLightOpaque, 2);
-
-                if(PropertyEnabled(borderLightOpaque)) {
-                    materialEditor.ShaderProperty(borderLightOpaqueAlpha, Styles.borderLightOpaqueAlpha, 4);
-                }
-            }
-        }
-
-        if(PropertyEnabled(hoverLight) || PropertyEnabled(proximityLight) || PropertyEnabled(borderLight)) {
-            materialEditor.ShaderProperty(fluentLightIntensity, Styles.fluentLightIntensity);
-        }
-
-        materialEditor.ShaderProperty(roundCorners, Styles.roundCorners);
-
-        if(PropertyEnabled(roundCorners)) {
-            materialEditor.ShaderProperty(roundCornerRadius, Styles.roundCornerRadius, 2);
-            materialEditor.ShaderProperty(roundCornerMargin, Styles.roundCornerMargin, 2);
-        }
-
-        if(PropertyEnabled(roundCorners) || PropertyEnabled(borderLight)) {
-            materialEditor.ShaderProperty(edgeSmoothingValue, Styles.edgeSmoothingValue);
-        }
-
-        materialEditor.ShaderProperty(innerGlow, Styles.innerGlow);
-
-        if(PropertyEnabled(innerGlow)) {
-            materialEditor.ShaderProperty(innerGlowColor, Styles.innerGlowColor, 2);
-            materialEditor.ShaderProperty(innerGlowPower, Styles.innerGlowPower, 2);
-        }
-
-        materialEditor.ShaderProperty(iridescence, Styles.iridescence);
-
-        if(PropertyEnabled(iridescence)) {
-            EditorGUI.indentLevel += 2;
-            materialEditor.TexturePropertySingleLine(Styles.iridescentSpectrumMap, iridescentSpectrumMap);
-            EditorGUI.indentLevel -= 2;
-            materialEditor.ShaderProperty(iridescenceIntensity, Styles.iridescenceIntensity, 2);
-            materialEditor.ShaderProperty(iridescenceThreshold, Styles.iridescenceThreshold, 2);
-            materialEditor.ShaderProperty(iridescenceAngle, Styles.iridescenceAngle, 2);
-        }
-
-        materialEditor.ShaderProperty(environmentColoring, Styles.environmentColoring);
-
-        if(PropertyEnabled(environmentColoring)) {
-            materialEditor.ShaderProperty(environmentColorThreshold, Styles.environmentColorThreshold, 2);
-            materialEditor.ShaderProperty(environmentColorIntensity, Styles.environmentColorIntensity, 2);
-            materialEditor.ShaderProperty(environmentColorX, Styles.environmentColorX, 2);
-            materialEditor.ShaderProperty(environmentColorY, Styles.environmentColorY, 2);
-            materialEditor.ShaderProperty(environmentColorZ, Styles.environmentColorZ, 2);
-        }
-    }
-
-    protected void AdvancedOptions(MaterialEditor materialEditor, Material material) {
-        EditorGUILayout.Space();
-        GUILayout.Label(Styles.advancedOptionsTitle, EditorStyles.boldLabel);
-
-        EditorGUI.BeginChangeCheck();
-
-        materialEditor.ShaderProperty(renderQueueOverride, BaseStyles.renderQueueOverride);
-
-        if(EditorGUI.EndChangeCheck()) {
-            MaterialChanged(material);
-        }
-
-        // Show the RenderQueueField but do not allow users to directly manipulate it. That is done via the renderQueueOverride.
-        GUI.enabled = false;
-        materialEditor.RenderQueueField();
-
-        // Enable instancing to disable batching. Static and dynamic batching will normalize the object scale, which breaks 
-        // features which utilize object scale.
-        GUI.enabled = !ScaleRequired();
-
-        if(!GUI.enabled && !material.enableInstancing) {
-            material.enableInstancing = true;
-        }
-
-        materialEditor.EnableInstancingField();
-
-        if(material.enableInstancing) {
-            GUI.enabled = true;
-            materialEditor.ShaderProperty(instancedColor, Styles.instancedColor, 2);
-        } else {
-            // When instancing is disable, disable instanced color.
-            SetShaderFeatureActive(material, Styles.instancedColorFeatureName, Styles.instancedColorName, 0.0f);
-        }
-
-        materialEditor.ShaderProperty(stencil, Styles.stencil);
-
-        if(PropertyEnabled(stencil)) {
-            materialEditor.ShaderProperty(stencilReference, Styles.stencilReference, 2);
-            materialEditor.ShaderProperty(stencilComparison, Styles.stencilComparison, 2);
-            materialEditor.ShaderProperty(stencilOperation, Styles.stencilOperation, 2);
-        } else {
-            // When stencil is disable, revert to the default stencil operations. Note, when tested on D3D11 hardware the stencil state 
-            // is still set even when the CompareFunction.Disabled is selected, but this does not seem to affect performance.
-            material.SetInt(Styles.stencilComparisonName, (int)CompareFunction.Disabled);
-            material.SetInt(Styles.stencilOperationName, (int)StencilOp.Keep);
-        }
-
-        if(ScaleRequired()) {
-            materialEditor.ShaderProperty(ignoreZScale, Styles.ignoreZScale);
-        }
-    }
-
-    protected bool ScaleRequired() {
-        return PropertyEnabled(roundCorners) ||
-               PropertyEnabled(borderLight) ||
-               (PropertyEnabled(enableTriplanarMapping) && PropertyEnabled(enableLocalSpaceTriplanarMapping));
-    }
-
-    protected static void SetupMaterialWithAlbedo(Material material, MaterialProperty albedoMap, MaterialProperty albedoAlphaMode, MaterialProperty albedoAssignedAtRuntime) {
-        if(albedoMap.textureValue || PropertyEnabled(albedoAssignedAtRuntime)) {
-            material.DisableKeyword(Styles.disableAlbedoMapName);
-        } else {
-            material.EnableKeyword(Styles.disableAlbedoMapName);
-        }
-
-        switch((AlbedoAlphaMode)albedoAlphaMode.floatValue) {
-            case AlbedoAlphaMode.Transparency: {
-                    material.DisableKeyword(Styles.albedoMapAlphaMetallicName);
-                    material.DisableKeyword(Styles.albedoMapAlphaSmoothnessName);
-                }
-                break;
-
-            case AlbedoAlphaMode.Metallic: {
-                    material.EnableKeyword(Styles.albedoMapAlphaMetallicName);
-                    material.DisableKeyword(Styles.albedoMapAlphaSmoothnessName);
-                }
-                break;
-
-            case AlbedoAlphaMode.Smoothness: {
-                    material.DisableKeyword(Styles.albedoMapAlphaMetallicName);
-                    material.EnableKeyword(Styles.albedoMapAlphaSmoothnessName);
-                }
-                break;
-        }
-    }
-
-
-    protected static void UpgradeShaderForLightweightRenderPipeline() {
-        if(EditorUtility.DisplayDialog("Upgrade Standard Shader?",
-                                        "This will alter the Standard Shader for use with Unity's Lightweight Render Pipeline. You cannot undo this action.",
-                                        "Ok",
-                                        "Cancel")) {
-            string shaderName = "ShadowSDK/Standard";
-            string path = AssetDatabase.GetAssetPath(Shader.Find(shaderName));
-
-            if(!string.IsNullOrEmpty(path)) {
-                try {
-                    string upgradedShader = File.ReadAllText(path);
-                    upgradedShader = upgradedShader.Replace("Tags{ \"RenderType\" = \"Opaque\" \"LightMode\" = \"ForwardBase\" }",
-                                                            "Tags{ \"RenderType\" = \"Opaque\" \"LightMode\" = \"LightweightForward\" }");
-                    upgradedShader = upgradedShader.Replace("//#define _LIGHTWEIGHT_RENDER_PIPELINE",
-                                                            "#define _LIGHTWEIGHT_RENDER_PIPELINE");
-                    File.WriteAllText(path, upgradedShader);
-                    AssetDatabase.Refresh();
-
-                    Debug.LogFormat("Upgraded {0} for use with the Lightweight Render Pipeline.", path);
-                } catch(Exception e) {
-                    Debug.LogException(e);
-                }
-            } else {
-                Debug.LogErrorFormat("Failed to get asset path to: {0}", shaderName);
-            }
-        }
-    }
-
-    [MenuItem("ShadowSDK/Utilities/Upgrade Standard Shader for Lightweight Render Pipeline", true)]
-    protected static bool UpgradeShaderForLightweightRenderPipelineValidate() {
-        // If a scriptable render pipeline is not present, no need to upgrade the shader.
-        return GraphicsSettings.renderPipelineAsset != null;
-    }
-}

+ 0 - 11
Runtime/SDK/Common/StandardAssets/Shaders/Editor/ShadowStandardShaderGUI.cs.meta

@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 1a4fe3a1cc5a9c54f9ad326e1134bf04
-MonoImporter:
-  externalObjects: {}
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 9
Runtime/SDK/Modules/Module_CurvedUI/CurvedUI/Scripts/Editor.meta

@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: 370b2aea2ee318241afde9388830df32
-folderAsset: yes
-timeCreated: 1452993462
-licenseType: Store
-DefaultImporter:
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 173
Runtime/SDK/Modules/Module_CurvedUI/CurvedUI/Scripts/Editor/ConditionalCompilationUtility.cs

@@ -1,173 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Diagnostics;
-using System.Linq;
-using System.Reflection;
-using UnityEditor;
-using Debug = UnityEngine.Debug;
-
-namespace CurvedUI.ConditionalCompilation
-{
-    /// <summary>
-    /// Conditional Compilation Utility (CCU) by Unity
-    /// https://github.com/Unity-Technologies/EditorXR/blob/development/Scripts/Utilities/Editor/ConditionalCompilationUtility.cs
-    /// 
-    /// The Conditional Compilation Utility (CCU) will add defines to the build settings once dependendent classes have been detected. 
-    /// In order for this to be specified in any project without the project needing to include the CCU, at least one custom attribute 
-    /// must be created in the following form:
-    ///
-    /// [Conditional(UNITY_CCU)]                                    // | This is necessary for CCU to pick up the right attributes
-    /// public class OptionalDependencyAttribute : Attribute        // | Must derive from System.Attribute
-    /// {
-    ///     public string dependentClass;                           // | Required field specifying the fully qualified dependent class
-    ///     public string define;                                   // | Required field specifying the define to add
-    /// }
-    ///
-    /// Then, simply specify the assembly attribute(s) you created:
-    /// [assembly: OptionalDependency("UnityEngine.InputNew.InputSystem", "USE_NEW_INPUT")]
-    /// [assembly: OptionalDependency("Valve.VR.IVRSystem", "ENABLE_STEAMVR_INPUT")]
-    /// </summary>
-    [InitializeOnLoad]
-    public static class ConditionalCompilationUtility
-    {
-        const string k_EnableCCU = "UNITY_CCU";
-
-        public static bool enabled {
-            get
-            {
-                var buildTargetGroup = EditorUserBuildSettings.selectedBuildTargetGroup;
-                return PlayerSettings.GetScriptingDefineSymbolsForGroup(buildTargetGroup).Contains(k_EnableCCU);
-            }
-        }
-
-        public static string[] defines { private set; get; }
-
-        static ConditionalCompilationUtility()
-        {
-            var buildTargetGroup = EditorUserBuildSettings.selectedBuildTargetGroup;
-            var defines = PlayerSettings.GetScriptingDefineSymbolsForGroup(buildTargetGroup).Split(';').ToList();
-            if (!defines.Contains(k_EnableCCU, StringComparer.OrdinalIgnoreCase))
-            {
-                defines.Add(k_EnableCCU);
-                PlayerSettings.SetScriptingDefineSymbolsForGroup(buildTargetGroup, string.Join(";", defines.ToArray()));
-
-                // This will trigger another re-compile, which needs to happen, so all the custom attributes will be visible
-                return;
-            }
-
-            var ccuDefines = new List<string> { k_EnableCCU };
-
-            var conditionalAttributeType = typeof(ConditionalAttribute);
-
-            const string kDependentClass = "dependentClass";
-            const string kDefine = "define";
-
-            var attributeTypes = GetAssignableTypes(typeof(Attribute), type =>
-            {
-                var conditionals = (ConditionalAttribute[])type.GetCustomAttributes(conditionalAttributeType, true);
-
-                foreach (var conditional in conditionals)
-                {
-                    if (string.Equals(conditional.ConditionString, k_EnableCCU, StringComparison.OrdinalIgnoreCase))
-                    {
-                        var dependentClassField = type.GetField(kDependentClass);
-                        if (dependentClassField == null)
-                        {
-                            Debug.LogErrorFormat("[CCU] Attribute type {0} missing field: {1}", type.Name, kDependentClass);
-                            return false;
-                        }
-
-                        var defineField = type.GetField(kDefine);
-                        if (defineField == null)
-                        {
-                            Debug.LogErrorFormat("[CCU] Attribute type {0} missing field: {1}", type.Name, kDefine);
-                            return false;
-                        }
-                    }
-                    return true;
-                }
-
-                return false;
-            });
-
-            var dependencies = new Dictionary<string, string>();
-            ForEachAssembly(assembly =>
-            {
-                var typeAttributes = assembly.GetCustomAttributes(false).Cast<Attribute>();
-                foreach (var typeAttribute in typeAttributes)
-                {
-                    if (attributeTypes.Contains(typeAttribute.GetType()))
-                    {
-                        var t = typeAttribute.GetType();
-
-                        // These fields were already validated in a previous step
-                        var dependentClass = t.GetField(kDependentClass).GetValue(typeAttribute) as string;
-                        var define = t.GetField(kDefine).GetValue(typeAttribute) as string;
-
-                        if (!string.IsNullOrEmpty(dependentClass) && !string.IsNullOrEmpty(define) && !dependencies.ContainsKey(dependentClass))
-                            dependencies.Add(dependentClass, define);
-                    }
-                }
-            });
-
-            ForEachAssembly(assembly =>
-            {
-                foreach (var dependency in dependencies)
-                {
-                    var type = assembly.GetType(dependency.Key);
-                    if (type != null)
-                    {
-                        var define = dependency.Value;
-                        if (!defines.Contains(define, StringComparer.OrdinalIgnoreCase))
-                            defines.Add(define);
-
-                        ccuDefines.Add(define);
-                    }
-                }
-            });
-
-            ConditionalCompilationUtility.defines = ccuDefines.ToArray();
-
-            PlayerSettings.SetScriptingDefineSymbolsForGroup(buildTargetGroup, string.Join(";", defines.ToArray()));
-        }
-
-        static void ForEachAssembly(Action<Assembly> callback)
-        {
-            var assemblies = AppDomain.CurrentDomain.GetAssemblies();
-            foreach (var assembly in assemblies)
-            {
-                try
-                {
-                    callback(assembly);
-                }
-                catch (ReflectionTypeLoadException)
-                {
-                    // Skip any assemblies that don't load properly
-                    continue;
-                }
-            }
-        }
-
-        static void ForEachType(Action<Type> callback)
-        {
-            ForEachAssembly(assembly =>
-            {
-                var types = assembly.GetTypes();
-                foreach (var t in types)
-                    callback(t);
-            });
-        }
-
-        static IEnumerable<Type> GetAssignableTypes(Type type, Func<Type, bool> predicate = null)
-        {
-            var list = new List<Type>();
-            ForEachType(t =>
-            {
-                if (type.IsAssignableFrom(t) && !t.IsInterface && !t.IsAbstract && (predicate == null || predicate(t)))
-                    list.Add(t);
-            });
-
-            return list;
-        }
-    }
-}

+ 0 - 12
Runtime/SDK/Modules/Module_CurvedUI/CurvedUI/Scripts/Editor/ConditionalCompilationUtility.cs.meta

@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: 2863d0ba5a803c143b1d0d32c42c3149
-timeCreated: 1558205458
-licenseType: Store
-MonoImporter:
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 24
Runtime/SDK/Modules/Module_CurvedUI/CurvedUI/Scripts/Editor/CurvedUIHandSwitcherEditor.cs

@@ -1,24 +0,0 @@
-using UnityEngine;
-using UnityEditor;
-using System.Collections;
-using System.Reflection;
-
-
-namespace CurvedUI
-{
-    [CustomEditor(typeof(CurvedUIHandSwitcher))]
-    public class CurvedUIHandSwitcherEditor : Editor
-    {
-        override public void OnInspectorGUI()
-        {
-
-            EditorGUILayout.HelpBox("This script moves the Laser Beam to the proper hand of OculusVR or SteamVR rig. Keep it active on the scene.", MessageType.Info);
-            EditorGUILayout.HelpBox("The Laser Beam is just a visual guide - it does not handle interactions.", MessageType.Info);
-
-            CurvedUIHandSwitcher manager = (CurvedUIHandSwitcher)target;
-
-            DrawDefaultInspector();
-        }
-    }
-
-}

+ 0 - 12
Runtime/SDK/Modules/Module_CurvedUI/CurvedUI/Scripts/Editor/CurvedUIHandSwitcherEditor.cs.meta

@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: dcf6766b148aded4590346efb88c0eac
-timeCreated: 1528073794
-licenseType: Store
-MonoImporter:
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 74
Runtime/SDK/Modules/Module_CurvedUI/CurvedUI/Scripts/Editor/CurvedUIInputModuleEditor.cs

@@ -1,74 +0,0 @@
-using UnityEngine;
-using System.Collections;
-using System.Collections.Generic;
-using UnityEditor;
-using UnityEditor.UI;
-
-
-namespace CurvedUI { 
-
-	[CustomEditor(typeof(CurvedUIInputModule))]
-	public class CurvedUIInputModuleEditor : Editor {
-
-        bool opened = false;
-
-
-#if CURVEDUI_GOOGLEVR
-        bool isGVR = true;
-#else
-        bool isGVR = false;
-#endif
-
-
-        void OnEnable()
-        {
-            CurvedUIInputModule myTarget = (CurvedUIInputModule)target;
-
-
-#if CURVEDUI_OCULUSVR
-            //automatically find Oculus Rig, if possible
-            if (myTarget.OculusCameraRig == null)
-                myTarget.OculusCameraRig = Object.FindObjectOfType<OVRCameraRig>();
-
-#elif CURVEDUI_STEAMVR_LEGACY
-            //automatically find SteamVR Rig, if possible
-            if (myTarget.SteamVRControllerManager == null)
-            myTarget.SteamVRControllerManager = Object.FindObjectOfType<SteamVR_ControllerManager>();          
-#elif CURVEDUI_STEAMVR_2
-            //automatically find SteamVR Rig, if possible
-            if (myTarget.SteamVRPlayArea == null)
-                myTarget.SteamVRPlayArea = FindObjectOfType<Valve.VR.SteamVR_PlayArea>();
-#endif
-        }
-
-
-        public override void OnInspectorGUI()
-		{
-            EditorGUILayout.HelpBox("Use CurvedUISettings component on your Canvas to configure CurvedUI", MessageType.Info);
-
-
-            if (isGVR)//on GVR we draw all the stuff.
-            {
-                DrawDefaultInspector();
-            }
-            else
-            {
-                if (opened)
-                {
-                    if (GUILayout.Button("Hide Fields"))
-                        opened = !opened;
-
-                    DrawDefaultInspector();
-                }
-                else
-                {
-                    if (GUILayout.Button("Show Fields"))
-                        opened = !opened;
-                }
-            }
-       
-            GUILayout.Space(20);
-        }
-	}
-
-}

+ 0 - 12
Runtime/SDK/Modules/Module_CurvedUI/CurvedUI/Scripts/Editor/CurvedUIInputModuleEditor.cs.meta

@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: 6fedfb069538a4de780c313250b8adce
-timeCreated: 1482544593
-licenseType: Store
-MonoImporter:
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 74
Runtime/SDK/Modules/Module_CurvedUI/CurvedUI/Scripts/Editor/CurvedUIScriptOrder.cs

@@ -1,74 +0,0 @@
-using UnityEditor;
-
-namespace CurvedUI
-{
-    /// <summary>
-    /// This class changes the Execution Order of Scripts in CurvedUI package.
-    /// Some of them must be executed before or after default time to work properly.
-    /// </summary>
-    [InitializeOnLoad]
-    public class CurvedUIScriptOrder : Editor
-    {
-
-      
-
-        static CurvedUIScriptOrder()
-        {
-            ChangeScriptOrder(typeof(CurvedUITMP).Name, 100, OrderMatch.GREATER_THAN);
-        }
-
-
-
-
-        static void ChangeScriptOrder(string scriptName, int order, OrderMatch match = OrderMatch.EXACT)
-        {
-            // Iterate through all scripts (Might be a better way to do this?)
-            foreach (MonoScript monoScript in MonoImporter.GetAllRuntimeMonoScripts())
-            {
-                // If found our script
-                if (monoScript.name == scriptName)
-                {
-                    
-
-                    if(match == OrderMatch.EXACT)
-                    {
-                        // And it's not at the execution time we want already
-                        if (MonoImporter.GetExecutionOrder(monoScript) != order)
-                        {
-                            MonoImporter.SetExecutionOrder(monoScript, order);
-                        }
-                        break;
-                    }
-
-                    if (match == OrderMatch.LESSER_THAN)
-                    {
-                        // And it's not at the execution time we want already
-                        if (MonoImporter.GetExecutionOrder(monoScript) > order)
-                        {
-                            MonoImporter.SetExecutionOrder(monoScript, order);
-                        }
-                        break;
-                    }
-
-                    if (match == OrderMatch.GREATER_THAN)
-                    {
-                        // And it's not at the execution time we want already
-                        if (MonoImporter.GetExecutionOrder(monoScript) < order)
-                        {
-                            MonoImporter.SetExecutionOrder(monoScript, order);
-                        }
-                        break;
-                    }
-                }
-            }
-        }
-
-        enum OrderMatch
-        {
-            EXACT = 0,
-            GREATER_THAN = 1,
-            LESSER_THAN = 2,
-        }
-    }
-}
-

+ 0 - 12
Runtime/SDK/Modules/Module_CurvedUI/CurvedUI/Scripts/Editor/CurvedUIScriptOrder.cs.meta

@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: bf869527b6896e640b93087e346823b3
-timeCreated: 1492858614
-licenseType: Store
-MonoImporter:
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 639
Runtime/SDK/Modules/Module_CurvedUI/CurvedUI/Scripts/Editor/CurvedUISettingsEditor.cs

@@ -1,639 +0,0 @@
-using UnityEngine;
-using System.Collections;
-using System.Collections.Generic;
-using UnityEditor;
-using UnityEditor.UI;
-using UnityEngine.EventSystems;
-
-#if CURVEDUI_TMP || TMP_PRESENT
-using TMPro;
-#endif 
-
-#if CURVEDUI_STEAMVR_2
-using Valve.VR;
-using System.Reflection;
-using System;
-#endif 
-
-
-namespace CurvedUI { 
- 
-
-[CustomEditor(typeof(CurvedUISettings))]
-    [ExecuteInEditMode]
-    public class CurvedUISettingsEditor : Editor {
-
-#pragma warning disable 414
-        bool ShowRemoveCurvedUI = false;
-        static bool ShowAdvaced = false;
-		bool loadingCustomDefine = false;
-        static bool CUIeventSystemPresent = false;
-
-        [SerializeField][HideInInspector]
-        Dictionary<CurvedUIInputModule.CUIControlMethod, string> m_controlMethodDefineDict;
-
-#if CURVEDUI_STEAMVR_2
-        SteamVR_Action_Boolean[] steamVRActions;
-        string[] steamVRActionsPaths;
-#endif
-
-#pragma warning restore 414
-
-
-
-        #region LIFECYCLE
-
-        void Awake()
-		{
-			AddCurvedUIComponents();
-
-
-        }
-
-        void OnEnable()
-		{
-            //if we're firing OnEnable, this means any compilation has ended. We're good!
-            loadingCustomDefine = false;
-
-            //look for CurvedUI custom eventsystem, if it makes sense to have it
-            if (PlayerSettings.virtualRealitySupported)
-            {
-                CUIeventSystemPresent = (FindObjectsOfType(typeof(CurvedUIEventSystem)).Length > 0);
-                //Debug.Log("OnEnable: found CUI Event system: " + CUIeventSystemPresent);
-            }
-
-            //hacky way to make sure event is connected only once, but it works!
-#if UNITY_2018 || UNITY_2019
-            EditorApplication.hierarchyChanged -= AddCurvedUIComponents;
-            EditorApplication.hierarchyChanged -= AddCurvedUIComponents;
-            EditorApplication.hierarchyChanged += AddCurvedUIComponents;
-#else
-            //hacky way to make sure event is connected only once, but it works!
-            EditorApplication.hierarchyWindowChanged -= AddCurvedUIComponents;
-            EditorApplication.hierarchyWindowChanged -= AddCurvedUIComponents;
-            EditorApplication.hierarchyWindowChanged += AddCurvedUIComponents;
-#endif
-
-
-
-
-            //check if the currently selected control method is enabled in editor.
-            //Otherwise, show error.
-            if (Application.isPlaying)
-            {
-                CurvedUISettings myTarget = (CurvedUISettings)target;
-                string define = PlayerSettings.GetScriptingDefineSymbolsForGroup(EditorUserBuildSettings.selectedBuildTargetGroup);
-
-                foreach(var key in ControlMethodDefineDict.Keys)
-                {
-                    if(myTarget.ControlMethod == key && !define.Contains(ControlMethodDefineDict[key]))
-                        Debug.LogError("CURVEDUI: Selected control method (" + key.ToString() + ") is not enabled. Enable it on CurvedUISettings component", myTarget.gameObject);
-                }
-            }
-
-
-
-#if CURVEDUI_STEAMVR_2
-            //Get action and their paths to show in the popup.
-            steamVRActions = SteamVR_Input.GetActions<SteamVR_Action_Boolean>();
-            steamVRActionsPaths = new string[] { "None" };
-            if (steamVRActions != null && steamVRActions.Length > 0)
-            {
-                List<string> enumList = new List<string>();
-
-                //add all action paths to list.
-                for (int i = 0; i < steamVRActions.Length; i++)
-                    enumList.Add(steamVRActions[i].fullPath);
-
-                enumList.Add("None"); //need a way to null that field, so add None as last pick.
-
-                //replace forward slashes with backslack instead. Otherwise they will not show up.
-                for (int index = 0; index < enumList.Count; index++)
-                    enumList[index] = enumList[index].Replace('/', '\\');
-
-                steamVRActionsPaths = enumList.ToArray();
-            }
-#endif
-        }
-#endregion
-
-
-
-
-        public override void OnInspectorGUI()
-        {
-
-            //setup custom define dictionary---------------------//
-       
-
-
-            //initial settings------------------------------------//
-            CurvedUISettings myTarget = (CurvedUISettings)target;
-            if (target == null) return;
-            GUI.changed = false;
-            EditorGUIUtility.labelWidth = 150;
-
-
-            //Version----------------------------------------------//
-            GUILayout.Label("Version " + CurvedUISettings.Version, EditorStyles.miniLabel);
-
-
-            //vr event system warning------------------------------//
-            if (PlayerSettings.virtualRealitySupported && CUIeventSystemPresent == false) //vr enabled reports wrong value on some versions
-            {
-                EditorGUILayout.HelpBox("Unity UI may become unresponsive in VR if game window loses focus. Use CurvedUIEventSystem instead of standard EventSystem component to solve this issue.", MessageType.Warning);
-                GUILayout.BeginHorizontal();
-                GUILayout.Space(146);
-                if (GUILayout.Button("Use CurvedUI Event System")) SwapEventSystem();
-                GUILayout.EndHorizontal();
-                GUILayout.Space(30);
-            }
-
-             
-            //Control methods--------------------------------------//
-            DrawControlMethods();
-
-
-            //shape settings----------------------------------------//
-            GUILayout.Label("Shape", EditorStyles.boldLabel);
-            myTarget.Shape = (CurvedUISettings.CurvedUIShape)EditorGUILayout.EnumPopup("Canvas Shape", myTarget.Shape);
-            switch (myTarget.Shape)
-            {
-                case CurvedUISettings.CurvedUIShape.CYLINDER:
-                {
-                    myTarget.Angle = EditorGUILayout.IntSlider("Angle", myTarget.Angle, -360, 360);
-                    myTarget.PreserveAspect = EditorGUILayout.Toggle("Preserve Aspect", myTarget.PreserveAspect);
-
-                    break;
-                }
-                case CurvedUISettings.CurvedUIShape.CYLINDER_VERTICAL:
-                {
-                    myTarget.Angle = EditorGUILayout.IntSlider("Angle", myTarget.Angle, -360, 360);
-                    myTarget.PreserveAspect = EditorGUILayout.Toggle("Preserve Aspect", myTarget.PreserveAspect);
-
-                    break;
-                }
-                case CurvedUISettings.CurvedUIShape.RING:
-                {
-                    myTarget.RingExternalDiameter = Mathf.Clamp(EditorGUILayout.IntField("External Diameter", myTarget.RingExternalDiameter), 1, 100000);
-                    myTarget.Angle = EditorGUILayout.IntSlider("Angle", myTarget.Angle, 0, 360);
-                    myTarget.RingFill = EditorGUILayout.Slider("Fill", myTarget.RingFill, 0.0f, 1.0f);
-                    myTarget.RingFlipVertical = EditorGUILayout.Toggle("Flip Canvas Vertically", myTarget.RingFlipVertical);
-                    break;
-                }
-                case CurvedUISettings.CurvedUIShape.SPHERE:
-                {
-                    GUILayout.BeginHorizontal();
-                    GUILayout.Space(150);
-                    EditorGUILayout.HelpBox("Sphere shape is more expensive than a Cyllinder shape. Keep this in mind when working on mobile VR.", MessageType.Info);
-                    GUILayout.EndHorizontal();
-                    GUILayout.Space(10);
-
-                    if (myTarget.PreserveAspect)
-                    {
-                        myTarget.Angle = EditorGUILayout.IntSlider("Angle", myTarget.Angle, -360, 360);
-                    }
-                    else {
-                        myTarget.Angle = EditorGUILayout.IntSlider("Horizontal Angle", myTarget.Angle, 0, 360);
-                        myTarget.VerticalAngle = EditorGUILayout.IntSlider("Vertical Angle", myTarget.VerticalAngle, 0, 180);
-                    }
-
-                    myTarget.PreserveAspect = EditorGUILayout.Toggle("Preserve Aspect", myTarget.PreserveAspect);
-                    break;
-                }
-            }//end of shape settings-------------------------------//
-
-
-
-            //180 degree warning ----------------------------------//
-            if ((myTarget.Shape != CurvedUISettings.CurvedUIShape.RING && myTarget.Angle.Abs() > 180) ||
-                (myTarget.Shape == CurvedUISettings.CurvedUIShape.SPHERE && myTarget.VerticalAngle > 180))
-                Draw180DegreeWarning();
-
-
-
-            //advanced settings------------------------------------//
-            GUILayout.Space(30);
-            if (!ShowAdvaced)
-            {              
-                if (GUILayout.Button("Show Advanced Settings"))
-                {
-                    ShowAdvaced = true;
-                    loadingCustomDefine = false;
-                }
-            }
-            else
-            {            
-                //hide advances settings button.
-                if (GUILayout.Button("Hide Advanced Settings")) ShowAdvaced = false;
-                GUILayout.Space(20);
-
-                //common options
-                //GUILayout.Label("Other Options", EditorStyles.boldLabel);
-                myTarget.Interactable = EditorGUILayout.Toggle("Interactable", myTarget.Interactable);
-                myTarget.BlocksRaycasts = EditorGUILayout.Toggle("Blocks Raycasts", myTarget.BlocksRaycasts);
-                myTarget.RaycastMyLayerOnly = EditorGUILayout.Toggle("Raycast My Layer Only", myTarget.RaycastMyLayerOnly);
-                if (myTarget.Shape != CurvedUISettings.CurvedUIShape.SPHERE) myTarget.ForceUseBoxCollider = EditorGUILayout.Toggle("Force Box Colliders Use", myTarget.ForceUseBoxCollider);
-
-                //quality
-                GUILayout.Space(20);
-                myTarget.Quality = EditorGUILayout.Slider("Quality", myTarget.Quality, 0.1f, 3.0f);
-                GUILayout.BeginHorizontal();
-                GUILayout.Space(150);
-                GUILayout.Label("Smoothness of the curve. Bigger values mean more subdivisions. Decrease for better performance. Default 1", EditorStyles.helpBox);
-                GUILayout.EndHorizontal();
-
-#if CURVEDUI_STEAMVR_LEGACY || CURVEDUI_STEAMVR_2 || CURVEDUI_GOOGLEVR || CURVEDUI_OCULUSVR
-                //controller override
-                GUILayout.Space(20);
-                CurvedUIInputModule.Instance.ControllerTransformOverride = (Transform)EditorGUILayout.ObjectField("Controller Override", CurvedUIInputModule.Instance.ControllerTransformOverride, typeof(Transform), true);
-                GUILayout.BeginHorizontal();
-                GUILayout.Space(150);
-                GUILayout.Label("(Optional) If set, its position and forward direction will be used to point at canvas.", EditorStyles.helpBox);
-                GUILayout.EndHorizontal();
-#endif
-
-                //add components button
-                GUILayout.Space(20);
-                GUILayout.BeginHorizontal();
-                GUILayout.Label("Components", GUILayout.Width(146));
-                if (GUILayout.Button("Add Curved Effect To Children")) AddCurvedUIComponents();
-                GUILayout.EndHorizontal();
-
-                //remove components button
-                GUILayout.BeginHorizontal();
-                GUILayout.Label("", GUILayout.Width(146));
-                if (!ShowRemoveCurvedUI)
-                {
-                    if (GUILayout.Button("Remove CurvedUI from Canvas")) ShowRemoveCurvedUI = true;
-                }
-                else {
-                    if (GUILayout.Button("Remove CurvedUI"))   RemoveCurvedUIComponents();
-                    if (GUILayout.Button("Cancel"))   ShowRemoveCurvedUI = false;
-                }
-                GUILayout.EndHorizontal();
-
-                //documentation link
-                GUILayout.Space(20);
-                GUILayout.BeginHorizontal();
-                GUILayout.Label("Documentation", GUILayout.Width(146));
-                if (GUILayout.Button("Open in web browser")) Help.BrowseURL("https://docs.google.com/document/d/10hNcvOMissNbGgjyFyV1MS7HwkXXE6270A6Ul8h8pnQ/edit");
-                GUILayout.EndHorizontal();
-
-            }//end of Advanced settings---------------------------//
-
-            GUILayout.Space(20);
-
-            //final settings
-            if (GUI.changed && myTarget != null)
-                EditorUtility.SetDirty(myTarget);
-        }
-
-
-
-
-#region CUSTOM GUI ELEMENTS
-        void DrawControlMethods()
-        {
-            GUILayout.Label("Global Settings", EditorStyles.boldLabel);
-
-            //Control Method dropdown--------------------------------//
-            CurvedUIInputModule.ControlMethod = (CurvedUIInputModule.CUIControlMethod)EditorGUILayout.EnumPopup("Control Method", CurvedUIInputModule.ControlMethod);
-            GUILayout.BeginHorizontal();
-            GUILayout.Space(150);
-			GUILayout.BeginVertical();
-
-
-            //Custom Settings for each Control Method---------------//
-            switch (CurvedUIInputModule.ControlMethod)
-            {
-
-
-                case CurvedUIInputModule.CUIControlMethod.MOUSE:
-                {
-#if CURVEDUI_GOOGLEVR
-					EditorGUILayout.HelpBox("Enabling this control method will disable GoogleVR support.", MessageType.Warning);
-					DrawCustomDefineSwitcher("");
-#else
-                    GUILayout.Label("Basic Controller. Mouse on screen", EditorStyles.helpBox);
-#endif
-                    break;
-                }// end of MOUSE
-
-
-
-                case CurvedUIInputModule.CUIControlMethod.GAZE:
-                {
-#if CURVEDUI_GOOGLEVR
-					EditorGUILayout.HelpBox("Enabling this control method will disable GoogleVR support.", MessageType.Warning);
-					DrawCustomDefineSwitcher("");
-#else
-                    GUILayout.Label("Center of Canvas's Event Camera acts as a pointer. This is a generic gaze implementation, to be used with any headset. If you're on cardboard, use GOOGLEVR control method for Reticle and GameObject interaction support.", EditorStyles.helpBox);
-                    CurvedUIInputModule.Instance.GazeUseTimedClick = EditorGUILayout.Toggle("Use Timed Click", CurvedUIInputModule.Instance.GazeUseTimedClick);
-                    if (CurvedUIInputModule.Instance.GazeUseTimedClick)
-                    {
-                        GUILayout.Label("Clicks a button if player rests his gaze on it for a period of time. You can assign an image to be used as a progress bar.", EditorStyles.helpBox);
-                        CurvedUIInputModule.Instance.GazeClickTimer = EditorGUILayout.FloatField("Click Timer (seconds)", CurvedUIInputModule.Instance.GazeClickTimer);
-                        CurvedUIInputModule.Instance.GazeClickTimerDelay = EditorGUILayout.FloatField("Timer Start Delay", CurvedUIInputModule.Instance.GazeClickTimerDelay);
-                        CurvedUIInputModule.Instance.GazeTimedClickProgressImage = (UnityEngine.UI.Image)EditorGUILayout.ObjectField("Progress Image To FIll", CurvedUIInputModule.Instance.GazeTimedClickProgressImage, typeof(UnityEngine.UI.Image), true);
-                    }
-#endif
-                    break;
-                }// end of GAZE
-
-
-
-                case CurvedUIInputModule.CUIControlMethod.WORLD_MOUSE:
-                {
-
-#if CURVEDUI_GOOGLEVR
-					EditorGUILayout.HelpBox("Enabling this control method will disable GoogleVR support.", MessageType.Warning);
-					DrawCustomDefineSwitcher("");
-#else
-                    GUILayout.Label("Mouse controller that is independent of the camera view. Use WorldSpaceMouseOnCanvas function to get its position.", EditorStyles.helpBox);
-                    CurvedUIInputModule.Instance.WorldSpaceMouseSensitivity = EditorGUILayout.FloatField("Mouse Sensitivity", CurvedUIInputModule.Instance.WorldSpaceMouseSensitivity);
-#endif
-					break;
-                }// end of WORLD_MOUSE
-
-
-
-                case CurvedUIInputModule.CUIControlMethod.CUSTOM_RAY:
-                {
-#if CURVEDUI_GOOGLEVR
-					EditorGUILayout.HelpBox("Enabling this control method will disable GoogleVR support.", MessageType.Warning);
-					DrawCustomDefineSwitcher("");
-#else
-                    GUILayout.Label("Set a ray used to interact with canvas using CustomControllerRay function. Use CustomControllerButtonState bool to set button pressed state. Find both in CurvedUIInputModule class", EditorStyles.helpBox);
-                    GUILayout.BeginHorizontal();
-                    //GUILayout.Space(20);
-                    GUILayout.FlexibleSpace();
-                    if (GUILayout.Button("View code snippet")) Help.BrowseURL("https://docs.google.com/document/d/10hNcvOMissNbGgjyFyV1MS7HwkXXE6270A6Ul8h8pnQ/edit#heading=h.b164qm67xp15");
-                    GUILayout.EndHorizontal();
-#endif
-                    break;
-                }// end of CUSTOM_RAY
-
-
-
-                case CurvedUIInputModule.CUIControlMethod.STEAMVR_LEGACY:
-                {
-#if CURVEDUI_STEAMVR_LEGACY
-                    // vive enabled, we can show settings
-                    GUILayout.Label("Use with SteamVR plugin 1.2 or below. Trigger acts a button", EditorStyles.helpBox);
-                    CurvedUIInputModule.Instance.UsedHand = (CurvedUIInputModule.Hand)EditorGUILayout.EnumPopup("Used Controller", CurvedUIInputModule.Instance.UsedHand);
-
-#else
-                    GUILayout.Label("For SteamVR plugin 1.2 or below.", EditorStyles.helpBox);
-                    DrawCustomDefineSwitcher(ControlMethodDefineDict[CurvedUIInputModule.CUIControlMethod.STEAMVR_LEGACY]);
-#endif
-                    break;
-                }// end of STEAMVR_LEGACY
-
-
-
-                case CurvedUIInputModule.CUIControlMethod.STEAMVR_2:
-                {
-#if CURVEDUI_STEAMVR_2
-					GUILayout.Label("Use SteamVR controllers to interact with canvas. Requires SteamVR Plugin 2.0 or later.", EditorStyles.helpBox);
-                   
-
-                    if(steamVRActions != null)
-                    {
-                        CurvedUIInputModule.Instance.UsedHand = (CurvedUIInputModule.Hand)EditorGUILayout.EnumPopup("Hand", CurvedUIInputModule.Instance.UsedHand);
-
-                        //Find currently selected action in CurvedUIInputModule
-                        int curSelected = steamVRActionsPaths.Length - 1;
-                        for (int i = 0; i < steamVRActions.Length; i++)
-                        {
-                            //no action selected? select one that most likely deals with UI
-                            if(CurvedUIInputModule.Instance.SteamVRClickAction == null && steamVRActions[i].GetShortName().Contains("UI"))
-                                CurvedUIInputModule.Instance.SteamVRClickAction = steamVRActions[i];
-
-                            //otherwise show currently selected
-                            if (steamVRActions[i] == CurvedUIInputModule.Instance.SteamVRClickAction) //otherwise show selected
-                                curSelected = i;
-                        }
-
-                        //Show popup
-                        int newSelected = EditorGUILayout.Popup("Click With", curSelected, steamVRActionsPaths, EditorStyles.popup);
-
-                        //assign selected SteamVR Action to CurvedUIInputMOdule
-                        if (curSelected != newSelected)
-                        {
-                            //none has been selected
-                            if (newSelected >= steamVRActions.Length)
-                                CurvedUIInputModule.Instance.SteamVRClickAction = null;
-                            else
-                                CurvedUIInputModule.Instance.SteamVRClickAction = steamVRActions[newSelected];
-                        }
-                    }
-                    else
-                    {
-                        //draw error
-                        EditorGUILayout.HelpBox("No SteamVR Actions set up. Configure your SteamVR plugin first in Window > Steam VR Input", MessageType.Error);
-
-                    }
-
-#else
-                    GUILayout.Label("For SteamVR plugin 2.0 or above.", EditorStyles.helpBox);
-                    DrawCustomDefineSwitcher(ControlMethodDefineDict[CurvedUIInputModule.CUIControlMethod.STEAMVR_2]);
-#endif
-                    break;
-                }// end of STEAMVR_2
-
-
-
-                case CurvedUIInputModule.CUIControlMethod.OCULUSVR:
-                {
-#if CURVEDUI_OCULUSVR
-                    // oculus enabled, we can show settings
-                    GUILayout.Label("Use Rift, Oculus Go, or GearVR controller to interact with canvas.", EditorStyles.helpBox);
-                    //hand property
-                    CurvedUIInputModule.Instance.UsedHand = (CurvedUIInputModule.Hand)EditorGUILayout.EnumPopup("Hand", CurvedUIInputModule.Instance.UsedHand);
-                    //button property
-                    CurvedUIInputModule.Instance.OculusTouchInteractionButton = (OVRInput.Button)EditorGUILayout.EnumPopup("Interaction Button", CurvedUIInputModule.Instance.OculusTouchInteractionButton);
-#else
-                    DrawCustomDefineSwitcher(ControlMethodDefineDict[CurvedUIInputModule.CUIControlMethod.OCULUSVR]);
-#endif
-                    break;
-                }// end of OCULUSVR
-
-
-
-                case CurvedUIInputModule.CUIControlMethod.GOOGLEVR:
-				{
-#if CURVEDUI_GOOGLEVR
-					GUILayout.Label("Use GoogleVR Reticle to interact with canvas. Requires GoogleVR SDK 1.200.1 or later.", EditorStyles.helpBox);
-#else
-                    DrawCustomDefineSwitcher(ControlMethodDefineDict[CurvedUIInputModule.CUIControlMethod.GOOGLEVR]);
-#endif
-                    break;
-                }// end of GOOGLEVR
-
-
-            }//end of CUIControlMethod Switch
-
-            GUILayout.EndVertical();
-            GUILayout.EndHorizontal();
-            GUILayout.Space(20);
-        }
-
-
-
-		/// <summary>
-		/// Draws the define switcher for different control methods. 
-		/// Because different control methods use different API's that may not always be available, 
-		/// CurvedUI needs to be recompile with different custom defines to fix this. This method 
-		/// manages the defines.
-		/// </summary>
-		/// <param name="defineToSet">Switcho.</param>
-		void DrawCustomDefineSwitcher(string defineToSet)
-		{
-			GUILayout.BeginVertical();
-			GUILayout.Label("Press the [Enable] button to recompile scripts for this control method. Afterwards, you'll see more settings here.", EditorStyles.helpBox);
-
-			GUILayout.BeginHorizontal();
-			GUILayout.Space(50);
-			if (GUILayout.Button(loadingCustomDefine ? "Please wait..." : "Enable."))
-			{
-				loadingCustomDefine = true;
-
-                //retrieve current defines
-                string str = "";
-				str += PlayerSettings.GetScriptingDefineSymbolsForGroup(EditorUserBuildSettings.selectedBuildTargetGroup);
-
-                //remove unused curvedui defines - dictionary based.
-                string define = "";
-                foreach (var key in ControlMethodDefineDict.Keys)
-                {
-                    define = ControlMethodDefineDict[key];
-
-                    if (str.Contains(define))
-                    {
-                        if (str.Contains((";" + define)))
-                            str = str.Replace((";" + define), "");
-                        else
-                            str = str.Replace(define, "");
-                    }
-                }
-        
-                //add this one, if not present.
-                if (defineToSet != "" && !str.Contains(defineToSet))
-                    str += ";" + defineToSet;
-
-                //Submit defines. This will cause recompilation
-                PlayerSettings.SetScriptingDefineSymbolsForGroup(EditorUserBuildSettings.selectedBuildTargetGroup, str);         
-			}
-			GUILayout.EndHorizontal();
-			GUILayout.EndVertical();
-        }
-
-        void Draw180DegreeWarning()
-        {
-            GUILayout.BeginHorizontal();
-            GUILayout.Space(150);
-            EditorGUILayout.HelpBox("Cavas with angle bigger than 180 degrees will not be interactable. \n" +
-                "This is caused by Unity Event System requirements. Use two canvases facing each other for fully interactive 360 degree UI.", MessageType.Warning);
-            GUILayout.EndHorizontal();
-            GUILayout.Space(10);
-        }
-#endregion
-
-
-
-
-#region HELPER FUNCTIONS
-        Dictionary<CurvedUIInputModule.CUIControlMethod, string> ControlMethodDefineDict {
-            get
-            {
-                if (m_controlMethodDefineDict == null)
-                {
-                    m_controlMethodDefineDict = new Dictionary<CurvedUIInputModule.CUIControlMethod, string>();
-                    m_controlMethodDefineDict.Add(CurvedUIInputModule.CUIControlMethod.GOOGLEVR, "CURVEDUI_GOOGLEVR");
-                    m_controlMethodDefineDict.Add(CurvedUIInputModule.CUIControlMethod.STEAMVR_LEGACY, "CURVEDUI_STEAMVR_LEGACY");
-                    m_controlMethodDefineDict.Add(CurvedUIInputModule.CUIControlMethod.STEAMVR_2, "CURVEDUI_STEAMVR_2");
-                    m_controlMethodDefineDict.Add(CurvedUIInputModule.CUIControlMethod.OCULUSVR, "CURVEDUI_OCULUSVR");
-                }
-                return m_controlMethodDefineDict;
-            }
-        }
-
-             
-
-    void SwapEventSystem()
-        {
-            if (Application.isPlaying)
-            {
-                Debug.LogError("Cant do this in Play mode!");
-                return;
-            }
-
-            EventSystem system = FindObjectOfType<EventSystem>();
-            if (!(system is CurvedUIEventSystem))
-            {
-                system.AddComponentIfMissing<CurvedUIEventSystem>();
-                DestroyImmediate(system);
-            }
-
-            CUIeventSystemPresent = true;
-        }
-
-        /// <summary>
-        ///Travel the hierarchy and add CurvedUIVertexEffect to every gameobject that can be bent.
-        /// </summary>
-        private void AddCurvedUIComponents()
-        {
-            if (target == null) return;
-            (target as CurvedUISettings).AddEffectToChildren();
-        }
-
-
-
-		/// <summary>
-		/// Removes all CurvedUI components from this canvas.
-		/// </summary>
-        private void RemoveCurvedUIComponents()
-   		{
-	        if (target == null) return;
-
-            //destroy TMP objects
-            List<CurvedUITMP> tmps = new List<CurvedUITMP>();
-            tmps.AddRange((target as CurvedUISettings).GetComponentsInChildren<CurvedUITMP>(true));
-            for (int i = 0; i < tmps.Count; i++)
-            {
-                DestroyImmediate(tmps[i]);
-            }
-
-            List<CurvedUITMPSubmesh> submeshes = new List<CurvedUITMPSubmesh>();
-            submeshes.AddRange((target as CurvedUISettings).GetComponentsInChildren<CurvedUITMPSubmesh>(true));
-            for (int i = 0; i < submeshes.Count; i++)
-            {
-                DestroyImmediate(submeshes[i]);
-            }
-
-            //destroy curving componenets
-            List<CurvedUIVertexEffect> comps = new List<CurvedUIVertexEffect>();
-	        comps.AddRange((target as CurvedUISettings).GetComponentsInChildren<CurvedUIVertexEffect>(true));
-	        for (int i = 0; i < comps.Count; i++)
-	        {
-	            if (comps[i].GetComponent<UnityEngine.UI.Graphic>() != null) comps[i].GetComponent<UnityEngine.UI.Graphic>().SetAllDirty();
-	            DestroyImmediate(comps[i]);            
-	        }
-  
-
-            //destroy raycasters
-            List<CurvedUIRaycaster> raycasters = new List<CurvedUIRaycaster>();
-	        raycasters.AddRange((target as CurvedUISettings).GetComponents<CurvedUIRaycaster>());
-	        for (int i = 0; i < raycasters.Count; i++)
-	        {
-	            DestroyImmediate(raycasters[i]);
-	        }
-
-	        DestroyImmediate(target);
-   		}
-#endregion
-
-    }
-}
-

+ 0 - 12
Runtime/SDK/Modules/Module_CurvedUI/CurvedUI/Scripts/Editor/CurvedUISettingsEditor.cs.meta

@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: 457860ef911848b478f762007e52c91e
-timeCreated: 1453646046
-licenseType: Store
-MonoImporter:
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 8
Runtime/SDK/Modules/Module_DetectorSystem/SCNoticeDetector/Editor.meta

@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 1bfa216f005003e4da149c951dde05fa
-folderAsset: yes
-DefaultImporter:
-  externalObjects: {}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 59
Runtime/SDK/Modules/Module_DetectorSystem/SCNoticeDetector/Editor/SCNoticeDetectorEditor.cs

@@ -1,59 +0,0 @@
-using System.Collections;
-using System.Collections.Generic;
-using UnityEditor;
-using UnityEngine;
-
-namespace SC.XR.Unity.Module_DetectorSystem
-{
-    [CustomEditor(typeof(SCNoticeDetector), true)]
-    public class SCNoticeDetectorEditor : Editor
-    {
-        private SerializedProperty mainText;
-        private SerializedProperty minorText;
-        private SerializedProperty isFollow;
-        private SerializedProperty distance;
-        private SerializedProperty durationTime;
-        private SerializedProperty noticetype;
-        private SerializedProperty anchortype;
-
-
-        protected void OnEnable()
-        {
-            mainText = serializedObject.FindProperty("_mainText");
-            minorText = serializedObject.FindProperty("_minorText");
-            isFollow = serializedObject.FindProperty("_isFollow");
-            distance = serializedObject.FindProperty("_distance");
-            durationTime = serializedObject.FindProperty("_durationTime");
-            noticetype = serializedObject.FindProperty("_type");
-            anchortype = serializedObject.FindProperty("_anchorType");
-
-        }
-
-        sealed public override void OnInspectorGUI()
-        {
-
-            serializedObject.Update();
-            EditorGUILayout.PropertyField(mainText);
-            EditorGUILayout.PropertyField(minorText);
-            EditorGUILayout.PropertyField(durationTime);
-            EditorGUILayout.PropertyField(isFollow);
-            FollowType layoutFollow = (FollowType)isFollow.enumValueIndex;
-            if (layoutFollow== FollowType.True)
-            {
-                EditorGUILayout.PropertyField(distance);
-                
-                EditorGUILayout.PropertyField(anchortype);
-            }                 
-            EditorGUILayout.PropertyField(noticetype);
-           
-            serializedObject.ApplyModifiedProperties();
-
-            // Place the button at the bottom
-            SCNoticeDetector notice = (SCNoticeDetector)target;
-            if (GUILayout.Button("Refresh Info"))
-            {
-                notice.RefreshInfo();
-            }
-        }
-    }
-}

+ 0 - 11
Runtime/SDK/Modules/Module_DetectorSystem/SCNoticeDetector/Editor/SCNoticeDetectorEditor.cs.meta

@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: b1ca5133d7a08f548b518976a20c2ef1
-MonoImporter:
-  externalObjects: {}
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 8
Runtime/SDK/Modules/Module_DetectorSystem/SCVolumeDetector/Scripts/Editor.meta

@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 514c2eef55df7d34f9d91e84311ac115
-folderAsset: yes
-DefaultImporter:
-  externalObjects: {}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 116
Runtime/SDK/Modules/Module_DetectorSystem/SCVolumeDetector/Scripts/Editor/SCVolumeDetectorEditor.cs

@@ -1,116 +0,0 @@
-using UnityEditor;
-using UnityEngine;
-using UnityEngine.UI;
-
-namespace SC.XR.Unity.Module_DetectorSystem
-{
-    [CustomEditor(typeof(SCVolumeDetector))]
-    public class Module_DeviceAudioEditor : Editor
-    {
-        SerializedProperty m_AudioObj;
-
-        SerializedProperty m_Slider;
-        SerializedProperty m_VolumeIcon;
-
-        SerializedProperty m_Volume;
-        SerializedProperty m_MaxVolume;
-        SerializedProperty m_ShowTime;
-
-        SerializedProperty m_Volume0;
-        SerializedProperty m_Volume33;
-        SerializedProperty m_Volume66;
-        SerializedProperty m_Volume100;
-
-        SerializedProperty OnValueChanged;
-
-        protected virtual void OnEnable()
-        {
-            SCVolumeDetector = (SCVolumeDetector)target;
-
-            m_AudioObj = serializedObject.FindProperty("m_AudioObj");
-
-            m_Slider = serializedObject.FindProperty("m_Slider");
-            m_VolumeIcon = serializedObject.FindProperty("m_VolumeIcon");
-
-            m_Volume = serializedObject.FindProperty("m_Volume");
-            m_MaxVolume = serializedObject.FindProperty("m_MaxVolume");
-            m_ShowTime = serializedObject.FindProperty("m_ShowTime");
-
-            m_Volume0 = serializedObject.FindProperty("m_Volume0");
-            m_Volume33 = serializedObject.FindProperty("m_Volume33");
-            m_Volume66 = serializedObject.FindProperty("m_Volume66");
-            m_Volume100 = serializedObject.FindProperty("m_Volume100");
-
-            OnValueChanged = serializedObject.FindProperty("OnValueChanged");
-        }
-
-        private static SCVolumeDetector SCVolumeDetector;
-        public override void OnInspectorGUI()
-        {
-            EditorGUILayout.PropertyField(m_AudioObj);
-            SCVolumeDetector.m_Slider = EditorGUILayout.ObjectField(new GUIContent("Slider"), SCVolumeDetector.m_Slider, typeof(SCSlider2D), true) as SCSlider2D;
-            SCVolumeDetector.m_VolumeIcon = EditorGUILayout.ObjectField(new GUIContent("Volume Icon"), SCVolumeDetector.m_VolumeIcon, typeof(RawImage), true) as RawImage;
-
-            SCVolumeDetector.m_Volume0 = EditorGUILayout.ObjectField(new GUIContent("Volume = 0%"), SCVolumeDetector.m_Volume0, typeof(Texture), true) as Texture;
-            SCVolumeDetector.m_Volume33 = EditorGUILayout.ObjectField(new GUIContent("Volume < 33%"), SCVolumeDetector.m_Volume33, typeof(Texture), true) as Texture;
-            SCVolumeDetector.m_Volume66 = EditorGUILayout.ObjectField(new GUIContent("33% < Volume < 66%"), SCVolumeDetector.m_Volume66, typeof(Texture), true) as Texture;
-            SCVolumeDetector.m_Volume100 = EditorGUILayout.ObjectField(new GUIContent("66% < Volume < 100%"), SCVolumeDetector.m_Volume100, typeof(Texture), true) as Texture;
-
-            EditorGUILayout.Space();
-
-            EditorGUILayout.PropertyField(m_ShowTime, new GUIContent("Show Time"));
-
-            EditorGUILayout.PropertyField(m_MaxVolume, new GUIContent("Max Volume"));
-
-            float maxVolume = m_MaxVolume.floatValue;
-
-            SCVolumeDetector.m_MaxVolume = maxVolume;
-
-            EditorGUILayout.Slider(new GUIContent("Current Volume"), m_Volume.floatValue, 0, maxVolume);
-
-            if (SCVolumeDetector.m_Slider != null)
-            {
-                SCVolumeDetector.m_Slider.maxValue = maxVolume;
-
-                SCVolumeDetector.m_Slider.value = SCVolumeDetector.m_Volume;
-
-                float stepVolume = SCVolumeDetector.m_Step_Volume;
-
-                if (GUILayout.Button("Volume+"))
-                {
-                    SCVolumeDetector.m_Volume += 1;
-
-                    if (SCVolumeDetector.m_Volume > SCVolumeDetector.m_MaxVolume)
-                    {
-                        SCVolumeDetector.m_Volume = SCVolumeDetector.m_MaxVolume;
-                    }
-
-                    AudioPlugin.Instance.OnValueChanged?.Invoke((int)SCVolumeDetector.m_Volume);
-                }
-                if (GUILayout.Button("Volume-"))
-                {
-                    SCVolumeDetector.m_Volume -= 1;
-
-                    if (SCVolumeDetector.m_Volume < 0)
-                    {
-                        SCVolumeDetector.m_Volume = 0;
-                    }
-
-                    AudioPlugin.Instance.OnValueChanged?.Invoke((int)SCVolumeDetector.m_Volume);
-                }
-                if (GUILayout.Button("Mute"))
-                {
-                    SCVolumeDetector.m_Volume = 0;
-
-                    AudioPlugin.Instance.OnValueChanged?.Invoke((int)SCVolumeDetector.m_Volume);
-                }
-
-                EditorGUILayout.PropertyField(OnValueChanged);
-
-                serializedObject.ApplyModifiedProperties();
-            }
-        }
-    }
-
-}
-

+ 0 - 11
Runtime/SDK/Modules/Module_DetectorSystem/SCVolumeDetector/Scripts/Editor/SCVolumeDetectorEditor.cs.meta

@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: ee81aeb2409ede84baed90e40b2678df
-MonoImporter:
-  externalObjects: {}
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 8
Runtime/SDK/Modules/Module_FPS/Editor.meta

@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: b1bb0602092efa349ac190c8f16b90ba
-folderAsset: yes
-DefaultImporter:
-  externalObjects: {}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 16
Runtime/SDK/Modules/Module_FPS/Editor/MenuFPS.cs

@@ -1,16 +0,0 @@
-using System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
-using UnityEditor;
-
-namespace SC.Menu {
-    public class MenuFPS : MenuBase {
-
-        [MenuItem("GameObject/SDK/FPS", false, 200)]
-
-        public static void createAction() {
-            CreatePrefab("Prefabs/FPS");
-        }
-
-    }
-}

+ 0 - 13
Runtime/SDK/Modules/Module_FPS/Editor/MenuFPS.cs.meta

@@ -1,13 +0,0 @@
-fileFormatVersion: 2
-guid: 4eb75b428b0c81d4eb45f94919966e60
-timeCreated: 1521784040
-licenseType: Free
-MonoImporter:
-  externalObjects: {}
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 8
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor.meta

@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 5059b61e5885d6945ad3de1923d051de
-folderAsset: yes
-DefaultImporter:
-  externalObjects: {}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 9
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/Baker.meta

@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: fe88a087b0795174f9c8ec2369f4ccb2
-folderAsset: yes
-timeCreated: 1516620937
-licenseType: Store
-DefaultImporter:
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 176
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/Baker/BakerInspector.cs

@@ -1,176 +0,0 @@
-using UnityEngine;
-using System.Collections;
-using UnityEditor;
-using UnityEngine.Playables;
-using System;
-
-namespace RootMotion
-{
-    public class BakerInspector : Editor
-    {
-
-        protected void DrawKeyframeSettings(Baker script)
-        {
-            if (script.isBaking) return;
-            EditorGUILayout.Space();
-
-            EditorGUILayout.PropertyField(serializedObject.FindProperty("frameRate"));
-            EditorGUILayout.PropertyField(serializedObject.FindProperty("keyReductionError"));
-        }
-
-        protected void DrawModeSettings(Baker script)
-        {
-            if (script.isBaking) return;
-
-            EditorGUILayout.Space();
-
-            EditorGUILayout.PropertyField(serializedObject.FindProperty("mode"));
-
-            switch (script.mode)
-            {
-                case Baker.Mode.AnimationClips:
-                    EditorGUILayout.PropertyField(serializedObject.FindProperty("animationClips"), true);
-                    EditorGUILayout.PropertyField(serializedObject.FindProperty("appendName"));
-                    break;
-                case Baker.Mode.AnimationStates:
-                    EditorGUILayout.PropertyField(serializedObject.FindProperty("loop"));
-                    EditorGUILayout.PropertyField(serializedObject.FindProperty("animationStates"), true);
-                    EditorGUILayout.PropertyField(serializedObject.FindProperty("appendName"));
-                    break;
-                case Baker.Mode.PlayableDirector:
-                    EditorGUILayout.PropertyField(serializedObject.FindProperty("loop"));
-                    EditorGUILayout.PropertyField(serializedObject.FindProperty("saveName"));
-                    break;
-                default:
-                    EditorGUILayout.PropertyField(serializedObject.FindProperty("saveName"));
-                    break;
-            }
-
-            //EditorGUILayout.BeginHorizontal();
-            EditorGUILayout.Space();
-            EditorGUILayout.LabelField(new GUIContent("Save To Folder"));
-
-            if (EditorGUILayout.DropdownButton(new GUIContent(serializedObject.FindProperty("saveToFolder").stringValue, "The folder to save the baked AnimationClips to."), FocusType.Passive, GUILayout.MaxWidth(400)))
-            {
-                serializedObject.FindProperty("saveToFolder").stringValue = SaveClipFolderPanel.Apply(serializedObject.FindProperty("saveToFolder").stringValue);
-            }
-            //EditorGUILayout.EndHorizontal();
-        }
-
-        private void TryBake(Baker script)
-        {
-            switch (script.mode)
-            {
-                case Baker.Mode.AnimationClips:
-                    if (script.animator == null)
-                    {
-                        EditorGUILayout.LabelField("No Animator found on Baker GameObject", EditorStyles.helpBox);
-                        return;
-                    }
-
-                    if (script.animator.isHuman && script.animator.runtimeAnimatorController == null)
-                    {
-                        EditorGUILayout.LabelField("Humanoid Animator needs to have a valid Controller assigned for clip baking (Unity crash bug)", EditorStyles.helpBox);
-                        return;
-                    }
-
-                    if (script.animationClips.Length == 0)
-                    {
-                        EditorGUILayout.LabelField("Please add AnimationClips to bake", EditorStyles.helpBox);
-                        return;
-                    }
-
-                    foreach (AnimationClip clip in script.animationClips)
-                    {
-                        if (clip == null)
-                        {
-                            EditorGUILayout.LabelField("One of the AnimationClips is null, can not bake.", EditorStyles.helpBox);
-                            return;
-                        }
-                    }
-
-                    if (GUILayout.Button("Bake Animation Clips")) script.BakeClip();
-                    return;
-                case Baker.Mode.AnimationStates:
-                    if (script.animator == null)
-                    {
-                        EditorGUILayout.LabelField("No Animator found on Baker GameObject", EditorStyles.helpBox);
-                        return;
-                    }
-
-                    if (script.animationStates.Length == 0)
-                    {
-                        EditorGUILayout.LabelField("Please add Animation State names to bake. The Animator must contain AnimationStates with matching names. If AnimationState names match with clip names used in them, you can have the Baker fill the names in automatically by right-clicking on the component header and selecting 'Find Animation States'.", EditorStyles.helpBox);
-                        return;
-                    }
-
-                    for (int i = 0; i < script.animationStates.Length; i++)
-                    {
-                        if (script.animationStates[i] == string.Empty || script.animationStates[i] == "")
-                        {
-                            EditorGUILayout.LabelField("One of the animation state names in 'Animation States' is empty, can not bake.", EditorStyles.helpBox);
-                            return;
-                        }
-                    }
-
-                    if (GUILayout.Button("Bake Animation States")) script.BakeClip();
-                    return;
-                case Baker.Mode.PlayableDirector:
-                    if (script.director == null)
-                    {
-                        EditorGUILayout.LabelField("No PlayableDirector found on Baker GameObject", EditorStyles.helpBox);
-                        return;
-                    }
-
-                    if (GUILayout.Button("Bake Timeline")) script.BakeClip();
-                    break;
-                case Baker.Mode.Realtime:
-                    if (GUILayout.Button("Start Baking")) script.StartBaking();
-                    return;
-            }
-        }
-
-        protected void DrawButtons(Baker script)
-        {
-            if (!script.enabled) return;
-
-            if (script.animator == null)
-            {
-                serializedObject.FindProperty("animator").objectReferenceValue = script.GetComponent<Animator>();
-            }
-
-            if (script.director == null)
-            {
-                serializedObject.FindProperty("director").objectReferenceValue = script.GetComponent<PlayableDirector>();
-            }
-
-            if (!Application.isPlaying)
-            {
-                EditorGUILayout.LabelField("Enter Play Mode to bake.", EditorStyles.helpBox);
-                return;
-            }
-
-            if (!script.isBaking)
-            {
-                TryBake(script);
-            }
-            else
-            {
-                GUI.color = Color.red;
-
-                switch (script.mode)
-                {
-                    case Baker.Mode.Realtime:
-                        if (GUILayout.Button("Stop Baking")) script.StopBaking();
-                        break;
-                    default:
-                        GUILayout.Label("Baking Progress: " + System.Math.Round(script.bakingProgress, 2));
-                        break;
-                }
-
-                GUI.color = Color.white;
-                EditorUtility.SetDirty(script);
-            }
-        }
-    }
-}

+ 0 - 12
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/Baker/BakerInspector.cs.meta

@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: dcf5801ad3ff7fa43b06824f09d82160
-timeCreated: 1516619065
-licenseType: Store
-MonoImporter:
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 52
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/Baker/GenericBakerInspector.cs

@@ -1,52 +0,0 @@
-using UnityEngine;
-using System.Collections;
-using UnityEditor;
-
-namespace RootMotion
-{
-    [CustomEditor(typeof(GenericBaker))]
-    public class GenericBakerInspector : BakerInspector
-    {
-        private GenericBaker script { get { return target as GenericBaker; } }
-
-        private MonoScript monoScript;
-
-        void OnEnable()
-        {
-            // Changing the script execution order
-            if (!Application.isPlaying)
-            {
-                monoScript = MonoScript.FromMonoBehaviour(script);
-                int currentExecutionOrder = MonoImporter.GetExecutionOrder(monoScript);
-                if (currentExecutionOrder != 15001) MonoImporter.SetExecutionOrder(monoScript, 15001);
-            }
-        }
-
-        public override void OnInspectorGUI()
-        {
-            serializedObject.Update();
-
-            DrawKeyframeSettings(script as Baker);
-            DrawGenericKeyframeSettings(script);
-            DrawModeSettings(script as Baker);
-            DrawButtons(script as Baker);
-
-            if (serializedObject.ApplyModifiedProperties())
-            {
-                EditorUtility.SetDirty(script);
-            }
-        }
-
-        private void DrawGenericKeyframeSettings(GenericBaker script)
-        {
-            if (script.isBaking) return;
-
-            EditorGUILayout.PropertyField(serializedObject.FindProperty("markAsLegacy"));
-            EditorGUILayout.PropertyField(serializedObject.FindProperty("root"));
-            EditorGUILayout.PropertyField(serializedObject.FindProperty("rootNode"));
-            EditorGUILayout.PropertyField(serializedObject.FindProperty("ignoreList"), true);
-            EditorGUILayout.PropertyField(serializedObject.FindProperty("bakePositionList"), true);
-        }
-    }
-}
-

+ 0 - 8
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/Baker/GenericBakerInspector.cs.meta

@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 8f544a5bc87054e74ac2e415889ba75a
-MonoImporter:
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 

+ 0 - 9
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/Baker/Helpers.meta

@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: 73b96cf8495867d429c9c5b31ff6d6da
-folderAsset: yes
-timeCreated: 1516621014
-licenseType: Store
-DefaultImporter:
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 38
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/Baker/Helpers/AnimationUtilityExtended.cs

@@ -1,38 +0,0 @@
-using UnityEngine;
-using System.Collections;
-using UnityEditor;
-
-namespace RootMotion
-{
-    public static class AnimationUtilityExtended
-    {
-
-        /// <summary>
-        /// Copies the curves with the specified property names from clipFrom to clipTo.
-        /// </summary>
-        /// <param name="fromClip">copy from clip.</param>
-        /// <param name="toClip">paste to clip</param>
-        /// <param name="propertyNames">Property names ("Root.T", "Root.Q", "LeftFoot.T"...).</param>
-        public static void CopyCurves(AnimationClip fromClip, AnimationClip toClip, string[] propertyNames)
-        {
-            EditorCurveBinding[] bindings = AnimationUtility.GetCurveBindings(fromClip);
-
-            for (int i = 0; i < bindings.Length; i++)
-            {
-                for (int n = 0; n < propertyNames.Length; n++)
-                {
-                    if (bindings[i].propertyName == propertyNames[n])
-                    {
-                        CopyCurve(fromClip, toClip, bindings[i]);
-                    }
-                }
-            }
-        }
-
-        public static void CopyCurve(AnimationClip fromClip, AnimationClip toClip, EditorCurveBinding binding)
-        {
-            AnimationCurve curve = AnimationUtility.GetEditorCurve(fromClip, binding);
-            toClip.SetCurve(string.Empty, typeof(Animator), binding.propertyName, curve);
-        }
-    }
-}

+ 0 - 12
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/Baker/Helpers/AnimationUtilityExtended.cs.meta

@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: 054c55a0c5c10dc4fafcfd81aeaaec56
-timeCreated: 1516620625
-licenseType: Store
-MonoImporter:
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 22
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/Baker/Helpers/SaveClipFolderPanel.cs

@@ -1,22 +0,0 @@
-using UnityEngine;
-using UnityEditor;
-using System.IO;
-using System;
-
-namespace RootMotion
-{
-    public class SaveClipFolderPanel : EditorWindow
-    {
-        public static string Apply(string currentPath)
-        {
-            string path = EditorUtility.SaveFolderPanel("Save clip(s) to folder", currentPath, "");
-
-            if (path.Length != 0)
-            {
-                return path.Substring(path.IndexOf("Assets/"));
-            }
-
-            return currentPath;
-        }
-    }
-}

+ 0 - 11
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/Baker/Helpers/SaveClipFolderPanel.cs.meta

@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 7edb6cbf0a3b9924d8f631c4c00fd38a
-MonoImporter:
-  externalObjects: {}
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 52
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/Baker/HumanoidBakerInspector.cs

@@ -1,52 +0,0 @@
-using UnityEngine;
-using System.Collections;
-using UnityEditor;
-
-namespace RootMotion
-{
-    [CustomEditor(typeof(HumanoidBaker))]
-    public class HumanoidBakerInspector : BakerInspector
-    {
-
-        private HumanoidBaker script { get { return target as HumanoidBaker; } }
-
-        private MonoScript monoScript;
-
-        void OnEnable()
-        {
-            // Changing the script execution order
-            if (!Application.isPlaying)
-            {
-                monoScript = MonoScript.FromMonoBehaviour(script);
-                int currentExecutionOrder = MonoImporter.GetExecutionOrder(monoScript);
-                if (currentExecutionOrder != 15000) MonoImporter.SetExecutionOrder(monoScript, 15000);
-            }
-        }
-
-        // TODO Move this to BakerInspector.cs
-        public override void OnInspectorGUI()
-        {
-            serializedObject.Update();
-
-            DrawKeyframeSettings(script as Baker);
-            DrawHumanoidKeyframeSettings(script);
-            DrawModeSettings(script as Baker);
-            DrawButtons(script as Baker);
-
-            if (serializedObject.ApplyModifiedProperties())
-            {
-                EditorUtility.SetDirty(script);
-            }
-        }
-
-        protected void DrawHumanoidKeyframeSettings(HumanoidBaker script)
-        {
-            if (script.isBaking) return;
-
-            EditorGUILayout.PropertyField(serializedObject.FindProperty("IKKeyReductionError"));
-            EditorGUILayout.PropertyField(serializedObject.FindProperty("muscleFrameRateDiv"));
-            EditorGUILayout.PropertyField(serializedObject.FindProperty("bakeHandIK"));
-        }
-    }
-}
-

+ 0 - 12
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/Baker/HumanoidBakerInspector.cs.meta

@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: f8139af98945e154885b65eedbb102cc
-timeCreated: 1516265598
-licenseType: Store
-MonoImporter:
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 9
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK.meta

@@ -1,9 +0,0 @@
-fileFormatVersion: 2
-guid: 403e73ed4eb874619a26a7b37fbb9c35
-folderAsset: yes
-timeCreated: 1436186156
-licenseType: Store
-DefaultImporter:
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 38
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/AimIKInspector.cs

@@ -1,38 +0,0 @@
-using UnityEditor;
-using UnityEngine;
-using System.Collections;
-
-namespace RootMotion.FinalIK {
-
-	/*
-	 * Custom inspector for AimIK.
-	 * */
-	[CustomEditor(typeof(AimIK))]
-	public class AimIKInspector : IKInspector {
-		
-		private AimIK script { get { return target as AimIK; }}
-
-		protected override MonoBehaviour GetMonoBehaviour(out int executionOrder) {
-			executionOrder = 9997;
-			return script;
-		}
-		
-		protected override void OnApplyModifiedProperties() {
-			if (!Application.isPlaying) script.solver.Initiate(script.transform);
-		}
-		
-		protected override void AddInspector() {
-			// Draw the inspector for IKSolverAim
-			IKSolverAimInspector.AddInspector(solver, !Application.isPlaying);
-
-			// Warning box
-			string message = string.Empty;
-			if (!script.solver.IsValid(ref message)) AddWarningBox(message);
-		}	
-		
-		void OnSceneGUI() {
-			// Draw the scene veiw helpers
-			IKSolverAimInspector.AddScene(script.solver, new Color(1f, 0f, 0.5f, 1f), true);
-		}
-	}
-}

+ 0 - 10
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/AimIKInspector.cs.meta

@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: 4a8f3f357746148a98faf7ccd416a2a6
-MonoImporter:
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 189
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/AimPoserInspector.cs

@@ -1,189 +0,0 @@
-using UnityEngine;
-using UnityEditor;
-using System.Collections;
-using RootMotion;
-
-namespace RootMotion.FinalIK {
-
-	/// <summary>
-	/// Custom inspector for the Aim Poser for visualizing pose range
-	/// </summary>
-	[CustomEditor(typeof(AimPoser))]
-	public class AimPoserInspector : Editor {
-
-		[System.Serializable]
-		public struct ColorDirection {
-			public Vector3 direction;
-			public Vector3 color;
-			public float dot;
-			
-			public ColorDirection(Vector3 direction, Vector3 color) {
-				this.direction = direction.normalized;
-				this.color = color;
-				this.dot = 0;
-			}
-		}
-
-		private AimPoser script { get { return target as AimPoser; }}
-		private ColorDirection[] colorDirections;
-		private static Vector3[] poly = new Vector3[36];
-
-		void OnSceneGUI() {
-			for (int i = 0; i < script.poses.Length; i++) {
-				script.poses[i].yaw = Mathf.Clamp(script.poses[i].yaw, 0, 180);
-				script.poses[i].pitch = Mathf.Clamp(script.poses[i].pitch, 0, 180);
-			}
-
-			if (colorDirections == null) {
-				colorDirections = new ColorDirection[6] {
-					new ColorDirection(Vector3.right, Vector3.right),
-					new ColorDirection(Vector3.up, Vector3.up),
-					new ColorDirection(Vector3.forward, Vector3.forward),
-					new ColorDirection(Vector3.left, new Vector3(0f, 1f, 1f)),
-					new ColorDirection(Vector3.down, new Vector3(1f, 0f, 1f)),
-					new ColorDirection(Vector3.back, new Vector3(1f, 1f, 0f))
-				};
-			}
-
-			for (int i = 0; i < script.poses.Length; i++) {
-				if (script.poses[i].visualize) {
-					DrawPose(script.poses[i], script.transform.position, script.transform.rotation, GetDirectionColor(script.poses[i].direction));
-				}
-			}
-		}
-
-		private Color GetDirectionColor(Vector3 localDirection) {
-			localDirection = localDirection.normalized;
-
-			// Calculating dot products for all AxisDirections
-			for (int i = 0; i < colorDirections.Length; i++) {
-				colorDirections[i].dot = Mathf.Clamp(Vector3.Dot(colorDirections[i].direction, localDirection), 0f, 1f);
-			}
-			
-			// Summing up the arm bend axis
-			Vector3 sum = Vector3.zero;
-			
-			for (int i = 0; i < colorDirections.Length; i++) {
-				sum = Vector3.Lerp(sum, colorDirections[i].color, colorDirections[i].dot * colorDirections[i].dot);
-			}
-
-			return new Color(sum.x, sum.y, sum.z);
-		}
-
-		private static void DrawPose(AimPoser.Pose pose, Vector3 position, Quaternion rotation, Color color) {
-			if (pose.pitch <= 0f || pose.yaw <= 0f) return;
-			if (pose.direction == Vector3.zero) return;
-
-			Handles.color = color;
-			GUI.color = color;
-
-			Vector3 up = rotation * Vector3.up;
-			Vector3 normalizedPoseDirection = pose.direction.normalized;
-			Vector3 direction = rotation * normalizedPoseDirection;
-			
-			// Direction and label
-			Handles.DrawLine(position, position + direction);
-			Inspector.ConeCap(0, position + direction, Quaternion.LookRotation(direction), 0.05f);
-			Handles.Label(position + direction.normalized * 1.1f, pose.name);
-
-			if (pose.yaw >= 180f && pose.pitch >= 180f) {
-				Handles.color = Color.white;
-				GUI.color = Color.white;
-				return;
-			}
-		
-			Quaternion halfYaw = Quaternion.AngleAxis(pose.yaw, up);
-
-			float directionPitch = Vector3.Angle(up, direction);
-			Vector3 crossRight = halfYaw * Vector3.Cross(up, direction);
-			Vector3 crossLeft = Quaternion.Inverse(halfYaw) * Vector3.Cross(up, direction);
-
-			bool isVertical = normalizedPoseDirection == Vector3.up || normalizedPoseDirection == Vector3.down;
-
-			if (isVertical) {
-				crossRight = halfYaw * Vector3.right;
-				crossLeft = Quaternion.Inverse(halfYaw) * Vector3.right;
-			}
-
-			float minPitch = Mathf.Clamp(directionPitch - pose.pitch, 0f, 180f);
-			float maxPitch = Mathf.Clamp(directionPitch + pose.pitch, 0f, 180f);
-
-			Quaternion upToCornerUpperRight = Quaternion.AngleAxis(minPitch, crossRight);
-			Quaternion upToCornerLowerRight = Quaternion.AngleAxis(maxPitch, crossRight);
-			Quaternion upToCornerUpperLeft = Quaternion.AngleAxis(minPitch, crossLeft);
-			Quaternion upToCornerLowerLeft = Quaternion.AngleAxis(maxPitch, crossLeft);
-
-			Vector3 toCornerUpperRight = upToCornerUpperRight * up;
-			Vector3 toCornerLowerRight = upToCornerLowerRight * up;
-			Vector3 toCornerUpperLeft = upToCornerUpperLeft * up;
-			Vector3 toCornerLowerLeft = upToCornerLowerLeft * up;
-
-			if (pose.yaw < 180f) {
-				Handles.DrawLine(position, position + toCornerUpperRight);
-				Handles.DrawLine(position, position + toCornerUpperLeft);
-
-				Handles.DrawLine(position, position + toCornerLowerRight);
-				Handles.DrawLine(position, position + toCornerLowerLeft);
-			}
-
-			Vector3 d = direction;
-			if (isVertical) d = Vector3.forward;
-
-			if (pose.pitch < 180f) {
-				DrawPolyLineOnSphere(position, toCornerUpperLeft, toCornerUpperRight, d, Vector3.up, color);
-				DrawPolyLineOnSphere(position, toCornerLowerLeft, toCornerLowerRight, d, Vector3.up, color);
-			}
-
-			if (pose.yaw < 180f) {
-				DrawPolyLineOnSphere(position, toCornerUpperLeft, toCornerLowerLeft, Quaternion.Inverse(halfYaw) * d, crossLeft, color);
-				DrawPolyLineOnSphere(position, toCornerUpperRight, toCornerLowerRight, halfYaw * d, crossRight, color);
-			}
-
-			Handles.color = Color.white;
-			GUI.color = Color.white;
-		}
-
-		private static void DrawPolyLineOnSphere(Vector3 center, Vector3 d1, Vector3 d2, Vector3 direction, Vector3 axis, Color color) {
-			Handles.color = color;
-
-			Vector3 normal = axis;
-			Vector3 d1Ortho = d1;
-			Vector3.OrthoNormalize(ref normal, ref d1Ortho);
-
-			normal = axis;
-			Vector3 d2Ortho = d2;
-			Vector3.OrthoNormalize(ref normal, ref d2Ortho);
-
-			normal = axis;
-			Vector3 directionOrtho = direction;
-			Vector3.OrthoNormalize(ref normal, ref directionOrtho);
-
-			float angle = Vector3.Angle(d1Ortho, d2Ortho);
-
-			float dot = Vector3.Dot(directionOrtho, d1Ortho);
-			if (dot < 0) {
-				angle = 180 + (180 - angle);
-			}
-
-			int segments = Mathf.Clamp(Mathf.RoundToInt(angle / 36f) * 5, 3, 36);
-
-			float segmentF = angle / (float)(segments - 1);
-
-			for (int i = 0; i < segments; i++) {
-				poly[i] = center + Quaternion.AngleAxis(i * segmentF, axis) * d1;
-			}
-
-			Handles.color = new Color(color.r, color.g, color.b, color.a * 0.1f);
-
-			for (int i = 0; i < segments; i++) {
-				Handles.DrawLine(center, poly[i]);
-			}
-
-			Handles.color = color;
-
-			for (int i = 0; i < segments - 1; i++) {
-				Handles.DrawLine(poly[i], poly[i + 1]);
-			}
-		}
-	}
-}

+ 0 - 10
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/AimPoserInspector.cs.meta

@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: 079587d3635eb48c3a5c0d57f8c3cc6f
-MonoImporter:
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 38
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/ArmIKInspector.cs

@@ -1,38 +0,0 @@
-using UnityEditor;
-using UnityEngine;
-using System.Collections;
-
-namespace RootMotion.FinalIK {
-	
-	/*
-	 * Custom inspector for ArmIK.
-	 * */
-	[CustomEditor(typeof(ArmIK))]
-	public class ArmIKInspector : IKInspector {
-		
-		private ArmIK script { get { return target as ArmIK; }}
-		
-		protected override MonoBehaviour GetMonoBehaviour(out int executionOrder) {
-			executionOrder = 9997;
-			return script;
-		}
-		
-		protected override void OnApplyModifiedProperties() {
-			if (!Application.isPlaying) script.solver.Initiate(script.transform);
-		}
-		
-		protected override void AddInspector() {
-			// Draw the inspector for IKSolverTrigonometric
-			IKSolverArmInspector.AddInspector(solver, !Application.isPlaying, true);
-			
-			// Warning box
-			string message = string.Empty;
-			if (!script.solver.IsValid(ref message)) AddWarningBox(message);
-		}
-		
-		void OnSceneGUI() {
-			// Draw the scene veiw helpers
-			IKSolverArmInspector.AddScene(script.solver, new Color(0f, 1f, 1f, 1f), true);
-		}
-	}
-}

+ 0 - 12
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/ArmIKInspector.cs.meta

@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: 07bc62a41db738b488fc9430a0a20772
-timeCreated: 1528379362
-licenseType: Store
-MonoImporter:
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 115
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/BipedIKInspector.cs

@@ -1,115 +0,0 @@
-using UnityEditor;
-using UnityEngine;
-using System.Collections;
-using System;
-
-namespace RootMotion.FinalIK {
-
-	/*
-	 * Custom inspector for Biped IK.
-	 * */
-	[CustomEditor(typeof(BipedIK))]
-	public class BipedIKInspector : Editor {
-		
-		private BipedIK script { get { return target as BipedIK; }}
-		
-		private int selectedSolver = -1;
-		
-		private SerializedProperty references, solvers;
-		private SerializedProperty[] solversProps;
-		private SerializedContent fixTransforms;
-
-		public void OnEnable() {
-			if (serializedObject == null) return;
-
-			// Store the MonoScript for changing script execution order
-			if (!Application.isPlaying) {
-				MonoScript monoScript = MonoScript.FromMonoBehaviour(script);
-
-				// Changing the script execution order to make sure BipedIK always executes after any other script except FullBodyBipedIK
-				int executionOrder = MonoImporter.GetExecutionOrder(monoScript);
-				if (executionOrder != 9998) MonoImporter.SetExecutionOrder(monoScript, 9998);
-			}
-
-			references = serializedObject.FindProperty("references");
-			solvers = serializedObject.FindProperty("solvers");
-			solversProps = BipedIKSolversInspector.FindProperties(solvers);
-			fixTransforms = new SerializedContent(serializedObject.FindProperty("fixTransforms"), new GUIContent("Fix Transforms", "If true, will fix all the Transforms used by the solver to their initial state in each Update. This prevents potential problems with unanimated bones and animator culling with a small cost of performance."));
-			
-			// Automatically detecting references
-			if (!Application.isPlaying) {
-				if (script.references.isEmpty) {
-					BipedReferences.AutoDetectReferences(ref script.references, script.transform, new BipedReferences.AutoDetectParams(false, true));
-					
-					references.isExpanded = true;
-					solvers.isExpanded = false;
-					for (int i = 0; i < solversProps.Length; i++) solversProps[i].isExpanded = false;
-					
-					// Setting default values and initiating
-					script.InitiateBipedIK();
-					script.SetToDefaults();
-					EditorUtility.SetDirty(script);
-				} else script.InitiateBipedIK();
-				
-				Warning.logged = false;
-
-				string message = string.Empty;
-				if (Application.isPlaying) {
-					if (BipedReferences.SetupError(script.references, ref message) || BipedReferences.SetupWarning(script.references, ref message)) {
-						Warning.Log(message, script.references.root, false);
-					}
-				}
-			}
-		}
-
-		// Override the default warning box
-		private void AddWarningBox(string message) {
-			EditorGUILayout.Space();
-
-			EditorGUILayout.LabelField("Invalid/incomplete setup, can't initiate solver. " + message, EditorStyles.helpBox);
-			
-			EditorGUILayout.Space();
-		}
-
-		public override void OnInspectorGUI() {
-			serializedObject.Update();
-
-			EditorGUILayout.Space();
-
-			Inspector.AddContent(fixTransforms);
-			string message = string.Empty;
-
-			// Editing References
-			if (BipedReferencesInspector.AddModifiedInspector(references)) {
-				if (!Application.isPlaying) {
-					Warning.logged = false;
-
-					if (!BipedReferences.SetupError(script.references, ref message)) {
-						script.InitiateBipedIK();
-					}
-				}
-			}
-
-			if (BipedReferences.SetupError(script.references, ref message)) {
-				// Warning box
-				AddWarningBox(message);
-				Warning.Log(message, script.transform, false);
-			} else {
-				// Editing Solvers
-				BipedIKSolversInspector.AddInspector(solvers, solversProps);
-			}
-
-			EditorGUILayout.Space();
-			
-			serializedObject.ApplyModifiedProperties();
-		}
-		
-		void OnSceneGUI() {
-			if (!script.enabled) return;
-
-			// Draw the scene view helpers for the solvers
-			BipedIKSolversInspector.AddScene(script.solvers, ref selectedSolver);
-		}
-	}
-}
-	

+ 0 - 10
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/BipedIKInspector.cs.meta

@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: f5864bb0a05eb491697063685c4d6cb3
-MonoImporter:
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 120
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/BipedIKSolversInspector.cs

@@ -1,120 +0,0 @@
-using UnityEngine;
-using UnityEditor;
-using System.Collections;
-
-namespace RootMotion.FinalIK {
-
-	/*
-	 * Custom inspector and scene view tools for Biped IK Solvers.
-	 * */
-	public class BipedIKSolversInspector: IKSolverInspector {
-		
-		/*
-		 * Returns all solvers SeiralizedProperties
-		 * */
-		public static SerializedProperty[] FindProperties(SerializedProperty prop) {
-			SerializedProperty[] props = new SerializedProperty[8] {
-				prop.FindPropertyRelative("leftFoot"),
-				prop.FindPropertyRelative("rightFoot"),
-				prop.FindPropertyRelative("leftHand"),
-				prop.FindPropertyRelative("rightHand"),
-				prop.FindPropertyRelative("spine"),
-				prop.FindPropertyRelative("aim"),
-				prop.FindPropertyRelative("lookAt"),
-				prop.FindPropertyRelative("pelvis"),
-			};
-			
-			return props;
-		}
-		
-		/*
-		 * Draws the custom inspector for BipedIK.Solvers
-		 * */
-		public static void AddInspector(SerializedProperty prop, SerializedProperty[] props) {
-			EditorGUILayout.PropertyField(prop);
-			
-			if (prop.isExpanded) {
-				for (int i = 0; i < props.Length; i++) {
-					BeginProperty(props[i]);
-					if (props[i].isExpanded) {
-						if (i <= 3) IKSolverLimbInspector.AddInspector(props[i], false, false);
-						else if (i == 4) IKSolverHeuristicInspector.AddInspector(props[i], false, false);
-						else if (i == 5) IKSolverAimInspector.AddInspector(props[i], false);
-						else if (i == 6) IKSolverLookAtInspector.AddInspector(props[i], false, false);
-						else if (i == 7) ConstraintsInspector.AddInspector(props[i]);
-					}
-					EndProperty(props[i]);
-				}
-			}
-		}
-		
-		/*
-		 * Draws the scene view helpers for BipedIK.Solvers
-		 * */
-		public static void AddScene(BipedIKSolvers solvers, ref int selected) {
-			// Draw limbs
-			for (int i = 0; i < solvers.limbs.Length; i++) {
-				IKSolverLimbInspector.AddScene(solvers.limbs[i] as IKSolverLimb, GetSolverColor(i), selected == i);
-			}
-			
-			// Draw spine
-			IKSolverHeuristicInspector.AddScene(solvers.spine, GetSolverColor(4), selected == 4);
-			
-			// Draw look at
-			IKSolverLookAtInspector.AddScene(solvers.lookAt, GetSolverColor(5), selected == 5);
-			
-			// Draw aim
-			IKSolverAimInspector.AddScene(solvers.aim, GetSolverColor(6), selected == 6);
-			
-			// Draw constraints
-			ConstraintsInspector.AddScene(solvers.pelvis, GetSolverColor(7), selected == 7);
-
-			// Selecting solvers
-			if (Application.isPlaying) {
-				for (int i = 0; i < solvers.ikSolvers.Length; i++) {
-					Handles.color = GetSolverColor(i);
-					if (solvers.ikSolvers[i].GetIKPositionWeight() > 0 && selected != i && solvers.ikSolvers[i].initiated) {
-						if (Inspector.DotButton(solvers.ikSolvers[i].GetIKPosition(), Quaternion.identity, GetHandleSize(solvers.ikSolvers[i].GetIKPosition()), GetHandleSize(solvers.ikSolvers[i].GetIKPosition()))) selected = i;
-					}
-				}
-				
-				if ((solvers.pelvis.positionWeight > 0 || solvers.pelvis.rotationWeight > 0) && selected != solvers.ikSolvers.Length) {
-					Handles.color = GetSolverColor(7);
-					if (Inspector.DotButton(solvers.pelvis.position, Quaternion.identity, GetHandleSize(solvers.pelvis.position),  GetHandleSize(solvers.pelvis.position))) selected = solvers.ikSolvers.Length;
-				}
-			}
-		}
-		
-		/*
-		 * Gets the color of the solver at index.
-		 * */
-		private static Color GetSolverColor(int index) {
-			if (index == 0 || index == 2) return new Color(0f, 0.8f, 1f, 1f); // Left limb
-			if (index == 1 || index == 3) return new Color(0.3f, 1f, 0.3f, 1f); // Right limb
-			if (index == 4) return new Color(1f, 0.5f, 0.5f, 1f); // Spine
-			if (index == 5) return new Color(0.2f, 0.5f, 1f, 1f); // Look At
-			if (index == 6) return new Color(1f, 0f, 0.5f, 1f); // Aim
-			if (index == 7) return new Color(0.9f, 0.9f, 0.9f, 1f); // Pelvis
-			return Color.white;
-		}
-		
-		/*
-		 * Begin property box
-		 * */
-		private static void BeginProperty(SerializedProperty prop) {
-			EditorGUI.indentLevel = 1;
-			EditorGUILayout.BeginVertical("Box");
-			
-			EditorGUILayout.PropertyField(prop);
-		}
-		
-		/*
-		 * End Property box
-		 * */
-		private static void EndProperty(SerializedProperty prop) {
-			EditorGUILayout.EndVertical();
-			if (prop.isExpanded) EditorGUILayout.Space();
-			EditorGUI.indentLevel = 1;
-		}
-	}
-}

+ 0 - 10
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/BipedIKSolversInspector.cs.meta

@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: 0569aef68e5c24672b37607a948d3c92
-MonoImporter:
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 38
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/CCDIKInspector.cs

@@ -1,38 +0,0 @@
-using UnityEditor;
-using UnityEngine;
-using System.Collections;
-
-namespace RootMotion.FinalIK {
-
-	/*
-	 * Custom inspector for CCDIK.
-	 * */
-	[CustomEditor(typeof(CCDIK))]
-	public class CCDIKInspector : IKInspector {
-
-		private CCDIK script { get { return target as CCDIK; }}
-
-		protected override MonoBehaviour GetMonoBehaviour(out int executionOrder) {
-			executionOrder = 9997;
-			return script;
-		}
-
-		protected override void OnApplyModifiedProperties() {
-			if (!Application.isPlaying) script.solver.Initiate(script.transform);
-		}
-		
-		protected override void AddInspector() {
-			// Draw the inspector for IKSolverCCD
-			IKSolverHeuristicInspector.AddInspector(solver, !Application.isPlaying, true);
-
-			// Warning box
-			string message = string.Empty;
-			if (!script.solver.IsValid(ref message)) AddWarningBox(message);
-		}
-		
-		void OnSceneGUI() {
-			// Draw the scene veiw helpers
-			IKSolverHeuristicInspector.AddScene(script.solver, Color.cyan, true);
-		}
-	}
-}

+ 0 - 10
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/CCDIKInspector.cs.meta

@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: 90fdc724098474c78a5ae764777a5008
-MonoImporter:
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 67
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/ConstraintsInspector.cs

@@ -1,67 +0,0 @@
-using UnityEngine;
-using UnityEditor;
-using System.Collections;
-
-namespace RootMotion.FinalIK {
-
-	/*
-	 * Custom inspector and scene view tools for Constraints
-	 * */
-	public class ConstraintsInspector: IKSolverInspector {
-		
-		#region Public methods
-
-		/*
-		 * Draws the custom inspector for Constraints
-		 * */
-		public static void AddInspector(SerializedProperty prop) {
-			if (!prop.isExpanded) return;
-			
-			// Main properties
-			EditorGUILayout.PropertyField(prop.FindPropertyRelative("target"), new GUIContent("Target", "Target transform for the pelvis (optional). If assigned, will overwrite pelvis.position in each update."));
-			EditorGUILayout.PropertyField(prop.FindPropertyRelative("positionOffset"), new GUIContent("Pos Offset", "Pelvis offset from animation. If there is no animation playing and Fix Transforms is unchecked, it will make the character fly away."));
-			EditorGUILayout.PropertyField(prop.FindPropertyRelative("positionWeight"), new GUIContent("Pos Weight", "The weight of lerping the pelvis to bipedIK.solvers.pelvis.position."));
-			EditorGUILayout.PropertyField(prop.FindPropertyRelative("rotationOffset"), new GUIContent("Rot Offset", "Pelvis rotation offset from animation. If there is no animation playing and Fix Transforms is unchecked, it will make the character spin."));
-			EditorGUILayout.PropertyField(prop.FindPropertyRelative("rotationWeight"), new GUIContent("Rot Weight", "The weiight of slerping the pelvis to bipedIK.solver.pelvis.rotation."));
-
-			EditorGUILayout.Space();
-		}
-		
-		/*
-		 * Draws the scene view helpers for Constraints
-		 * */
-		public static void AddScene(Constraints constraints, Color color, bool modifiable) {
-			if (!constraints.IsValid()) return;
-			
-			Handles.color = color;
-			GUI.color = color;
-			
-			// Transform
-			Inspector.SphereCap(0, constraints.transform.position, Quaternion.identity, GetHandleSize(constraints.transform.position));
-
-			// Target
-			Handles.color = new Color(color.r, color.g, color.b, color.a * constraints.positionWeight);
-			Handles.DrawLine(constraints.transform.position, constraints.position);
-			Handles.color = color;
-			
-			if (Application.isPlaying && modifiable && (constraints.positionWeight > 0 || constraints.rotationWeight > 0)) {
-				Inspector.CubeCap(0, constraints.position, Quaternion.Euler(constraints.rotation), GetHandleSize(constraints.transform.position));
-					
-				// Manipulating position and rotation
-				switch(Tools.current) {
-				case Tool.Move:
-					constraints.position = Handles.PositionHandle(constraints.position, Quaternion.Euler(constraints.rotation));
-					break;
-				case Tool.Rotate:
-					constraints.rotation = Handles.RotationHandle(Quaternion.Euler(constraints.rotation), constraints.position).eulerAngles;
-					break;
-				}
-			}
-			
-			Handles.color = Color.white;
-			GUI.color = Color.white;
-		}
-
-		#endregion Public methods
-	}
-}

+ 0 - 10
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/ConstraintsInspector.cs.meta

@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: b9903cbc6483347caadff80dc461c23f
-MonoImporter:
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 87
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/EditorIKInspector.cs

@@ -1,87 +0,0 @@
-using System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
-using UnityEditor;
-using UnityEditor.SceneManagement;
-
-namespace RootMotion.FinalIK
-{
-    [CustomEditor(typeof(EditorIK))]
-    public class EditorIKInspector : Editor
-    {
-        private EditorIK script { get { return target as EditorIK; } }
-
-        public override void OnInspectorGUI()
-        {
-            base.OnInspectorGUI();
-
-            if (Application.isPlaying) return;
-            if (!script.enabled) return;
-
-            EditorGUILayout.Space();
-
-            if (script.defaultPose != null && script.ik != null && !script.ik.GetIKSolver().executedInEditor)
-            {
-                if (GUILayout.Button("Store Default Pose"))
-                {
-                    script.StoreDefaultPose();
-                    serializedObject.ApplyModifiedProperties();
-
-                    EditorUtility.SetDirty(script.defaultPose);
-                    AssetDatabase.SaveAssets();
-                    AssetDatabase.Refresh();
-                }
-
-                if (script.defaultPose.poseStored && script.defaultPose.localPositions.Length == script.bones.Length)
-                {
-                    if (GUILayout.Button("Reset To Default Pose"))
-                    {
-                        script.defaultPose.Restore(script.bones);
-
-                        EditorSceneManager.MarkSceneDirty(EditorSceneManager.GetActiveScene());
-                    }
-                }
-            }
-
-            EditorGUILayout.Space();
-
-            if (script.defaultPose != null && script.defaultPose.poseStored && script.ik != null)
-            {
-                if (!script.ik.GetIKSolver().executedInEditor)
-                {
-                    bool isValid = script.ik.GetIKSolver().IsValid();
-                    EditorGUI.BeginDisabledGroup(!isValid);
-                    if (GUILayout.Button(isValid? "Start Solver": "'Start Solver' disabled for invalid solver setup"))
-                    {
-                        bool initiated = script.Initiate();
-                        serializedObject.ApplyModifiedProperties();
-
-                        EditorUtility.SetDirty(script.defaultPose);
-                        AssetDatabase.SaveAssets();
-                        AssetDatabase.Refresh();
-
-                        var ikS = new SerializedObject(script.ik);
-                        ikS.FindProperty("solver").FindPropertyRelative("executedInEditor").boolValue = initiated;
-                        ikS.ApplyModifiedProperties();
-
-                        script.Update();
-
-                        EditorSceneManager.MarkSceneDirty(EditorSceneManager.GetActiveScene());
-                    }
-                    EditorGUI.EndDisabledGroup();
-                }
-
-                if (script.ik.GetIKSolver().executedInEditor)
-                {
-                    if (GUILayout.Button("Stop"))
-                    {
-                        var ikS = new SerializedObject(script.ik);
-                        ikS.FindProperty("solver").FindPropertyRelative("executedInEditor").boolValue = false;
-                        ikS.ApplyModifiedProperties();
-                    }
-                }
-            }
-        }
-
-    }
-}

+ 0 - 11
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/EditorIKInspector.cs.meta

@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 4bdb775e141709e40972e0ed29aecc04
-MonoImporter:
-  externalObjects: {}
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 38
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/FABRIKInspector.cs

@@ -1,38 +0,0 @@
-using UnityEditor;
-using UnityEngine;
-using System.Collections;
-
-namespace RootMotion.FinalIK {
-
-	/*
-	 * Custom inspector for FABRIK.
-	 * */
-	[CustomEditor(typeof(FABRIK))]
-	public class FABRIKInspector : IKInspector {
-
-		private FABRIK script { get { return target as FABRIK; }}
-
-		protected override MonoBehaviour GetMonoBehaviour(out int executionOrder) {
-			executionOrder = 9997;
-			return script;
-		}
-		
-		protected override void OnApplyModifiedProperties() {
-			if (!Application.isPlaying) script.solver.Initiate(script.transform);
-		}
-		
-		protected override void AddInspector() {
-			// Draw the inspector for IKSolverFABRIK
-			IKSolverHeuristicInspector.AddInspector(solver, !Application.isPlaying, false);
-
-			// Warning box
-			string message = string.Empty;
-			if (!script.solver.IsValid(ref message)) AddWarningBox(message);
-		}
-		
-		void OnSceneGUI() {
-			// Draw the scene veiw helpers
-			IKSolverHeuristicInspector.AddScene(script.solver, Color.cyan, true);
-		}
-	}
-}

+ 0 - 10
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/FABRIKInspector.cs.meta

@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: 35028d751824a4378ab31047db78a4ac
-MonoImporter:
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 35
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/FABRIKRootInspector.cs

@@ -1,35 +0,0 @@
-using UnityEditor;
-using UnityEngine;
-using System.Collections;
-
-namespace RootMotion.FinalIK {
-
-	/*
-	 * Custom inspector for FABRIKRoot.
-	 * */
-	[CustomEditor(typeof(FABRIKRoot))]
-	public class FABRIKRootInspector : IKInspector {
-
-		private FABRIKRoot script { get { return target as FABRIKRoot; }}
-		private FABRIKChain selectedChain;
-
-		protected override MonoBehaviour GetMonoBehaviour(out int executionOrder) {
-			executionOrder = 9997;
-			return script;
-		}
-		
-		protected override void AddInspector() {
-			// Draw the inspector for IKSolverFABRIKRoot
-			IKSolverFABRIKRootInspector.AddInspector(solver, !Application.isPlaying);
-
-			// Warning box
-			string message = string.Empty;
-			if (!script.solver.IsValid(ref message)) AddWarningBox(message);
-		}
-		
-		void OnSceneGUI() {
-			// Draw the scene veiw helpers
-			IKSolverFABRIKRootInspector.AddScene(script.solver, Color.cyan, true, ref selectedChain);
-		}
-	}
-}

+ 0 - 10
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/FABRIKRootInspector.cs.meta

@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: 97f4f303b23be42ddabd838850dd9c03
-MonoImporter:
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 99
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/FingerRigInspector.cs

@@ -1,99 +0,0 @@
-using UnityEngine;
-using System.Collections;
-using UnityEditor;
-
-namespace RootMotion.FinalIK {
-
-	// Custom Scene View handles for the FingerRig.
-	[CustomEditor(typeof(FingerRig))]
-	public class FingerRigInspector : Editor {
-
-		private FingerRig script { get { return target as FingerRig; }}
-		
-		private int selected = -1;
-		private MonoScript monoScript;
-
-		void OnEnable() {
-			if (serializedObject == null) return;
-			
-			// Changing the script execution order
-			if (!Application.isPlaying) {
-				monoScript = MonoScript.FromMonoBehaviour(script);
-				int currentExecutionOrder = MonoImporter.GetExecutionOrder(monoScript);
-				if (currentExecutionOrder != 10000) MonoImporter.SetExecutionOrder(monoScript, 10000);
-			}
-		}
-
-		void OnSceneGUI() {
-			if (!script.enabled) return;
-			string message = string.Empty;
-			if (!script.IsValid(ref message)) return;
-			if (Application.isPlaying && !script.initiated) return;
-
-			Color color = Color.cyan;
-			color.a = script.weight;
-
-			Handles.color = color;
-			GUI.color = color;
-
-			// Display the bones
-			if (!Application.isPlaying) {
-				for (int i = 0; i < script.fingers.Length; i++) {
-					Handles.DrawLine(script.fingers[i].bone1.position, script.fingers[i].bone2.position);
-					Inspector.SphereCap(0, script.fingers[i].bone1.position, Quaternion.identity, IKSolverInspector.GetHandleSize(script.fingers[i].bone1.position) * 0.5f);
-					Inspector.SphereCap(0, script.fingers[i].bone2.position, Quaternion.identity, IKSolverInspector.GetHandleSize(script.fingers[i].bone2.position) * 0.5f);
-
-					if (script.fingers[i].bone3 != null) {
-						Handles.DrawLine(script.fingers[i].bone2.position, script.fingers[i].bone3.position);
-						Handles.DrawLine(script.fingers[i].bone3.position, script.fingers[i].tip.position);
-						Inspector.SphereCap(0, script.fingers[i].bone3.position, Quaternion.identity, IKSolverInspector.GetHandleSize(script.fingers[i].bone3.position) * 0.5f);
-					} else {
-						Handles.DrawLine(script.fingers[i].bone2.position, script.fingers[i].tip.position);
-					}
-
-					Inspector.SphereCap(0, script.fingers[i].tip.position, Quaternion.identity, IKSolverInspector.GetHandleSize(script.fingers[i].tip.position) * 0.5f);
-				}
-			}
-
-			// Selecting solvers
-			if (Application.isPlaying) {
-				if (selected >= 0 && selected < script.fingers.Length) {
-					if (script.fingers[selected].weight > 0f) {
-						color.a = script.weight * script.fingers[selected].weight;
-						Handles.color = color;
-
-						float size = IKSolverInspector.GetHandleSize(script.fingers[selected].IKPosition);
-
-						Inspector.CubeCap(0, script.fingers[selected].IKPosition, script.fingers[selected].IKRotation, size);
-
-						if (script.fingers[selected].target == null) {
-							switch(Tools.current) {
-							case Tool.Move:
-								script.fingers[selected].IKPosition = Handles.PositionHandle(script.fingers[selected].IKPosition, Tools.pivotRotation == PivotRotation.Local? script.fingers[selected].IKRotation: Quaternion.identity);
-								break;
-							case Tool.Rotate:
-								script.fingers[selected].IKRotation = Handles.RotationHandle(script.fingers[selected].IKRotation, script.fingers[selected].IKPosition);
-								break;
-							}
-						}
-					}
-				}
-
-				for (int i = 0; i < script.fingers.Length; i++) {
-					color.a = script.weight * script.fingers[i].weight;
-					Handles.color = color;
-					Handles.DrawLine(script.fingers[i].tip.position, script.fingers[i].IKPosition);
-
-					if (script.fingers[i].weight > 0 && selected != i && script.fingers[i].initiated) {
-						float size = IKSolverInspector.GetHandleSize(script.fingers[i].IKPosition) * 0.5f;
-
-						if (Inspector.DotButton(script.fingers[i].IKPosition, Quaternion.identity, size, size)) selected = i;
-					}
-				}
-			}
-
-			Handles.color = Color.white;
-			GUI.color = Color.white;
-		}
-	}
-}

+ 0 - 10
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/FingerRigInspector.cs.meta

@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: aa6fa0b5b780d4401b031336dd86cfa4
-MonoImporter:
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 107
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/FullBodyBipedIKInspector.cs

@@ -1,107 +0,0 @@
-using UnityEditor;
-using UnityEngine;
-using System.Collections;
-
-	namespace RootMotion.FinalIK {
-
-	/*
-	 * Custom inspector for FullBodyBipedIK.
-	 * */
-	[CustomEditor(typeof(FullBodyBipedIK))]
-	public class FullBodyBipedIKInspector : IKInspector {
-
-		private FullBodyBipedIK script { get { return target as FullBodyBipedIK; }}
-		private int selectedEffector;
-		private SerializedProperty references;
-		private bool autodetected;
-
-		private static Color color {
-			get {
-				return new Color(0f, 0.75f, 1f);
-			}
-		}
-
-		protected override MonoBehaviour GetMonoBehaviour(out int executionOrder) {
-			executionOrder = 9999;
-			return script;
-		}
-
-		protected override void OnEnableVirtual() {
-			references = serializedObject.FindProperty("references");
-
-			// Autodetecting References
-			if (script.references.IsEmpty(false) && script.enabled) {
-				BipedReferences.AutoDetectReferences(ref script.references, script.transform, new BipedReferences.AutoDetectParams(true, false));
-
-				script.solver.rootNode = IKSolverFullBodyBiped.DetectRootNodeBone(script.references);
-
-				Initiate();
-
-				if (Application.isPlaying) Warning.Log("Biped references were auto-detected on a FullBodyBipedIK component that was added in runtime. Note that this only happens in the Editor and if the GameObject is selected (for quick and convenient debugging). If you want to add FullBodyBipedIK dynamically in runtime via script, you will have to use BipedReferences.AutodetectReferences() for automatic biped detection.", script.transform);
-				
-				references.isExpanded = !script.references.isFilled;
-			}
-		}
-
-		protected override void AddInspector() {
-			// While in editor
-			if (!Application.isPlaying) {
-				// Editing References, if they have changed, reinitiate.
-				if (BipedReferencesInspector.AddModifiedInspector(references)) {
-					Initiate();
-					return; // Don't draw immediatelly to avoid errors
-				}
-				// Root Node
-				IKSolverFullBodyBipedInspector.AddReferences(true, solver);
-
-				// Reinitiate if rootNode has changed
-				if (serializedObject.ApplyModifiedProperties()) {
-					Initiate();
-					return; // Don't draw immediatelly to avoid errors
-				}
-			} else {
-				// While in play mode
-
-				// Draw the references and the root node for UMA
-				BipedReferencesInspector.AddModifiedInspector(references);	
-				IKSolverFullBodyBipedInspector.AddReferences(true, solver);
-			}
-
-			string errorMessage = string.Empty;
-			if (script.ReferencesError(ref errorMessage) || !script.solver.IsValid(ref errorMessage)) {
-				AddWarningBox(errorMessage);
-				Warning.Log(errorMessage, script.transform, false);
-			} else {
-				// Draw the inspector for IKSolverFullBody
-				IKSolverFullBodyBipedInspector.AddInspector(solver, false);
-			}
-
-			EditorGUILayout.Space();
-		}
-
-		private void Initiate() {
-			Warning.logged = false;
-
-			// Check for possible errors, if found, do not initiate
-			string message = "";
-			if (script.ReferencesError(ref message)) {
-				Warning.Log(message, script.transform, false);
-				return;
-			}
-
-			// Notify of possible problems, but still initiate
-			if (script.ReferencesWarning(ref message)) Warning.Log(message, script.transform, false);
-
-			// Initiate
-			script.solver.SetToReferences(script.references, script.solver.rootNode);
-		}
-
-		// Draw the scene view handles
-		void OnSceneGUI() {
-			// Draw the scene veiw helpers
-			if (!script.references.isFilled) return;
-
-			IKSolverFullBodyBipedInspector.AddScene(target, script.solver, color, ref selectedEffector, script.transform);
-		}
-	}
-}

+ 0 - 10
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/FullBodyBipedIKInspector.cs.meta

@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: a1af94c10682a46c0849b487ad86dd40
-MonoImporter:
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 13
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/GroundingInspector.cs

@@ -1,13 +0,0 @@
-using UnityEngine;
-using UnityEditor;
-using System.Collections;
-
-namespace RootMotion.FinalIK {
-
-	public class GroundingInspector : Editor {
-
-		public static void Visualize(Grounding grounding, Transform root, Transform foot) {
-			Inspector.SphereCap (0, foot.position + root.forward * grounding.footCenterOffset, root.rotation, grounding.footRadius * 2f);
-		}
-	}
-}

+ 0 - 12
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/GroundingInspector.cs.meta

@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: 43cffbb650ededd4bbfb46bf19a74782
-timeCreated: 1487065127
-licenseType: Store
-MonoImporter:
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 106
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/IKEffectorInspector.cs

@@ -1,106 +0,0 @@
-using UnityEngine;
-using UnityEditor;
-using System.Collections;
-
-namespace RootMotion.FinalIK {
-
-	/*
-	 * Custom inspector and scene view tools for IKEffector
-	 * */
-	public class IKEffectorInspector: IKSolverInspector {
-		
-		#region Public methods
-		
-		public static void DrawArrayElementEffector(SerializedProperty effector, bool editHierarchy) {
-			if (!editHierarchy) return;
-			
-			if (effector.FindPropertyRelative("bones").arraySize > 1) {
-				GUILayout.BeginHorizontal();
-				GUILayout.Space(indent);
-				AddClampedFloat(effector.FindPropertyRelative("falloff"), new GUIContent("Distance Falloff", string.Empty), 0f, Mathf.Infinity);
-				GUILayout.EndHorizontal();
-			}
-			
-			AddArray(effector.FindPropertyRelative("bones"), new GUIContent("Bones", string.Empty), editHierarchy, false, null, OnAddToArrayBone, DrawArrayElementLabelBone, false);
-			
-			if (effector.isExpanded) EditorGUILayout.Space();
-		}
-		
-		public static void OnAddToArrayEffector(SerializedProperty effector) {
-			effector.FindPropertyRelative("positionWeight").floatValue = 0f;
-			effector.FindPropertyRelative("rotationWeight").floatValue = 0f;
-			effector.FindPropertyRelative("falloff").floatValue = 0.5f;
-			effector.FindPropertyRelative("position").vector3Value = Vector3.zero;
-			effector.FindPropertyRelative("positionOffset").vector3Value = Vector3.zero;
-		}
-		
-		public static void DrawArrayElementLabelEffector(SerializedProperty effector, bool editHierarchy) {
-			GUILayout.Space(Inspector.indent);
-			if (editHierarchy) {
-				EditorGUILayout.PropertyField(effector, new GUIContent(GetArrayName(effector.FindPropertyRelative("bones"), "Effector"), string.Empty), false, GUILayout.Width(100));
-			} else {
-				EditorGUILayout.LabelField(new GUIContent(GetArrayName(effector.FindPropertyRelative("bones"), "Effector"), string.Empty), GUILayout.Width(100));
-			}
-			
-			GUILayout.Space(10);
-			
-			GUILayout.Label("Position", GUILayout.Width(50));
-			effector.FindPropertyRelative("positionWeight").floatValue = GUILayout.HorizontalSlider(effector.FindPropertyRelative("positionWeight").floatValue, 0f, 1f, GUILayout.Width(50));
-			
-			GUILayout.Space(5);
-				
-			GUILayout.Label("Rotation", GUILayout.Width(50));
-			effector.FindPropertyRelative("rotationWeight").floatValue = GUILayout.HorizontalSlider(effector.FindPropertyRelative("rotationWeight").floatValue, 0f, 1f, GUILayout.Width(50));
-			
-			if (!editHierarchy && effector.FindPropertyRelative("bones").arraySize > 1) {
-				EditorGUILayout.LabelField(new GUIContent("Falloff", string.Empty), GUILayout.Width(50));
-				EditorGUILayout.PropertyField(effector.FindPropertyRelative("falloff"), GUIContent.none);
-				effector.FindPropertyRelative("falloff").floatValue = Mathf.Clamp(effector.FindPropertyRelative("falloff").floatValue, 0f, Mathf.Infinity);
-			}
-			
-		}
-		
-		public static void AddScene(IKEffector e, Color color, bool modifiable, float size) {
-			if (!modifiable) return;
-			
-			// Draw effectors
-			bool rotate = e.isEndEffector;
-			float weight = rotate? Mathf.Max(e.positionWeight, e.rotationWeight): e.positionWeight;
-			
-			if (e.bone != null && weight > 0) {
-					
-				//if (Application.isPlaying) {
-					Handles.color = new Color(color.r, color.g, color.b, weight);
-
-					Handles.DrawLine(e.position, e.bone.position);
-					Inspector.SphereCap(0, e.bone.position, Quaternion.identity, size * 0.5f);
-
-					// Manipulating position and rotation
-					if (e.target == null) {
-						switch(Tools.current) {
-						case Tool.Move:
-							e.position = Handles.PositionHandle(e.position, Quaternion.identity);
-							break;
-						case Tool.Rotate:
-							if (rotate) e.rotation = Handles.RotationHandle(e.rotation, e.position);
-							break;
-						}
-					}
-					
-					if (rotate) Inspector.CubeCap(0, e.position, e.rotation, size);
-					else Inspector.SphereCap(0, e.position, Quaternion.identity, size);
-				//}
-			}
-		}
-		
-		#endregion Public methods
-		
-		private static void DrawArrayElementLabelBone(SerializedProperty bone, bool editHierarchy) {
-			AddObjectReference(bone, GUIContent.none, editHierarchy, 0, 300);
-		}
-		
-		private static void OnAddToArrayBone(SerializedProperty bone) {
-			bone.objectReferenceValue = null;
-		}
-	}
-}

+ 0 - 10
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/IKEffectorInspector.cs.meta

@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: f11a75612fdb244758156ae2d26a95ec
-MonoImporter:
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 27
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/IKExecutionOrderInspector.cs

@@ -1,27 +0,0 @@
-using UnityEngine;
-using UnityEditor;
-using System.Collections;
-
-namespace RootMotion.FinalIK {
-
-	// Custom inspector for IKExecutionOrder
-	[CustomEditor(typeof(IKExecutionOrder))]
-	public class IKExecutionOrderInspector : Editor {
-
-		private IKExecutionOrder script { get { return target as IKExecutionOrder; }}
-
-		private MonoScript monoScript;
-
-		void OnEnable() {
-			if (serializedObject == null) return;
-			
-			// Changing the script execution order
-			if (!Application.isPlaying) {
-				int executionOrder = 9996;
-				monoScript = MonoScript.FromMonoBehaviour(script);
-				int currentExecutionOrder = MonoImporter.GetExecutionOrder(monoScript);
-				if (currentExecutionOrder != executionOrder) MonoImporter.SetExecutionOrder(monoScript, executionOrder);
-			}
-		}
-	}
-}

+ 0 - 10
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/IKExecutionOrderInspector.cs.meta

@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: e2d73247f9c4b4190a30f8e4cc054bc5
-MonoImporter:
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 67
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/IKInspector.cs

@@ -1,67 +0,0 @@
-using UnityEditor;
-using UnityEngine;
-using System.Collections;
-
-namespace RootMotion.FinalIK {
-
-	/*
-	 * Base abstract class for IK component inspectors.
-	 * */
-	public abstract class IKInspector : Editor {
-		
-		protected abstract void AddInspector();
-		protected abstract MonoBehaviour GetMonoBehaviour(out int executionOrder);
-
-		protected SerializedProperty solver;
-		protected SerializedContent fixTransforms;
-		protected SerializedContent[] content;
-		protected virtual void OnApplyModifiedProperties() {}
-		protected virtual void OnEnableVirtual() {}
-
-		private MonoScript monoScript;
-
-		void OnEnable() {
-			if (serializedObject == null) return;
-
-			// Changing the script execution order
-			if (!Application.isPlaying) {
-				int executionOrder = 0;
-				monoScript = MonoScript.FromMonoBehaviour(GetMonoBehaviour(out executionOrder));
-				int currentExecutionOrder = MonoImporter.GetExecutionOrder(monoScript);
-				if (currentExecutionOrder != executionOrder) MonoImporter.SetExecutionOrder(monoScript, executionOrder);
-			}
-
-			solver = serializedObject.FindProperty("solver");
-			fixTransforms = new SerializedContent(serializedObject.FindProperty("fixTransforms"), new GUIContent("Fix Transforms", "If true, will fix all the Transforms used by the solver to their initial state in each Update. This prevents potential problems with unanimated bones and animator culling with a small cost of performance. Not recommended for CCD and FABRIK solvers."));
-
-			OnEnableVirtual();
-		}
-
-		// Override the default warning box
-		protected virtual void AddWarningBox(string message) {
-			EditorGUILayout.Space();
-			
-			EditorGUILayout.LabelField("Invalid/incomplete setup, can not initiate the solver. " + message, EditorStyles.helpBox);
-			
-			EditorGUILayout.Space();
-		}
-
-		#region Inspector
-		
-		public override void OnInspectorGUI() {
-			if (serializedObject == null) return;
-
-			serializedObject.Update();
-			
-			Inspector.AddContent(fixTransforms);
-			
-			AddInspector();
-
-			if (serializedObject.ApplyModifiedProperties()) {
-				OnApplyModifiedProperties();
-			}
-		}
-
-		#endregion Inspector
-	}
-}

+ 0 - 10
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/IKInspector.cs.meta

@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: 00e26cb6b10c641c49833ea4316e25cf
-MonoImporter:
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 103
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/IKSolverAimInspector.cs

@@ -1,103 +0,0 @@
-using UnityEngine;
-using UnityEditor;
-using System.Collections;
-using System;
-
-	namespace RootMotion.FinalIK {
-
-	/*
-	 * Custom inspector and scene view tools for IKSolverAim
-	 * */
-	public class IKSolverAimInspector: IKSolverInspector {
-
-		#region Public methods
-		
-		/// <summary>
-		/// Draws the custom inspector for IKSolverAim
-		/// </summary>
-		public static void AddInspector(SerializedProperty prop, bool editHierarchy) {
-			IKSolverHeuristicInspector.AddTarget(prop);
-			if (!prop.FindPropertyRelative("XY").boolValue) EditorGUILayout.PropertyField(prop.FindPropertyRelative("poleTarget"), new GUIContent("Pole Target", "If assigned, will automatically set polePosition to the position of this Transform."));
-
-			EditorGUILayout.PropertyField(prop.FindPropertyRelative("transform"), new GUIContent("Aim Transform", "The transform that you want to be aimed at the target. Needs to be a lineal descendant of the bone hierarchy. For example, if you wish to aim a gun, it should be the gun, one of it's children or the hand bone."));
-			EditorGUILayout.PropertyField(prop.FindPropertyRelative("axis"), new GUIContent("Axis", "The local axis of the Transform that you want to be aimed at IKPosition."));
-			if (!prop.FindPropertyRelative("XY").boolValue) EditorGUILayout.PropertyField(prop.FindPropertyRelative("poleAxis"), new GUIContent("Pole Axis", "Keeps that axis of the Aim Transform directed at the polePosition."));
-
-			EditorGUILayout.Space();
-			IKSolverHeuristicInspector.AddIKPositionWeight(prop);
-
-			if (!prop.FindPropertyRelative("XY").boolValue) EditorGUILayout.PropertyField(prop.FindPropertyRelative("poleWeight"), new GUIContent("Pole Weight", "The weight of the Pole."));
-
-			IKSolverHeuristicInspector.AddProps(prop);
-
-			EditorGUILayout.PropertyField(prop.FindPropertyRelative("clampWeight"), new GUIContent("Clamp Weight", "Clamping rotation of the solver. 0 is free rotation, 1 is completely clamped to transform axis."));
-			EditorGUILayout.PropertyField(prop.FindPropertyRelative("clampSmoothing"), new GUIContent("Clamp Smoothing", "Number of sine smoothing iterations applied on clamping to make the clamping point smoother."));
-
-			IKSolverHeuristicInspector.AddBones(prop, editHierarchy, true);
-		}
-		
-		/// <summary>
-		/// Draws the scene view helpers for IKSolverAim
-		/// </summary>
-		public static void AddScene(IKSolverAim solver, Color color, bool modifiable) {
-			// Protect from null reference errors
-			if (solver.transform == null) return;
-			if (Application.isPlaying && !solver.initiated) return;
-
-			if (!Application.isPlaying) {
-				string message = string.Empty;
-				if (!solver.IsValid(ref message)) return;
-			}
-			
-			Handles.color = color;
-			GUI.color = color;
-			
-			// Display the bones
-			for (int i = 0; i < solver.bones.Length; i++) {
-				IKSolver.Bone bone = solver.bones[i];
-
-				if (i < solver.bones.Length - 1) Handles.DrawLine(bone.transform.position, solver.bones[i + 1].transform.position);
-				Inspector.SphereCap(0, solver.bones[i].transform.position, Quaternion.identity, GetHandleSize(solver.bones[i].transform.position));
-			}
-			
-			if (solver.axis != Vector3.zero) Inspector.ConeCap(0, solver.transform.position, Quaternion.LookRotation(solver.transform.rotation * solver.axis), GetHandleSize(solver.transform.position) * 2f);
-			
-			// Selecting joint and manipulating IKPosition
-			if (Application.isPlaying && solver.IKPositionWeight > 0) {
-				if (modifiable) {
-					Inspector.SphereCap(0, solver.IKPosition, Quaternion.identity, GetHandleSize(solver.IKPosition));
-						
-					// Manipulating position
-					solver.IKPosition = Handles.PositionHandle(solver.IKPosition, Quaternion.identity);
-				}
-				
-				// Draw a transparent line from transform to IKPosition
-				Handles.color = new Color(color.r, color.g, color.b, color.a * solver.IKPositionWeight);
-				Handles.DrawLine(solver.bones[solver.bones.Length - 1].transform.position, solver.transform.position);
-				Handles.DrawLine(solver.transform.position, solver.IKPosition);
-			}
-
-			Handles.color = color;
-
-			// Pole
-			if (Application.isPlaying && solver.poleWeight > 0f) {
-				if (modifiable) {
-					Inspector.SphereCap(0, solver.polePosition, Quaternion.identity, GetHandleSize(solver.IKPosition) * 0.5f);
-					
-					// Manipulating position
-					solver.polePosition = Handles.PositionHandle(solver.polePosition, Quaternion.identity);
-				}
-
-				// Draw a transparent line from transform to polePosition
-				Handles.color = new Color(color.r, color.g, color.b, color.a * solver.poleWeight);
-				Handles.DrawLine(solver.transform.position, solver.polePosition);
-			}
-			
-			Handles.color = Color.white;
-			GUI.color = Color.white;
-		}
-		
-		#endregion Public methods
-
-	}
-}

+ 0 - 10
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/IKSolverAimInspector.cs.meta

@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: 13082609a38964d0486119efce14e42c
-MonoImporter:
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 101
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/IKSolverArmInspector.cs

@@ -1,101 +0,0 @@
-using UnityEngine;
-using UnityEditor;
-using System.Collections;
-
-namespace RootMotion.FinalIK {
-	
-	/*
-	 * Custom inspector and scene view tools for IKSolverArm
-	 * */
-	public class IKSolverArmInspector: IKSolverInspector {
-		
-		#region Public methods
-		
-		/*
-		 * Draws the custom inspector for IKSolverTrigonometric
-		 * */
-		public static void AddInspector(SerializedProperty prop, bool editHierarchy, bool showReferences) {
-			EditorGUI.indentLevel = 0;
-			
-			// Bone references
-			if (showReferences) {
-				EditorGUILayout.Space();
-				AddObjectReference(prop.FindPropertyRelative("chest.transform"), new GUIContent("Chest", "The last spine bone."), editHierarchy, 100);
-				AddObjectReference(prop.FindPropertyRelative("shoulder.transform"), new GUIContent("Shoulder", "The shoulder (clavicle) bone."), editHierarchy, 100);
-				AddObjectReference(prop.FindPropertyRelative("upperArm.transform"), new GUIContent("Upper Arm", "The upper arm bone."), editHierarchy, 100);
-				AddObjectReference(prop.FindPropertyRelative("forearm.transform"), new GUIContent("Forearm", "The forearm bone."), editHierarchy, 100);
-				AddObjectReference(prop.FindPropertyRelative("hand.transform"), new GUIContent("Hand", "The hand bone."), editHierarchy, 100);
-				
-				EditorGUILayout.Space();
-			}
-			
-			EditorGUILayout.PropertyField(prop.FindPropertyRelative("arm.target"), new GUIContent("Target", "The target Transform. Solver IKPosition will be automatically set to the position of the target."));
-			EditorGUILayout.PropertyField(prop.FindPropertyRelative("arm.bendGoal"), new GUIContent("Bend Goal", "If assigned, the knee will be bent in the direction towards this transform."));
-
-			EditorGUILayout.PropertyField(prop.FindPropertyRelative("IKPositionWeight"), new GUIContent("Position Weight", "Solver weight for smooth blending."));
-			EditorGUILayout.PropertyField(prop.FindPropertyRelative("IKRotationWeight"), new GUIContent("Rotation Weight", "Weight of last bone's rotation to IKRotation."));
-			EditorGUILayout.PropertyField(prop.FindPropertyRelative("isLeft"), new GUIContent("Is Left", "Check this if this is the left arm, uncheck if right."));
-			EditorGUILayout.PropertyField(prop.FindPropertyRelative("arm.shoulderRotationMode"), new GUIContent("Shoulder Rotation Mode", " Different techniques for shoulder bone rotation."));
-			EditorGUILayout.PropertyField(prop.FindPropertyRelative("arm.shoulderRotationWeight"), new GUIContent("Shoulder Rotation Weight", " The weight of shoulder rotation"));
-			EditorGUILayout.PropertyField(prop.FindPropertyRelative("arm.bendGoalWeight"), new GUIContent("Bend Goal Weight", "Weight of the bend goal."));
-			EditorGUILayout.PropertyField(prop.FindPropertyRelative("arm.swivelOffset"), new GUIContent("Swivel Offset", "Angular offset of the arm's bending direction."));
-			EditorGUILayout.PropertyField(prop.FindPropertyRelative("arm.wristToPalmAxis"), new GUIContent("Wrist To Palm Axis", "Local axis of the hand bone that points from the wrist towards the palm. Used for defining hand bone orientation."));
-			EditorGUILayout.PropertyField(prop.FindPropertyRelative("arm.palmToThumbAxis"), new GUIContent("Palm To Thumb Axis", "Local axis of the hand bone that points from the palm towards the thumb. Used for defining hand bone orientation."));
-			EditorGUILayout.PropertyField(prop.FindPropertyRelative("arm.armLengthMlp"), new GUIContent("Arm Length Mlp", "Use this to make the arm shorter/longer."));
-			EditorGUILayout.PropertyField(prop.FindPropertyRelative("arm.stretchCurve"), new GUIContent("Stretch Curve", "Evaluates stretching of the arm by target distance relative to arm length. Value at time 1 represents stretching amount at the point where distance to the target is equal to arm length. Value at time 2 represents stretching amount at the point where distance to the target is double the arm length. Value represents the amount of stretching. Linear stretching would be achieved with a linear curve going up by 45 degrees. Increase the range of stretching by moving the last key up and right at the same amount. Smoothing in the curve can help reduce elbow snapping (start stretching the arm slightly before target distance reaches arm length)."));
-		}
-		
-		/*
-		 * Draws the scene view helpers for IKSolverTrigonometric
-		 * */
-		public static void AddScene(IKSolverArm solver, Color color, bool modifiable) {
-			if (Application.isPlaying && !solver.initiated) return;
-			if (!Application.isPlaying && !solver.IsValid()) return;
-			
-			//float length = Vector3.Distance(solver.bone1.transform.position, solver.bone2.transform.position) + Vector3.Distance(solver.bone2.transform.position, solver.bone3.transform.position);
-			//float size = length * 0.05f;
-			
-			Handles.color = color;
-			GUI.color = color;
-			
-			// Chain lines
-			Handles.DrawLine(solver.chest.transform.position, solver.shoulder.transform.position);
-			Handles.DrawLine(solver.shoulder.transform.position, solver.upperArm.transform.position);
-			Handles.DrawLine(solver.upperArm.transform.position, solver.forearm.transform.position);
-			Handles.DrawLine(solver.forearm.transform.position, solver.hand.transform.position);
-
-			// Joints
-			Inspector.SphereCap(0, solver.chest.transform.position, Quaternion.identity, GetHandleSize(solver.chest.transform.position));
-			Inspector.SphereCap(0, solver.shoulder.transform.position, Quaternion.identity, GetHandleSize(solver.shoulder.transform.position));
-			Inspector.SphereCap(0, solver.upperArm.transform.position, Quaternion.identity, GetHandleSize(solver.upperArm.transform.position));
-			Inspector.SphereCap(0, solver.forearm.transform.position, Quaternion.identity, GetHandleSize(solver.forearm.transform.position));
-			Inspector.SphereCap(0, solver.hand.transform.position, Quaternion.identity, GetHandleSize(solver.hand.transform.position));
-
-			if (Application.isPlaying && (solver.IKPositionWeight > 0 || solver.IKRotationWeight > 0)) {
-				if (modifiable) {
-					Inspector.CubeCap(0, solver.IKPosition, solver.IKRotation, GetHandleSize(solver.IKPosition));
-					
-					// Manipulating position and rotation
-					switch(Tools.current) {
-					case Tool.Move:
-						if (solver.arm.target == null) solver.IKPosition = Handles.PositionHandle(solver.IKPosition, Quaternion.identity);
-						break;
-					case Tool.Rotate:
-						if (solver.arm.target == null) solver.IKRotation = Handles.RotationHandle(solver.IKRotation, solver.IKPosition);
-						break;
-					}
-				}
-				
-				// Target
-				Handles.color = new Color(color.r, color.g, color.b, color.a * Mathf.Max(solver.IKPositionWeight, solver.IKRotationWeight));
-				Handles.DrawLine(solver.hand.transform.position, solver.IKPosition);
-			}
-			
-			Handles.color = Color.white;
-			GUI.color = Color.white;
-		}
-		
-		#endregion Public methods
-	}
-}
-

+ 0 - 12
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/IKSolverArmInspector.cs.meta

@@ -1,12 +0,0 @@
-fileFormatVersion: 2
-guid: 2096c71e8e55def4bafe5d7f1604ea55
-timeCreated: 1528379406
-licenseType: Store
-MonoImporter:
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 94
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/IKSolverFABRIKRootInspector.cs

@@ -1,94 +0,0 @@
-using UnityEngine;
-using UnityEditor;
-using System.Collections;
-
-	namespace RootMotion.FinalIK {
-
-	/*
-	 * Custom inspector and scene view tools for IKSolverFABRIKRoot
-	 * */
-	public class IKSolverFABRIKRootInspector : IKSolverInspector {
-		
-		#region Public methods
-		
-		/*
-		 * Draws the custom inspector for IKSolverFABRIKRoot
-		 * */
-		public static void AddInspector(SerializedProperty prop, bool editHierarchy) {
-			AddClampedInt(prop.FindPropertyRelative("iterations"), new GUIContent("Iterations", "Solver iterations."), 0, int.MaxValue);
-
-			EditorGUILayout.PropertyField(prop.FindPropertyRelative("IKPositionWeight"), new GUIContent("Weight", "Solver weight."));
-			EditorGUILayout.PropertyField(prop.FindPropertyRelative("rootPin"), new GUIContent("Root Pin", "Weight of keeping all FABRIK Trees pinned to the root position."));
-			
-			EditorGUILayout.Space();
-
-			EditorGUI.indentLevel = 0;
-			EditorGUILayout.PropertyField(prop.FindPropertyRelative("chains"), new GUIContent("Chains", "FABRIK chains."), true);
-			
-			EditorGUILayout.Space();
-		}
-		
-		/*
-		 * Draws the scene view helpers for IKSolverFABRIKRoot
-		 * */
-		public static void AddScene(IKSolverFABRIKRoot solver, Color color, bool modifiable, ref FABRIKChain selected) {
-			// Protect from null reference errors
-			if (Application.isPlaying && !solver.initiated) return;
-			if (!Application.isPlaying) {
-				string message = string.Empty;
-				if (!solver.IsValid(ref message)) return;
-			}
-			Handles.color = color;
-			
-			// Selecting solvers
-			if (Application.isPlaying) {
-				SelectChain(solver.chains, ref selected, color);
-			}
-			
-			AddSceneChain(solver.chains, color, selected);
-			
-			// Root pin
-			Handles.color = new Color(Mathf.Lerp(1f, color.r, solver.rootPin), Mathf.Lerp(1f, color.g, solver.rootPin), Mathf.Lerp(1f, color.b, solver.rootPin), Mathf.Lerp(0.5f, 1f, solver.rootPin));
-			if (solver.GetRoot() != null) {
-				Handles.DrawLine(solver.chains[0].ik.solver.bones[0].transform.position, solver.GetRoot().position);
-				Inspector.CubeCap(0, solver.GetRoot().position, Quaternion.identity, GetHandleSize(solver.GetRoot().position));
-			}
-		}
-		
-		#endregion Public methods
-		
-		private static Color col, midColor, endColor;
-		
-		private static void SelectChain(FABRIKChain[] chain, ref FABRIKChain selected, Color color) {
-			foreach (FABRIKChain c in chain) {
-				if (c.ik.solver.IKPositionWeight > 0 && selected != c) {
-					Handles.color = GetChainColor(c, color);
-
-					if (Inspector.DotButton(c.ik.solver.GetIKPosition(), Quaternion.identity, GetHandleSize(c.ik.solver.GetIKPosition()), GetHandleSize(c.ik.solver.GetIKPosition()))) {
-						selected = c;
-						return;
-					}
-				}
-			}
-		}
-		
-		private static Color GetChainColor(FABRIKChain chain, Color color) {
-			float midWeight = chain.pin;
-			midColor = new Color(Mathf.Lerp(1f, color.r, midWeight), Mathf.Lerp(1f, color.g, midWeight), Mathf.Lerp(1f, color.b, midWeight), Mathf.Lerp(0.5f, 1f, midWeight));
-			
-			float endWeight = chain.pull;
-			endColor = new Color(Mathf.Lerp(1f, color.r, endWeight), Mathf.Lerp(0f, color.g, endWeight), Mathf.Lerp(0f, color.b, endWeight), Mathf.Lerp(0.5f, 1f, endWeight));
-			
-			return chain.children.Length == 0? endColor: midColor;
-		}
-		
-		private static void AddSceneChain(FABRIKChain[] chain, Color color, FABRIKChain selected) {
-			foreach (FABRIKChain c in chain) {
-				col = GetChainColor(c, color);
-				
-				IKSolverHeuristicInspector.AddScene(c.ik.solver as IKSolverHeuristic, col, selected == c);
-			}
-		}
-	}
-}
-

+ 0 - 10
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/IKSolverFABRIKRootInspector.cs.meta

@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: 47b6cc68611af428d82361a2eb3d8505
-MonoImporter:
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 339
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/IKSolverFullBodyBipedInspector.cs

@@ -1,339 +0,0 @@
-using UnityEngine;
-using UnityEditor;
-using System.Collections;
-using System;
-
-namespace RootMotion.FinalIK {
-
-	// Custom inspector and scene view tools for IKSolverFullBodyBiped
-	public class IKSolverFullBodyBipedInspector : IKSolverInspector {
-		
-		#region Public methods
-		
-		public static void AddReferences(bool editHierarchy, SerializedProperty prop) {
-			// RootNode
-			if (editHierarchy) {
-				EditorGUILayout.PropertyField(prop.FindPropertyRelative("rootNode"), new GUIContent("Root Node", "Select one of the bones in the (lower) spine."));
-			}
-		}
-		
-		// Draws the custom inspector for IKSolverFullBodybiped
-		public static void AddInspector(SerializedProperty prop, bool editWeights) {
-			IKSolverFullBodyInspector.AddInspector(prop, editWeights);
-			
-			EditorGUILayout.Space();
-			EditorGUI.indentLevel = 0;
-
-			AddSolver(prop);
-		}
-
-
-		// Draws the scene view helpers for IKSolverFullBodyBiped
-		public static void AddScene(UnityEngine.Object target, IKSolverFullBodyBiped solver, Color color, ref int selectedEffector, Transform root) {
-			if (Application.isPlaying && !solver.initiated) return;
-			if (!Application.isPlaying && !solver.IsValid()) return;
-
-			bool modifiable = solver.initiated;
-
-			float heightF = Vector3.Distance(solver.chain[1].nodes[0].transform.position, solver.chain[1].nodes[1].transform.position) + 
-				Vector3.Distance(solver.chain[3].nodes[0].transform.position, solver.chain[3].nodes[1].transform.position);
-
-			float size = Mathf.Clamp(heightF * 0.075f, 0.001f, Mathf.Infinity);
-
-			// Bend goals
-			for (int i = 0; i < solver.chain.Length; i++) {
-				if (solver.chain[i].nodes.Length == 3 && solver.chain[i].bendConstraint.bendGoal != null && solver.chain[i].bendConstraint.weight > 0f) {
-					Color c = color;
-					c.a = solver.chain[i].bendConstraint.weight;
-					Handles.color = c;
-					
-					Handles.DrawLine(solver.chain[i].nodes[1].transform.position, solver.chain[i].bendConstraint.bendGoal.position);
-					Inspector.SphereCap(0, solver.chain[i].nodes[1].transform.position, Quaternion.identity, size * 0.5f);
-					Inspector.SphereCap(0, solver.chain[i].bendConstraint.bendGoal.position, Quaternion.identity, size * 0.5f);
-					
-					Handles.color = Color.white;
-				}
-			}
-
-			// Chain
-			if (!modifiable) {
-				for (int i = 0; i < solver.chain.Length; i++) {
-					IKSolverFullBodyInspector.AddChain(solver.chain, i, color, size);
-				}
-
-				Handles.DrawLine(solver.chain[1].nodes[0].transform.position, solver.chain[2].nodes[0].transform.position);
-				Handles.DrawLine(solver.chain[3].nodes[0].transform.position, solver.chain[4].nodes[0].transform.position);
-
-				AddLimbHelper(solver.chain[1], size);
-				AddLimbHelper(solver.chain[2], size);
-				AddLimbHelper(solver.chain[3], size, root);
-				AddLimbHelper(solver.chain[4], size, root);
-			}
-			
-			// Effectors
-			IKSolverFullBodyInspector.AddScene(target, solver, color, modifiable, ref selectedEffector, size);
-		}
-
-		// Scene view handles to help with limb setup
-		private static void AddLimbHelper(FBIKChain chain, float size, Transform root = null) {
-			Vector3 cross = Vector3.Cross((chain.nodes[1].transform.position - chain.nodes[0].transform.position).normalized, (chain.nodes[2].transform.position - chain.nodes[0].transform.position).normalized);
-
-			Vector3 bendDirection = -Vector3.Cross(cross.normalized, (chain.nodes[2].transform.position - chain.nodes[0].transform.position).normalized);
-
-			if (bendDirection != Vector3.zero) {
-				Color c = Handles.color;
-				bool inverted = root != null && Vector3.Dot(root.forward, bendDirection.normalized) < 0f;
-
-				// Inverted bend direction
-				if (inverted) {
-					GUI.color = new Color(1f, 0.75f, 0.75f);
-					Handles.color = Color.yellow;
-
-					if (Inspector.DotButton(chain.nodes[1].transform.position, Quaternion.identity, size * 0.5f, size)) {
-						Warning.logged = false;
-						Warning.Log("The bend direction of this limb appears to be inverted. Please rotate this bone so that the limb is bent in it's natural bending direction. If this limb is supposed to be bent in the direction pointed by the arrow, ignore this warning.", root, true);
-					}
-				}
-
-				Inspector.ArrowCap(0, chain.nodes[1].transform.position, Quaternion.LookRotation(bendDirection), size * 2f);
-
-				GUI.color = Color.white;
-				Handles.color = c;
-			} else {
-				// The limb is completely stretched out
-				Color c = Handles.color;
-				Handles.color = Color.red;
-				GUI.color = new Color(1f, 0.75f, 0.75f);
-
-				if (Inspector.DotButton(chain.nodes[1].transform.position, Quaternion.identity, size * 0.5f, size)) {
-					Warning.logged = false;
-					Warning.Log("The limb is completely stretched out. Full Body Biped IK does not know which way the limb should be bent. Please rotate this bone slightly in it's bending direction.", root, true);
-				}
-
-				GUI.color = Color.white;
-				Handles.color = c;
-			}
-		}
-		
-		#endregion Public methods
-		
-		private const string style = "Box";
-
-		private static void AddProperty(SerializedProperty prop, GUIContent guiContent) {
-			GUILayout.BeginHorizontal();
-			GUILayout.Space(50);
-			EditorGUILayout.PropertyField(prop, guiContent);
-			GUILayout.Space(20);
-			GUILayout.EndHorizontal();
-		}
-
-		private static void AddSolver(SerializedProperty prop) {
-			var chains = prop.FindPropertyRelative("chain");
-
-			AddBody(prop, chains.GetArrayElementAtIndex(0), new GUIContent("Body", string.Empty));
-			AddLimb(prop, chains.GetArrayElementAtIndex(1), FullBodyBipedChain.LeftArm, new GUIContent("Left Arm", string.Empty));
-			AddLimb(prop, chains.GetArrayElementAtIndex(2), FullBodyBipedChain.RightArm, new GUIContent("Right Arm", string.Empty));
-			AddLimb(prop, chains.GetArrayElementAtIndex(3), FullBodyBipedChain.LeftLeg, new GUIContent("Left Leg", string.Empty));
-			AddLimb(prop, chains.GetArrayElementAtIndex(4), FullBodyBipedChain.RightLeg, new GUIContent("Right Leg", string.Empty));
-		}
-
-		private static void AddBody(SerializedProperty prop, SerializedProperty chain, GUIContent guiContent) {
-			EditorGUILayout.PropertyField(chain, guiContent, false);
-			GUILayout.BeginHorizontal();
-			GUILayout.Space(10);
-			GUILayout.BeginVertical();
-
-			if (chain.isExpanded) {
-				var effectors = prop.FindPropertyRelative("effectors");
-				var effector = effectors.GetArrayElementAtIndex(0);
-				var spineMapping = prop.FindPropertyRelative("spineMapping");
-				var headMapping = prop.FindPropertyRelative("boneMappings").GetArrayElementAtIndex(0);
-
-				GUILayout.BeginVertical(style);
-				
-				DrawLabel("Body Effector", startEffectorIcon);
-
-				AddProperty(effector.FindPropertyRelative("target"), new GUIContent("Target", "Target Transform (optional, you can also use bodyEffector.position and bodyEffector.rotation directly)."));
-				AddProperty(effector.FindPropertyRelative("positionWeight"), new GUIContent("Position Weight", "The weight of pinning the effector bone to the effector position."));
-				AddProperty(effector.FindPropertyRelative("effectChildNodes"), new GUIContent("Use Thighs", "If true, the effect of the body effector will be applied to also the thigh effectors (IKEffector.effectChildNodes)."));
-				
-				DrawLabel("Chain", null);
-				
-				// Spine stiffness
-				AddProperty(prop.FindPropertyRelative("spineStiffness"), new GUIContent("Spine Stiffness", "The bend resistance of the spine."));
-				
-				// Pull Body
-				AddProperty(prop.FindPropertyRelative("pullBodyVertical"), new GUIContent("Pull Body Vertical", "Weight of hand effectors pulling the body vertically."));
-				AddProperty(prop.FindPropertyRelative("pullBodyHorizontal"), new GUIContent("Pull Body Horizontal", "Weight of hand effectors pulling the body horizontally."));
-				
-				DrawLabel("Mapping", null);
-				
-				AddProperty(spineMapping.FindPropertyRelative("iterations"), new GUIContent("Spine Iterations", "The number of FABRIK iterations for mapping the spine bones to the solver armature."));
-				AddProperty(spineMapping.FindPropertyRelative("twistWeight"), new GUIContent("Spine Twist Weight", "The weight of spine twist."));
-				AddProperty(headMapping.FindPropertyRelative("maintainRotationWeight"), new GUIContent("Maintain Head Rot", "The weight of maintaining the bone's animated rotation in world space."));
-				
-				GUILayout.Space(5);
-				GUILayout.EndVertical();
-			}
-
-			GUILayout.EndVertical();
-			GUILayout.EndHorizontal();
-		}
-
-		private static void AddLimb(SerializedProperty prop, SerializedProperty chain, FullBodyBipedChain chainType, GUIContent guiContent) {
-			EditorGUILayout.PropertyField(chain, guiContent, false);
-			GUILayout.BeginHorizontal();
-			GUILayout.Space(10);
-			GUILayout.BeginVertical();
-			
-			if (chain.isExpanded) {
-				var effectors = prop.FindPropertyRelative("effectors");
-				var endEffector = effectors.GetArrayElementAtIndex(GetEndEffectorIndex(chainType));
-				var startEffector = effectors.GetArrayElementAtIndex(GetStartEffectorIndex(chainType));
-				var mapping = prop.FindPropertyRelative("limbMappings").GetArrayElementAtIndex(GetLimbMappingIndex(chainType));
-
-				GUILayout.BeginVertical(style);
-				
-				DrawLabel(GetEndEffectorName(chainType), endEffectorIcon);
-
-				AddProperty(endEffector.FindPropertyRelative("target"), new GUIContent("Target", "Target Transform (optional, you can also use IKEffector.position and IKEffector.rotation directly)."));
-				AddProperty(endEffector.FindPropertyRelative("positionWeight"), new GUIContent("Position Weight", "The weight of pinning the effector bone to the effector position."));
-				AddProperty(endEffector.FindPropertyRelative("rotationWeight"), new GUIContent("Rotation Weight", "The weight of pinning the effector bone to the effector rotation."));
-				AddProperty(endEffector.FindPropertyRelative("maintainRelativePositionWeight"), new GUIContent("Maintain Relative Pos", "Maintains the position of the hand/foot fixed relative to the chest/hips while effector positionWeight is not weighed in."));
-				
-				DrawLabel(GetStartEffectorName(chainType), startEffectorIcon);
-
-				AddProperty(startEffector.FindPropertyRelative("target"), new GUIContent("Target", "Target Transform (optional, you can also use IKEffector.position and IKEffector.rotation directly)."));
-				AddProperty(startEffector.FindPropertyRelative("positionWeight"), new GUIContent("Position Weight", "The weight of pinning the effector bone to the effector position."));
-				
-				DrawLabel("Chain", null);
-				
-				AddProperty(chain.FindPropertyRelative("pull"), new GUIContent("Pull", "The weight of pulling other chains."));
-				AddProperty(chain.FindPropertyRelative("reach"), new GUIContent("Reach", "Pulls the first node closer to the last node of the chain."));
-				AddProperty(chain.FindPropertyRelative("push"), new GUIContent("Push", "The weight of the end-effector pushing the first node."));
-				AddProperty(chain.FindPropertyRelative("pushParent"), new GUIContent("Push Parent", "The amount of push force transferred to the parent (from hand or foot to the body)."));
-				AddProperty(chain.FindPropertyRelative("reachSmoothing"), new GUIContent("Reach Smoothing", "Smoothing the effect of the Reach with the expense of some accuracy."));
-				AddProperty(chain.FindPropertyRelative("pushSmoothing"), new GUIContent("Push Smoothing", "Smoothing the effect of the Push."));
-				AddProperty(chain.FindPropertyRelative("bendConstraint").FindPropertyRelative("bendGoal"), new GUIContent("Bend Goal", "The Transform to bend towards (optional, you can also use ik.leftArmChain.bendConstraint.direction)."));
-				AddProperty(chain.FindPropertyRelative("bendConstraint").FindPropertyRelative("weight"), new GUIContent("Bend Goal Weight", "The weight of to bending towards the Bend Goal (optional, you can also use ik.leftArmChain.bendConstraint.weight)."));
-
-				DrawLabel("Mapping", null);
-				
-				AddProperty(mapping.FindPropertyRelative("weight"), new GUIContent("Mapping Weight", "The weight of mapping the limb to it's IK pose. This can be useful if you want to disable the effect of IK for the limb."));
-				AddProperty(mapping.FindPropertyRelative("maintainRotationWeight"), new GUIContent(GetEndBoneMappingName(chainType), "The weight of maintaining the bone's animated rotation in world space."));
-				
-				GUILayout.Space(5);
-				GUILayout.EndVertical();
-			}
-
-			GUILayout.EndVertical();
-			GUILayout.EndHorizontal();
-		}
-
-		private static void DrawLabel(string label, Texture2D texture) {
-			GUILayout.Space(3);
-			GUILayout.BeginHorizontal();
-			
-			if (texture != null) {
-				Rect rect = EditorGUILayout.GetControlRect(GUILayout.Width(16), GUILayout.Height(16));
-				GUI.DrawTexture(rect, texture);
-			} else GUILayout.Space(21);
-			
-			EditorGUILayout.LabelField(new GUIContent(label, string.Empty));
-			GUILayout.EndHorizontal();
-			GUILayout.Space(3);
-		}
-
-		private static string GetEndEffectorName(FullBodyBipedChain chain) {
-			switch(chain) {
-			case FullBodyBipedChain.LeftArm: return "Left Hand Effector";
-			case FullBodyBipedChain.RightArm: return "Right Hand Effector";
-			case FullBodyBipedChain.LeftLeg: return "Left Foot Effector";
-			case FullBodyBipedChain.RightLeg: return "Right Foot Effector";
-			default: return string.Empty;
-			}
-		}
-		
-		private static string GetStartEffectorName(FullBodyBipedChain chain) {
-			switch(chain) {
-			case FullBodyBipedChain.LeftArm: return "Left Shoulder Effector";
-			case FullBodyBipedChain.RightArm: return "Right Shoulder Effector";
-			case FullBodyBipedChain.LeftLeg: return "Left Thigh Effector";
-			case FullBodyBipedChain.RightLeg: return "Right Thigh Effector";
-			default: return string.Empty;
-			}
-		}
-		
-		private static string GetEndBoneMappingName(FullBodyBipedChain chain) {
-			switch(chain) {
-			case FullBodyBipedChain.LeftArm: return "Maintain Hand Rot";
-			case FullBodyBipedChain.RightArm: return "Maintain Hand Rot";
-			case FullBodyBipedChain.LeftLeg: return "Maintain Foot Rot";
-			case FullBodyBipedChain.RightLeg: return "Maintain Foot Rot";
-			default: return string.Empty;
-			}
-		}
-
-		private static int GetEndEffectorIndex(FullBodyBipedChain chainType) {
-			switch(chainType) {
-			case FullBodyBipedChain.LeftArm: return 5;
-			case FullBodyBipedChain.RightArm: return 6;
-			case FullBodyBipedChain.LeftLeg: return 7;
-			case FullBodyBipedChain.RightLeg: return 8;
-			}
-			return 0;
-		}
-		
-		private static int GetStartEffectorIndex(FullBodyBipedChain chainType) {
-			switch(chainType) {
-			case FullBodyBipedChain.LeftArm: return 1;
-			case FullBodyBipedChain.RightArm: return 2;
-			case FullBodyBipedChain.LeftLeg: return 3;
-			case FullBodyBipedChain.RightLeg: return 4;
-			}
-			return 0;
-		}
-		
-		private static int GetLimbMappingIndex(FullBodyBipedChain chainType) {
-			switch(chainType) {
-			case FullBodyBipedChain.LeftArm: return 0;
-			case FullBodyBipedChain.RightArm: return 1;
-			case FullBodyBipedChain.LeftLeg: return 2;
-			case FullBodyBipedChain.RightLeg: return 3;
-			}
-			return 0;
-		}
-
-		private static Texture2D endEffectorIcon {
-			get {
-				if (_endEffectorIcon == null) _endEffectorIcon = (Texture2D)AssetDatabase.LoadAssetAtPath("Assets/RootMotion/FinalIK/Gizmos/EndEffector Icon.png", typeof(Texture2D));
-				return _endEffectorIcon;
-			}
-		}
-		private static Texture2D _endEffectorIcon;
-		
-		private static Texture2D startEffectorIcon {
-			get {
-				if (_startEffectorIcon == null) _startEffectorIcon = (Texture2D)AssetDatabase.LoadAssetAtPath("Assets/RootMotion/FinalIK/Gizmos/MidEffector Icon.png", typeof(Texture2D));
-				return _startEffectorIcon;
-			}
-		}
-		private static Texture2D _startEffectorIcon;
-		
-		private static Texture2D chainIcon {
-			get {
-				if (_chainIcon == null) _chainIcon = (Texture2D)AssetDatabase.LoadAssetAtPath("Assets/RootMotion/FinalIK/Gizmos/Chain Icon.png", typeof(Texture2D));
-				return _chainIcon;
-			}
-		}
-		private static Texture2D _chainIcon;
-		
-		private static Texture2D mappingIcon {
-			get {
-				if (_mappingIcon == null) _mappingIcon = (Texture2D)AssetDatabase.LoadAssetAtPath("Assets/RootMotion/FinalIK/Gizmos/Mapping Icon.png", typeof(Texture2D));
-				return _mappingIcon;
-			}
-		}
-		private static Texture2D _mappingIcon;
-	}
-}

+ 0 - 10
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/IKSolverFullBodyBipedInspector.cs.meta

@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: 533c5d8f60bd14648a10c7c1ad3f9ee5
-MonoImporter:
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 80
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/IKSolverFullBodyInspector.cs

@@ -1,80 +0,0 @@
-using UnityEngine;
-using UnityEditor;
-using System.Collections;
-using System;
-
-namespace RootMotion.FinalIK {
-
-	/*
-	 * Custom inspector and scene view tools for IKSolverFullBody
-	 * */
-	public class IKSolverFullBodyInspector : IKSolverInspector {
-		
-		#region Public methods
-		
-		/*
-		 * Draws the custom inspector for IKSolverFullBody
-		 * */
-		public static void AddInspector(SerializedProperty prop, bool editWeights) {
-			EditorGUILayout.PropertyField(prop.FindPropertyRelative("IKPositionWeight"), new GUIContent("Weight", "Solver weight for smooth blending (ik.solver.IKPositionWeight)."));
-			EditorGUILayout.PropertyField(prop.FindPropertyRelative("iterations"), new GUIContent("Iterations", "Solver iterations per frame."));
-		}
-
-		/*
-		 * Draws the scene view helpers for IKSolverFullBody
-		 * */
-		public static void AddScene(UnityEngine.Object target, IKSolverFullBody solver, Color color, bool modifiable, ref int selectedEffector, float size) {
-			if (!modifiable) return;
-			if (!solver.initiated) return;
-			if (!Application.isPlaying && !solver.IsValid()) return;
-
-			// Effectors
-			for (int i = 0; i < solver.effectors.Length; i++) {
-				bool rotate = solver.effectors[i].isEndEffector;
-				float weight = rotate? Mathf.Max(solver.effectors[i].positionWeight, solver.effectors[i].rotationWeight): solver.effectors[i].positionWeight;
-				
-				if (weight > 0 && selectedEffector != i) {
-					Handles.color = color;
-
-					if (rotate) {
-						if (Inspector.DotButton(solver.effectors[i].position, solver.effectors[i].rotation, size * 0.5f, size * 0.5f)) {
-							selectedEffector = i;
-							return;
-						}
-					} else {
-						if (Inspector.SphereButton(solver.effectors[i].position, solver.effectors[i].rotation, size, size)) {
-							selectedEffector = i;
-							return;
-						}
-					}
-				}
-			}
-			
-			for (int i = 0; i < solver.effectors.Length; i++) IKEffectorInspector.AddScene(solver.effectors[i], color, modifiable && i == selectedEffector, size);
-		
-			if (GUI.changed) EditorUtility.SetDirty(target);
-		}
-		
-		#endregion Public methods
-		
-		public static void AddChain(FBIKChain[] chain, int index, Color color, float size) {
-			Handles.color = color;
-			
-			for (int i = 0; i < chain[index].nodes.Length - 1; i++) {
-				Handles.DrawLine(GetNodePosition(chain[index].nodes[i]), GetNodePosition(chain[index].nodes[i + 1]));
-				Inspector.SphereCap(0, GetNodePosition(chain[index].nodes[i]), Quaternion.identity, size);
-			}
-			
-			Inspector.SphereCap(0, GetNodePosition(chain[index].nodes[chain[index].nodes.Length - 1]), Quaternion.identity, size);
-
-			for (int i = 0; i < chain[index].children.Length; i++) {
-				Handles.DrawLine(GetNodePosition(chain[index].nodes[chain[index].nodes.Length - 1]), GetNodePosition(chain[chain[index].children[i]].nodes[0]));
-			}
-		}
-		
-		private static Vector3 GetNodePosition(IKSolver.Node node) {
-			if (Application.isPlaying) return node.solverPosition;
-			return node.transform.position;
-		}
-	}
-}

+ 0 - 10
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/IKSolverFullBodyInspector.cs.meta

@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: 9a32242b195b44820b383881d973c731
-MonoImporter:
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 104
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/IKSolverHeuristicInspector.cs

@@ -1,104 +0,0 @@
-using UnityEngine;
-using UnityEditor;
-using System.Collections;
-
-namespace RootMotion.FinalIK {
-
-	/*
-	 * Custom inspector and scene view tools for IK solvers extending IKSolverHeuristic
-	 * */
-	public class IKSolverHeuristicInspector: IKSolverInspector {
-
-		#region Public methods
-		
-		/*
-		 * Draws the custom inspector for IKSolverHeuristic
-		 * */
-		public static void AddInspector(SerializedProperty prop, bool editHierarchy, bool editWeights) {
-			AddTarget(prop);
-			AddIKPositionWeight(prop);
-			AddProps(prop);
-			AddBones(prop, editHierarchy, editWeights);
-		}
-
-		public static void AddTarget(SerializedProperty prop) {
-			EditorGUILayout.PropertyField(prop.FindPropertyRelative("target"), new GUIContent("Target", "The target Transform. Solver IKPosition will be automatically set to the position of the target."));
-		}
-
-		public static void AddIKPositionWeight(SerializedProperty prop) {
-			EditorGUILayout.PropertyField(prop.FindPropertyRelative("IKPositionWeight"), new GUIContent("Weight", "Solver weight for smooth blending."));
-		}
-
-		public static void AddProps(SerializedProperty prop) {
-			AddClampedFloat(prop.FindPropertyRelative("tolerance"), new GUIContent("Tolerance", "Minimum offset from last reached position. Will stop solving if offset is less than tolerance. If tolerance is zero, will iterate until maxIterations."));
-			AddClampedInt(prop.FindPropertyRelative("maxIterations"), new GUIContent("Max Iterations", "Max solver iterations per frame."), 0, int.MaxValue);
-		}
-
-		public static void AddBones(SerializedProperty prop, bool editHierarchy, bool editWeights) {
-			EditorGUILayout.PropertyField(prop.FindPropertyRelative("useRotationLimits"), new GUIContent("Use Rotation Limits", "If true, rotation limits (if existing) will be applied on each iteration."));
-			EditorGUILayout.PropertyField(prop.FindPropertyRelative("XY"), new GUIContent("2D", "If true, will solve only in the XY plane."));
-
-			EditorGUILayout.Space();
-			weights = editWeights;
-			if (editHierarchy || editWeights) {
-				AddArray(prop.FindPropertyRelative("bones"), new GUIContent("Bones", string.Empty), editHierarchy, false, null, OnAddToArrayBone, DrawArrayElementLabelBone);
-			}
-			EditorGUILayout.Space();
-		}
-		
-		/*
-		 * Draws the scene view helpers for IKSolverHeuristic
-		 * */
-		public static void AddScene(IKSolverHeuristic solver, Color color, bool modifiable) {
-			// Protect from null reference errors
-			if (Application.isPlaying && !solver.initiated) return;
-			if (!Application.isPlaying && !solver.IsValid()) return;
-
-			Handles.color = color;
-			GUI.color = color;
-			
-			// Display the bones
-			for (int i = 0; i < solver.bones.Length; i++) {
-				IKSolver.Bone bone = solver.bones[i];
-
-				if (i < solver.bones.Length - 1) Handles.DrawLine(bone.transform.position, solver.bones[i + 1].transform.position);
-				Inspector.SphereCap(0, solver.bones[i].transform.position, Quaternion.identity, GetHandleSize(solver.bones[i].transform.position));
-			}
-			
-			// Selecting joint and manipulating IKPosition
-			if (Application.isPlaying && solver.IKPositionWeight > 0) {
-				if (modifiable) {
-					Inspector.CubeCap(0, solver.IKPosition, solver.GetRoot().rotation, GetHandleSize(solver.IKPosition));
-						
-					// Manipulating position
-					if (solver.target == null) solver.IKPosition = Handles.PositionHandle(solver.IKPosition, Quaternion.identity);
-				}
-				
-				// Draw a transparent line from last bone to IKPosition
-				Handles.color = new Color(color.r, color.g, color.b, color.a * solver.IKPositionWeight);
-				Handles.DrawLine(solver.bones[solver.bones.Length - 1].transform.position, solver.IKPosition);
-			}
-			
-			Handles.color = Color.white;
-			GUI.color = Color.white;
-		}
-		
-		#endregion Public methods
-		
-		private static bool weights;
-		
-		private static void DrawArrayElementLabelBone(SerializedProperty bone, bool editHierarchy) {
-			AddObjectReference(bone.FindPropertyRelative("transform"), GUIContent.none, editHierarchy, 0, weights? 100: 200);
-			if (weights) AddWeightSlider(bone.FindPropertyRelative("weight"));
-		}
-		
-		private static void OnAddToArrayBone(SerializedProperty bone) {
-			bone.FindPropertyRelative("weight").floatValue = 1f;
-		}
-		
-		private static void AddWeightSlider(SerializedProperty prop) {
-			GUILayout.Label("Weight", GUILayout.Width(45));
-			EditorGUILayout.PropertyField(prop, GUIContent.none);
-		}
-	}
-}

+ 0 - 10
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/IKSolverHeuristicInspector.cs.meta

@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: d5806071df7484ff0bfa7330e9adb04e
-MonoImporter:
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 19
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/IKSolverInspector.cs

@@ -1,19 +0,0 @@
-using UnityEngine;
-using UnityEditor;
-using System.Collections;
-using System;
-
-namespace RootMotion.FinalIK {
-
-	/*
-	 * Contains helper methods for managing IKSolver's fields.
-	 * */
-	public class IKSolverInspector: Inspector {
-
-		public static float GetHandleSize(Vector3 position) {
-			float s = HandleUtility.GetHandleSize(position) * 0.1f;
-			return Mathf.Lerp(s, 0.025f, 0.2f);
-		}
-
-	}
-}

+ 0 - 10
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/IKSolverInspector.cs.meta

@@ -1,10 +0,0 @@
-fileFormatVersion: 2
-guid: f8fadad0d2804439bad44738bf137eb3
-MonoImporter:
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 100
Runtime/SDK/Modules/Module_FinalIK2.0/Plugins/RootMotion/Editor/FinalIK/IKSolverLegInspector.cs

@@ -1,100 +0,0 @@
-using UnityEngine;
-using UnityEditor;
-using System.Collections;
-
-namespace RootMotion.FinalIK {
-	
-	/*
-	 * Custom inspector and scene view tools for IKSolverLeg
-	 * */
-	public class IKSolverLegInspector: IKSolverInspector {
-		
-		#region Public methods
-		
-		/*
-		 * Draws the custom inspector for IKSolverTrigonometric
-		 * */
-		public static void AddInspector(SerializedProperty prop, bool editHierarchy, bool showReferences) {
-			EditorGUI.indentLevel = 0;
-			
-			// Bone references
-			if (showReferences) {
-				EditorGUILayout.Space();
-				AddObjectReference(prop.FindPropertyRelative("pelvis.transform"), new GUIContent("Pelvis", "The pelvis (hips)."), editHierarchy, 100);
-				AddObjectReference(prop.FindPropertyRelative("thigh.transform"), new GUIContent("Thigh", "The upper leg."), editHierarchy, 100);
-				AddObjectReference(prop.FindPropertyRelative("calf.transform"), new GUIContent("Calf", "The lower leg."), editHierarchy, 100);
-				AddObjectReference(prop.FindPropertyRelative("foot.transform"), new GUIContent("Foot", "The ankle."), editHierarchy, 100);
-				AddObjectReference(prop.FindPropertyRelative("toe.transform"), new GUIContent("Toe", "The first toe bone."), editHierarchy, 100);
-				
-				EditorGUILayout.Space();
-			}
-			
-			EditorGUILayout.PropertyField(prop.FindPropertyRelative("leg.target"), new GUIContent("Target", "The target Transform. Solver IKPosition will be automatically set to the position of the target."));
-			EditorGUILayout.PropertyField(prop.FindPropertyRelative("leg.bendGoal"), new GUIContent("Bend Goal", "If assigned, the knee will be bent in the direction towards this transform."));
-
-			EditorGUILayout.PropertyField(prop.FindPropertyRelative("IKPositionWeight"), new GUIContent("Position Weight", "Solver weight for smooth blending."));
-			EditorGUILayout.PropertyField(prop.FindPropertyRelative("IKRotationWeight"), new GUIContent("Rotation Weight", "Weight of last bone's rotation to IKRotation."));
-			EditorGUILayout.PropertyField(prop.FindPropertyRelative("leg.bendGoalWeight"), new GUIContent("Bend Goal Weight", "Weight of the bend goal."));
-
-			EditorGUILayout.PropertyField(prop.FindPropertyRelative("leg.swivelOffset"), new GUIContent("Swivel Offset", "Angular offset of the leg's bending direction."));
-			EditorGUILayout.PropertyField(prop.FindPropertyRelative("leg.bendToTargetWeight"), new GUIContent("Bend To Target Weight", "If 0, the bend plane will be locked to the rotation of the pelvis and rotating the foot will have no effect on the knee direction. If 1, to the target rotation of the leg so that the knee will bend towards the forward axis of the foot. Values in between will be slerped between the two."));
-			EditorGUILayout.PropertyField(prop.FindPropertyRelative("leg.legLengthMlp"), new GUIContent("Leg Length Mlp", "Use this to make the leg shorter/longer."));
-			EditorGUILayout.PropertyField(prop.FindPropertyRelative("leg.stretchCurve"), new GUIContent("Stretch Curve", "Evaluates stretching of the leg by target distance relative to leg length. Value at time 1 represents stretching amount at the point where distance to the target is equal to leg length. Value at time 1 represents stretching amount at the point where distance to the target is double the leg length. Value represents the amount of stretching. Linear stretching would be achieved with a linear curve going up by 45 degrees. Increase the range of stretching by moving the last key up and right at the same amount. Smoothing in the curve can help reduce knee snapping (start stretching the arm slightly before target distance reaches leg length)."));
-
-			EditorGUILayout.PropertyField(prop.FindPropertyRelative("heelOffset"), new GUIContent("Heel Offset", "Offset of the heel in world space."));
-		}
-		
-		/*
-		 * Draws the scene view helpers for IKSolverTrigonometric
-		 * */
-		public static void AddScene(IKSolverLeg solver, Color color, bool modifiable) {
-			if (Application.isPlaying && !solver.initiated) return;
-			if (!Application.isPlaying && !solver.IsValid()) return;
-			
-			//float length = Vector3.Distance(solver.bone1.transform.position, solver.bone2.transform.position) + Vector3.Distance(solver.bone2.transform.position, solver.bone3.transform.position);
-			//float size = length * 0.05f;
-			
-			Handles.color = color;
-			GUI.color = color;
-			
-			// Chain lines
-			Handles.DrawLine(solver.pelvis.transform.position, solver.thigh.transform.position);
-			Handles.DrawLine(solver.thigh.transform.position, solver.calf.transform.position);
-			Handles.DrawLine(solver.calf.transform.position, solver.foot.transform.position);
-			Handles.DrawLine(solver.foot.transform.position, solver.toe.transform.position);
-
-			// Joints
-			Inspector.SphereCap(0, solver.pelvis.transform.position, Quaternion.identity, GetHandleSize(solver.pelvis.transform.position));
-			Inspector.SphereCap(0, solver.thigh.transform.position, Quaternion.identity, GetHandleSize(solver.thigh.transform.position));
-			Inspector.SphereCap(0, solver.calf.transform.position, Quaternion.identity, GetHandleSize(solver.calf.transform.position));
-			Inspector.SphereCap(0, solver.foot.transform.position, Quaternion.identity, GetHandleSize(solver.foot.transform.position));
-			Inspector.SphereCap(0, solver.toe.transform.position, Quaternion.identity, GetHandleSize(solver.toe.transform.position));
-
-			if (Application.isPlaying && (solver.IKPositionWeight > 0 || solver.IKRotationWeight > 0)) {
-				if (modifiable) {
-					Inspector.CubeCap(0, solver.IKPosition, solver.IKRotation, GetHandleSize(solver.IKPosition));
-					
-					// Manipulating position and rotation
-					switch(Tools.current) {
-					case Tool.Move:
-						if (solver.leg.target == null) solver.IKPosition = Handles.PositionHandle(solver.IKPosition, Quaternion.identity);
-						break;
-					case Tool.Rotate:
-						if (solver.leg.target == null) solver.IKRotation = Handles.RotationHandle(solver.IKRotation, solver.IKPosition);
-						break;
-					}
-				}
-				
-				// Target
-				Handles.color = new Color(color.r, color.g, color.b, color.a * Mathf.Max(solver.IKPositionWeight, solver.IKRotationWeight));
-				Handles.DrawLine(solver.toe.transform.position, solver.IKPosition);
-			}
-			
-			Handles.color = Color.white;
-			GUI.color = Color.white;
-		}
-		
-		#endregion Public methods
-	}
-}
-

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio