public static void SetSceneViewZoom(float v) { if (!IsLoaded || !PluginsInterface.SetCurrent(s_path)) { return; } PluginsInterface.QueryFunction <object>("setSceneViewZoom", v); }
public static void SetGridSize(float[] v) { if (!IsLoaded || !PluginsInterface.SetCurrent(s_path)) { return; } PluginsInterface.QueryFunction <object>("setGridSize", v); }
public static void SetAssetsFileSystemRoot(string path) { if (!IsLoaded || !PluginsInterface.SetCurrent(s_path)) { return; } PluginsInterface.QueryFunction <object>("setAssetsFileSystemRoot", path); }
public static void Release() { if (!IsLoaded || !PluginsInterface.SetCurrent(s_path)) { return; } PluginsInterface.QueryFunction <object>("release"); s_initialized = false; }
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); }
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); }
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); }
public static bool ClearScene() { if (!IsLoaded || !PluginsInterface.SetCurrent(s_path)) { return(false); } var result = PluginsInterface.QueryFunction <bool>("clearScene"); return(result.result); }
public static float[] ConvertPointFromScreenToWorldSpace(int[] p) { if (!IsLoaded || !PluginsInterface.SetCurrent(s_path)) { return(null); } var result = PluginsInterface.QueryFunction <float[]>("convertPointFromScreenToWorldSpace", p); return(result.result); }
public static float GetSceneViewZoom() { if (!IsLoaded || !PluginsInterface.SetCurrent(s_path)) { return(0.0f); } var result = PluginsInterface.QueryFunction <float>("getSceneViewZoom"); return(result.result); }
public static float[] GetSceneViewCenter() { if (!IsLoaded || !PluginsInterface.SetCurrent(s_path)) { return(null); } var result = PluginsInterface.QueryFunction <float[]>("getSceneViewCenter"); return(result.result); }
public static bool ProcessRender() { if (!IsLoaded || !PluginsInterface.SetCurrent(s_path)) { return(false); } var result = PluginsInterface.QueryFunction <bool>("processRender"); return(result.result); }
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); }
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); }
public static List <string> ListCustomAssets() { if (!IsLoaded || !PluginsInterface.SetCurrent(s_path)) { return(null); } var result = PluginsInterface.QueryFunction <List <string> >("listCustomAssets"); return(result.result); }
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); }
public static int FindGameObjectHandleAtScreenPosition(int[] p) { if (!IsLoaded || !PluginsInterface.SetCurrent(s_path)) { return(0); } var result = PluginsInterface.QueryFunction <int>("findGameObjectHandleAtScreenPosition", p); return(result.result); }
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); }
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); }
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); }
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); }
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); }
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); }