예제 #1
0
 public static void SetSceneViewZoom(float v)
 {
     if (!IsLoaded || !PluginsInterface.SetCurrent(s_path))
     {
         return;
     }
     PluginsInterface.QueryFunction <object>("setSceneViewZoom", v);
 }
예제 #2
0
 public static void SetGridSize(float[] v)
 {
     if (!IsLoaded || !PluginsInterface.SetCurrent(s_path))
     {
         return;
     }
     PluginsInterface.QueryFunction <object>("setGridSize", v);
 }
예제 #3
0
 public static void SetAssetsFileSystemRoot(string path)
 {
     if (!IsLoaded || !PluginsInterface.SetCurrent(s_path))
     {
         return;
     }
     PluginsInterface.QueryFunction <object>("setAssetsFileSystemRoot", path);
 }
예제 #4
0
 public static void Release()
 {
     if (!IsLoaded || !PluginsInterface.SetCurrent(s_path))
     {
         return;
     }
     PluginsInterface.QueryFunction <object>("release");
     s_initialized = false;
 }
예제 #5
0
        public static bool DuplicateGameObject(int handleFrom, bool isPrefabFrom, int handleTo, bool isPrefabTo)
        {
            if (!IsLoaded || !PluginsInterface.SetCurrent(s_path))
            {
                return(false);
            }
            var result = PluginsInterface.QueryFunction <bool>("duplicateGameObject", handleFrom, isPrefabFrom, handleTo, isPrefabTo);

            return(result.result);
        }
예제 #6
0
        public static bool ProcessUpdate(float deltaTime, bool sortInstances)
        {
            if (!IsLoaded || !PluginsInterface.SetCurrent(s_path))
            {
                return(false);
            }
            var result = PluginsInterface.QueryFunction <bool>("processUpdate", deltaTime, sortInstances);

            return(result.result);
        }
예제 #7
0
        public static int CreateGameObject(bool isPrefab, int parent, string prefabSource, string id)
        {
            if (!IsLoaded || !PluginsInterface.SetCurrent(s_path))
            {
                return(0);
            }
            var result = PluginsInterface.QueryFunction <int>("createGameObject", isPrefab, parent, prefabSource, id);

            return(result.result);
        }
예제 #8
0
        public static bool ClearScene()
        {
            if (!IsLoaded || !PluginsInterface.SetCurrent(s_path))
            {
                return(false);
            }
            var result = PluginsInterface.QueryFunction <bool>("clearScene");

            return(result.result);
        }
예제 #9
0
        public static float[] ConvertPointFromScreenToWorldSpace(int[] p)
        {
            if (!IsLoaded || !PluginsInterface.SetCurrent(s_path))
            {
                return(null);
            }
            var result = PluginsInterface.QueryFunction <float[]>("convertPointFromScreenToWorldSpace", p);

            return(result.result);
        }
예제 #10
0
        public static float GetSceneViewZoom()
        {
            if (!IsLoaded || !PluginsInterface.SetCurrent(s_path))
            {
                return(0.0f);
            }
            var result = PluginsInterface.QueryFunction <float>("getSceneViewZoom");

            return(result.result);
        }
예제 #11
0
        public static float[] GetSceneViewCenter()
        {
            if (!IsLoaded || !PluginsInterface.SetCurrent(s_path))
            {
                return(null);
            }
            var result = PluginsInterface.QueryFunction <float[]>("getSceneViewCenter");

            return(result.result);
        }
예제 #12
0
        public static bool ProcessRender()
        {
            if (!IsLoaded || !PluginsInterface.SetCurrent(s_path))
            {
                return(false);
            }
            var result = PluginsInterface.QueryFunction <bool>("processRender");

            return(result.result);
        }
예제 #13
0
        public static bool TriggerGameObjectComponentFunctionality(int handle, bool isPrefab, string compId, string funcName)
        {
            if (!IsLoaded || !PluginsInterface.SetCurrent(s_path))
            {
                return(false);
            }
            var result = PluginsInterface.QueryFunction <bool>("triggerGameObjectComponentFunctionality", handle, isPrefab, compId, funcName);

            return(result.result);
        }
