void GetSetDevTool() { if (GetDevTool() == null) { devTool = CreateDevToolAsset(); } else { devTool = GetDevTool(); } }
VRGestureDevTool CreateDevToolAsset() { VRGestureDevTool instance = CreateInstance <VRGestureDevTool>(); string parentPath = Application.dataPath + RESOURCES_PATH.Substring(RESOURCES_PATH.IndexOf('/')); //Debug.Log("parentPath: " + parentPath); string devToolDirectoryPath = parentPath + "Dev/"; Debug.Log(devToolDirectoryPath); if (!Directory.Exists(devToolDirectoryPath)) { Directory.CreateDirectory(devToolDirectoryPath); } AssetDatabase.CreateAsset(instance, DEV_TOOL_PATH); return(instance); }