void ContinueScript(List <ScriptInfo> AwaitPtr, string szAssetName) { if (AwaitPtr == null) { return; } GameObject obj = null; long v = 0; for (int i = 0; i < AwaitPtr.Count; ++i) { ScriptInfo info = AwaitPtr[i]; if (FCLibHelper.fc_is_valid_await(m_VMPtr, info.nPtr)) { //if(obj == null) 这里不能共用一个Obj,因为脚本中的引用计算一一对应的 { obj = new GameObject(szAssetName); // 自动创建一个对象,算是模拟加载的后对象 v = FCGetObj.PushObj(obj); } // 必要的话,在这里设置返回值 FCLibHelper.fc_set_value_wrap_objptr(m_VMPtr, info.nReturnPtr, v); FCLibHelper.fc_continue(m_VMPtr, info.nPtr); // 唤醒脚本 } } }
public void SetScriptValue(string szName, UnityEngine.Object value) { if (m_nScriptInsPtr != 0) { long ptr = FCLibHelper.fc_get_class_value(m_nScriptInsPtr, szName); long obj_ptr = FCGetObj.PushObj(value); FCLibHelper.fc_set_value_wrap_objptr(ptr, obj_ptr); } }
public void SetScriptValue(string szName, System.Object value) { CreateScript(); if (m_nScriptInsPtr != 0) { long ptr = FCLibHelper.fc_get_class_value(m_nScriptInsPtr, szName); long obj_ptr = FCGetObj.PushObj(value); FCLibHelper.fc_set_value_intptr(ptr, obj_ptr); } }
void TestFunc10() { GameObject obj = GameObject.Find("Empty"); if (obj == null) { obj = new GameObject("Empty"); } long nPtr = FCGetObj.PushObj(obj.transform); FCLibHelper.fc_push_intptr(nPtr); FCLibHelper.fc_call(0, "Test10"); }
public static int get_whiteTexture_wrap(long L) { try { long ret_ptr = FCLibHelper.fc_get_return_ptr(L); long v = FCGetObj.PushObj(Texture2D.whiteTexture); FCLibHelper.fc_set_value_intptr(ret_ptr, v); } catch (Exception e) { Debug.LogException(e); } return(0); }
public static int get_deviceOrientation_wrap(long L) { try { long ret_ptr = FCLibHelper.fc_get_return_ptr(L); long v = FCGetObj.PushObj(Input.deviceOrientation); FCLibHelper.fc_set_value_intptr(ret_ptr, v); } catch (Exception e) { Debug.LogException(e); } return(0); }
public static int get_imeCompositionMode_wrap(long L) { try { long ret_ptr = FCLibHelper.fc_get_return_ptr(L); long v = FCGetObj.PushObj(Input.imeCompositionMode); FCLibHelper.fc_set_value_intptr(ret_ptr, v); } catch (Exception e) { Debug.LogException(e); } return(0); }
public static int get_blackTexture_wrap(long L) { try { long ret_ptr = FCLibHelper.fc_get_return_ptr(L); long v = FCGetObj.PushObj(UnityEngine.Texture2D.blackTexture); FCLibHelper.fc_set_value_wrap_objptr(ret_ptr, v); } catch (Exception e) { Debug.LogException(e); } return(0); }
void TestFunc4() { GameObject obj = GameObject.Find("Empty"); if (obj == null) { obj = new GameObject("Empty"); } //FCLibHelper.fc_prepare_call(0, "Test0"); // 要传Object参数,需要初始化参数列表 long nPtr = FCGetObj.PushObj(obj.transform); FCLibHelper.fc_push_intptr(nPtr); FCLibHelper.fc_call(0, "Test4"); }
public static int GetActiveScene_wrap(long L) { try { UnityEngine.SceneManagement.Scene ret = UnityEngine.SceneManagement.SceneManager.GetActiveScene(); long ret_ptr = FCLibHelper.fc_get_return_ptr(L); long v = FCGetObj.PushObj(ret); FCLibHelper.fc_set_value_wrap_objptr(ret_ptr, v); } catch (Exception e) { Debug.LogException(e); } return(0); }
public static int get_compass_wrap(long L) { try { long ret_ptr = FCLibHelper.fc_get_return_ptr(L); long VM = FCLibHelper.fc_get_vm_ptr(L); long v = FCGetObj.PushObj(UnityEngine.Input.compass); FCLibHelper.fc_set_value_wrap_objptr(VM, ret_ptr, v); } catch (Exception e) { Debug.LogException(e); } return(0); }
void Test() { TestExport ret = this; long v = FCGetObj.PushObj(TestExport.onPostRender); FCDll.PushCallParam(v); int[] buffer = new int[10]; unsafe { fixed(void *p = buffer) { } } //this.GetRefList(ref arg0); }
public static int get_cachedTextGenerator_wrap(long L) { try { long nThisPtr = FCLibHelper.fc_get_inport_obj_ptr(L); Text ret = get_obj(nThisPtr); long ret_ptr = FCLibHelper.fc_get_return_ptr(L); long v = FCGetObj.PushObj(ret.cachedTextGenerator); FCLibHelper.fc_set_value_intptr(ret_ptr, v); } catch (Exception e) { Debug.LogException(e); } return(0); }
public static int get_gameObject_wrap(long L) { try { long nThisPtr = FCLibHelper.fc_get_inport_obj_ptr(L); UnityEngine.Component ret = get_obj(nThisPtr); long ret_ptr = FCLibHelper.fc_get_return_ptr(L); long v = FCGetObj.PushObj(ret.gameObject); FCLibHelper.fc_set_value_wrap_objptr(ret_ptr, v); } catch (Exception e) { Debug.LogException(e); } return(0); }
public static int get_horizontalOverflow_wrap(long L) { try { long nThisPtr = FCLibHelper.fc_get_inport_obj_ptr(L); Text ret = get_obj(nThisPtr); long ret_ptr = FCLibHelper.fc_get_return_ptr(L); long v = FCGetObj.PushObj(ret.horizontalOverflow); FCLibHelper.fc_set_value_intptr(ret_ptr, v); } catch (Exception e) { Debug.LogException(e); } return(0); }
public static int get_transform_wrap(long L) { try { long nThisPtr = FCLibHelper.fc_get_inport_obj_ptr(L); Component ret = get_obj(nThisPtr); long ret_ptr = FCLibHelper.fc_get_return_ptr(L); long v = FCGetObj.PushObj(ret.transform); FCLibHelper.fc_set_value_intptr(ret_ptr, v); } catch (Exception e) { Debug.LogException(e); } return(0); }
public static int GetAccelerationEvent_wrap(long L) { try { int arg0 = FCLibHelper.fc_get_int(L, 0); UnityEngine.AccelerationEvent ret = UnityEngine.Input.GetAccelerationEvent(arg0); long ret_ptr = FCLibHelper.fc_get_return_ptr(L); long v = FCGetObj.PushObj(ret); FCLibHelper.fc_set_value_wrap_objptr(ret_ptr, v); } catch (Exception e) { Debug.LogException(e); } return(0); }
public static int get_hideFlags_wrap(long L) { try { long nThisPtr = FCLibHelper.fc_get_inport_obj_ptr(L); UnityObject ret = get_obj(nThisPtr); long ret_ptr = FCLibHelper.fc_get_return_ptr(L); long v = FCGetObj.PushObj(ret.hideFlags); FCLibHelper.fc_set_value_intptr(ret_ptr, v); } catch (Exception e) { Debug.LogException(e); } return(0); }
public static int get_shadowResolution_wrap(long L) { try { long nThisPtr = FCLibHelper.fc_get_inport_obj_ptr(L); Light ret = get_obj(nThisPtr); long ret_ptr = FCLibHelper.fc_get_return_ptr(L); long v = FCGetObj.PushObj(ret.shadowResolution); FCLibHelper.fc_set_value_intptr(ret_ptr, v); } catch (Exception e) { Debug.LogException(e); } return(0); }
public static int FindWithTag_wrap(long L) { try { string arg0 = FCLibHelper.fc_get_string_a(L, 0); UnityEngine.GameObject ret = UnityEngine.GameObject.FindWithTag(arg0); long ret_ptr = FCLibHelper.fc_get_return_ptr(L); long v = FCGetObj.PushObj(ret); FCLibHelper.fc_set_value_wrap_objptr(ret_ptr, v); } catch (Exception e) { Debug.LogException(e); } return(0); }
public static int GetTouch_wrap(long L) { try { int arg0 = FCLibHelper.fc_get_int(L, 0); Touch ret = Input.GetTouch(arg0); long ret_ptr = FCLibHelper.fc_get_return_ptr(L); long v = FCGetObj.PushObj(ret); FCLibHelper.fc_set_value_intptr(ret_ptr, v); } catch (Exception e) { Debug.LogException(e); } return(0); }
public static int get_additionalVertexStreams_wrap(long L) { try { long nThisPtr = FCLibHelper.fc_get_inport_obj_ptr(L); UnityEngine.MeshRenderer ret = get_obj(nThisPtr); long ret_ptr = FCLibHelper.fc_get_return_ptr(L); long v = FCGetObj.PushObj(ret.additionalVertexStreams); FCLibHelper.fc_set_value_wrap_objptr(ret_ptr, v); } catch (Exception e) { Debug.LogException(e); } return(0); }
public static int get_compass_wrap(long L) { try { long nThisPtr = FCLibHelper.fc_get_inport_obj_ptr(L); Input ret = get_obj(nThisPtr); long ret_ptr = FCLibHelper.fc_get_return_ptr(L); long v = FCGetObj.PushObj(Input.compass); FCLibHelper.fc_set_value_intptr(ret_ptr, v); } catch (Exception e) { Debug.LogException(e); } return(0); }
public static int get_sharedMesh_wrap(long L) { try { long nThisPtr = FCLibHelper.fc_get_inport_obj_ptr(L); SkinnedMeshRenderer ret = get_obj(nThisPtr); long ret_ptr = FCLibHelper.fc_get_return_ptr(L); long v = FCGetObj.PushObj(ret.sharedMesh); FCLibHelper.fc_set_value_intptr(ret_ptr, v); } catch (Exception e) { Debug.LogException(e); } return(0); }
public static int GetSceneByBuildIndex_wrap(long L) { try { int arg0 = FCLibHelper.fc_get_int(L, 0); UnityEngine.SceneManagement.Scene ret = UnityEngine.SceneManagement.SceneManager.GetSceneByBuildIndex(arg0); long ret_ptr = FCLibHelper.fc_get_return_ptr(L); long v = FCGetObj.PushObj(ret); FCLibHelper.fc_set_value_wrap_objptr(ret_ptr, v); } catch (Exception e) { Debug.LogException(e); } return(0); }
public static int CreateScene_wrap(long L) { try { string arg0 = FCLibHelper.fc_get_string_a(L, 0); UnityEngine.SceneManagement.Scene ret = UnityEngine.SceneManagement.SceneManager.CreateScene(arg0); long ret_ptr = FCLibHelper.fc_get_return_ptr(L); long v = FCGetObj.PushObj(ret); FCLibHelper.fc_set_value_wrap_objptr(ret_ptr, v); } catch (Exception e) { Debug.LogException(e); } return(0); }
public static int FindObjectOfType_wrap(long L) { try { System.Type arg0 = FCGetObj.GetObj <System.Type>(FCLibHelper.fc_get_wrap_objptr(L, 0)); UnityObject ret = UnityObject.FindObjectOfType(arg0); long ret_ptr = FCLibHelper.fc_get_return_ptr(L); long v = FCGetObj.PushObj(ret); FCLibHelper.fc_set_value_wrap_objptr(ret_ptr, v); } catch (Exception e) { Debug.LogException(e); } return(0); }
public static int CreatePrimitive_wrap(long L) { try { UnityEngine.PrimitiveType arg0 = (UnityEngine.PrimitiveType)(FCLibHelper.fc_get_int(L, 0)); UnityEngine.GameObject ret = UnityEngine.GameObject.CreatePrimitive(arg0); long ret_ptr = FCLibHelper.fc_get_return_ptr(L); long v = FCGetObj.PushObj(ret); FCLibHelper.fc_set_value_wrap_objptr(ret_ptr, v); } catch (Exception e) { Debug.LogException(e); } return(0); }
public static int get_blackTexture_wrap(long L) { try { long nThisPtr = FCLibHelper.fc_get_inport_obj_ptr(L); Texture2D ret = get_obj(nThisPtr); long ret_ptr = FCLibHelper.fc_get_return_ptr(L); long v = FCGetObj.PushObj(Texture2D.blackTexture); FCLibHelper.fc_set_value_intptr(ret_ptr, v); } catch (Exception e) { Debug.LogException(e); } return(0); }
public static int UnloadSceneAsync2_wrap(long L) { try { UnityEngine.SceneManagement.Scene arg0 = FCGetObj.GetObj <UnityEngine.SceneManagement.Scene>(FCLibHelper.fc_get_wrap_objptr(L, 0)); UnityEngine.AsyncOperation ret = UnityEngine.SceneManagement.SceneManager.UnloadSceneAsync(arg0); long ret_ptr = FCLibHelper.fc_get_return_ptr(L); long v = FCGetObj.PushObj(ret); FCLibHelper.fc_set_value_wrap_objptr(ret_ptr, v); } catch (Exception e) { Debug.LogException(e); } return(0); }