Esempio n. 1
0
 public static void SetSceneViewZoom(float v)
 {
     if (!IsLoaded || !PluginsInterface.SetCurrent(s_path))
     {
         return;
     }
     PluginsInterface.QueryFunction <object>("setSceneViewZoom", v);
 }
Esempio n. 2
0
 public static void SetGridSize(float[] v)
 {
     if (!IsLoaded || !PluginsInterface.SetCurrent(s_path))
     {
         return;
     }
     PluginsInterface.QueryFunction <object>("setGridSize", v);
 }
Esempio n. 3
0
 public static void SetAssetsFileSystemRoot(string path)
 {
     if (!IsLoaded || !PluginsInterface.SetCurrent(s_path))
     {
         return;
     }
     PluginsInterface.QueryFunction <object>("setAssetsFileSystemRoot", path);
 }
Esempio n. 4
0
 public static void Release()
 {
     if (!IsLoaded || !PluginsInterface.SetCurrent(s_path))
     {
         return;
     }
     PluginsInterface.QueryFunction <object>("release");
     s_initialized = false;
 }
Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 8
0
        public static bool ClearScene()
        {
            if (!IsLoaded || !PluginsInterface.SetCurrent(s_path))
            {
                return(false);
            }
            var result = PluginsInterface.QueryFunction <bool>("clearScene");

            return(result.result);
        }
Esempio n. 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);
        }
Esempio n. 10
0
        public static float GetSceneViewZoom()
        {
            if (!IsLoaded || !PluginsInterface.SetCurrent(s_path))
            {
                return(0.0f);
            }
            var result = PluginsInterface.QueryFunction <float>("getSceneViewZoom");

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

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

            return(result.result);
        }
Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 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);
        }