예제 #14
0
        public static bool ClearGameObject(int handle, bool isPrefab)
        {
            if (!IsLoaded || !PluginsInterface.SetCurrent(s_path))
            {
                return(false);
            }
            var result = PluginsInterface.QueryFunction <bool>("clearGameObject", handle, isPrefab);

            return(result.result);
        }
예제 #15
0
        public static List <string> ListCustomAssets()
        {
            if (!IsLoaded || !PluginsInterface.SetCurrent(s_path))
            {
                return(null);
            }
            var result = PluginsInterface.QueryFunction <List <string> >("listCustomAssets");

            return(result.result);
        }
예제 #16
0
        public static List <GameObjectData> ListGameObjects(bool isPrefab)
        {
            if (!IsLoaded || !PluginsInterface.SetCurrent(s_path))
            {
                return(null);
            }
            var result = PluginsInterface.QueryFunction <List <GameObjectData> >("listGameObjects", isPrefab);

            return(result.result);
        }
예제 #17
0
        public static int FindGameObjectHandleAtScreenPosition(int[] p)
        {
            if (!IsLoaded || !PluginsInterface.SetCurrent(s_path))
            {
                return(0);
            }
            var result = PluginsInterface.QueryFunction <int>("findGameObjectHandleAtScreenPosition", p);

            return(result.result);
        }
예제 #18
0
        public static int FindGameObjectHandleById(string id, bool isPrefab, int parent)
        {
            if (!IsLoaded || !PluginsInterface.SetCurrent(s_path))
            {
                return(0);
            }
            var result = PluginsInterface.QueryFunction <int>("findGameObjectHandleById", id, isPrefab, parent);

            return(result.result);
        }
예제 #19
0
        public static bool Initialize(long windowHandle)
        {
            if (!IsLoaded || !PluginsInterface.SetCurrent(s_path))
            {
                return(false);
            }
            var result = PluginsInterface.QueryFunction <bool>("initialize", windowHandle);

            s_initialized = result.result;
            return(result.result);
        }
예제 #20
0
        public static List <T> QueryAssets <T>(AssetType type, string json)
        {
            if (!IsLoaded || !PluginsInterface.SetCurrent(s_path))
            {
                return(null);
            }
            var root   = Newtonsoft.Json.JsonConvert.DeserializeObject(json);
            var result = PluginsInterface.QueryFunction <List <T> >("queryAssets", (int)type, root);

            return(result.result);
        }
예제 #21
0
        public static Dictionary <string, string> QueryGameObject(int handle, bool isPrefab, string json)
        {
            if (!IsLoaded || !PluginsInterface.SetCurrent(s_path))
            {
                return(null);
            }
            var root   = Newtonsoft.Json.JsonConvert.DeserializeObject(json);
            var result = PluginsInterface.QueryFunction <Dictionary <string, string> >("queryGameObject", handle, isPrefab, root);

            return(result.result);
        }
예제 #22
0
        public static string ConvertGameObjectToJson(int handle, bool isPrefab)
        {
            if (!IsLoaded || !PluginsInterface.SetCurrent(s_path))
            {
                return(null);
            }
            var    result = PluginsInterface.QueryFunction <object>("convertGameObjectToJson", handle, isPrefab);
            string json   = Newtonsoft.Json.JsonConvert.SerializeObject(result.result, Newtonsoft.Json.Formatting.Indented);

            return(json);
        }
예제 #23
0
        public static bool ApplyJsonToGameObject(int handle, bool isPrefab, string json)
        {
            if (!IsLoaded || !PluginsInterface.SetCurrent(s_path))
            {
                return(false);
            }
            var root   = Newtonsoft.Json.JsonConvert.DeserializeObject(json);
            var result = PluginsInterface.QueryFunction <bool>("applyJsonToGameObject", handle, isPrefab, root);

            return(result.result);
        }