public static int set_reflectionProbeUsage_wrap(long L) { try { long nThisPtr = FCLibHelper.fc_get_inport_obj_ptr(L); UnityEngine.Renderer ret = get_obj(nThisPtr); UnityEngine.Rendering.ReflectionProbeUsage arg0 = (UnityEngine.Rendering.ReflectionProbeUsage)(FCLibHelper.fc_get_int(L, 0)); ret.reflectionProbeUsage = arg0; } catch (Exception e) { Debug.LogException(e); } return(0); }
public static void PushCallParam(double v) { FCLibHelper.fc_push_double(v); }
public static void PushCallParam(IntPtr v) { FCLibHelper.fc_push_void_ptr(v); }
public static void fc_set_value_string_a(long ptr, string v) { FCLibHelper.fc_set_value_string(ptr, v); }
void Update() { FCLibHelper.fc_coroutine_udpate();// 执行协程逻辑 }
public static int set_cullingType_wrap(long L) { try { long nThisPtr = FCLibHelper.fc_get_inport_obj_ptr(L); Animation ret = get_obj(nThisPtr); UnityEngine.AnimationCullingType arg0 = (UnityEngine.AnimationCullingType)(FCLibHelper.fc_get_int(L, 0)); ret.cullingType = arg0; } catch (Exception e) { Debug.LogException(e); } return(0); }
public static int RemoveClip_wrap(long L) { try { long nThisPtr = FCLibHelper.fc_get_inport_obj_ptr(L); Animation obj = get_obj(nThisPtr); UnityEngine.AnimationClip arg0 = FCGetObj.GetObj <UnityEngine.AnimationClip>(FCLibHelper.fc_get_intptr(L, 0)); obj.RemoveClip(arg0); } catch (Exception e) { Debug.LogException(e); } return(0); }
void TestFunc6() { FCLibHelper.fc_call(m_VMPtr, 0, "Test6"); }
void TestFunc7() { FCLibHelper.fc_call(m_VMPtr, 0, "Test7"); }
void TestFunc3() { FCLibHelper.fc_call(m_VMPtr, 0, "Test3"); }
void TestFunc5() { FCLibHelper.fc_call(m_VMPtr, 0, "Test5"); }
protected override void OnAfterLoadScriptData() { FCLibHelper.fc_register_func(m_VMPtr, "fc2csharp_set_vector3", fc2csharp_set_vector3); FCLibHelper.fc_register_func(m_VMPtr, "fc2csharp_set_vector4", fc2csharp_set_vector4); FCLibHelper.fc_register_func(m_VMPtr, "fc2csharp_set_string", fc2csharp_set_string); }
public static int GetComponent1_wrap(long L) { try { long nThisPtr = FCLibHelper.fc_get_inport_obj_ptr(L); Component obj = get_obj(nThisPtr); string arg0 = FCLibHelper.fc_get_string_a(L, 0); long nRetPtr = 0; switch (arg0) { case "SkinnedMeshRenderer": { SkinnedMeshRenderer ret_obj = obj.GetComponent <SkinnedMeshRenderer>(); nRetPtr = FCGetObj.PushObj <SkinnedMeshRenderer>(ret_obj); } break; case "MeshRenderer": { MeshRenderer ret_obj = obj.GetComponent <MeshRenderer>(); nRetPtr = FCGetObj.PushObj <MeshRenderer>(ret_obj); } break; case "Animation": { Animation ret_obj = obj.GetComponent <Animation>(); nRetPtr = FCGetObj.PushObj <Animation>(ret_obj); } break; case "Light": { Light ret_obj = obj.GetComponent <Light>(); nRetPtr = FCGetObj.PushObj <Light>(ret_obj); } break; case "Button": { Button ret_obj = obj.GetComponent <Button>(); nRetPtr = FCGetObj.PushObj <Button>(ret_obj); } break; case "Text": { Text ret_obj = obj.GetComponent <Text>(); nRetPtr = FCGetObj.PushObj <Text>(ret_obj); } break; default: break; } long ret_ptr = FCLibHelper.fc_get_return_ptr(L); FCLibHelper.fc_set_value_intptr(ret_ptr, nRetPtr); } catch (Exception e) { Debug.LogException(e); } return(0); }
public static int GetPropertyBlock_wrap(long L) { try { long nThisPtr = FCLibHelper.fc_get_inport_obj_ptr(L); UnityEngine.Renderer obj = get_obj(nThisPtr); UnityEngine.MaterialPropertyBlock arg0 = FCGetObj.GetObj <UnityEngine.MaterialPropertyBlock>(FCLibHelper.fc_get_wrap_objptr(L, 0)); obj.GetPropertyBlock(arg0); } catch (Exception e) { Debug.LogException(e); } return(0); }
public static int OnSubmit_wrap(long L) { try { long nThisPtr = FCLibHelper.fc_get_inport_obj_ptr(L); Button obj = get_obj(nThisPtr); UnityEngine.EventSystems.BaseEventData arg0 = FCGetObj.GetObj <UnityEngine.EventSystems.BaseEventData>(FCLibHelper.fc_get_intptr(L, 0)); obj.OnSubmit(arg0); } catch (Exception e) { Debug.LogException(e); } return(0); }
void TestFunc8() { FCLibHelper.fc_call(m_VMPtr, 0, "Test8"); }
public static int set_onClick_wrap(long L) { try { long nThisPtr = FCLibHelper.fc_get_inport_obj_ptr(L); Button ret = get_obj(nThisPtr); UnityEngine.UI.Button.ButtonClickedEvent arg0 = FCGetObj.GetObj <UnityEngine.UI.Button.ButtonClickedEvent>(FCLibHelper.fc_get_intptr(L, 0)); ret.onClick = arg0; } catch (Exception e) { Debug.LogException(e); } return(0); }
void TestFunc9() { FCLibHelper.fc_call(m_VMPtr, 0, "Test9"); }
public static int AddClip2_wrap(long L) { try { long nThisPtr = FCLibHelper.fc_get_inport_obj_ptr(L); Animation obj = get_obj(nThisPtr); UnityEngine.AnimationClip arg0 = FCGetObj.GetObj <UnityEngine.AnimationClip>(FCLibHelper.fc_get_intptr(L, 0)); string arg1 = FCLibHelper.fc_get_string_a(L, 1); int arg2 = FCLibHelper.fc_get_int(L, 2); int arg3 = FCLibHelper.fc_get_int(L, 3); obj.AddClip(arg0, arg1, arg2, arg3); } catch (Exception e) { Debug.LogException(e); } return(0); }
void TestFunc12() { FCLibHelper.fc_call(m_VMPtr, 0, "Test12"); }
public static int GetComponent1_wrap(long L) { try { long nThisPtr = FCLibHelper.fc_get_inport_obj_ptr(L); UnityEngine.GameObject obj = get_obj(nThisPtr); string arg0 = FCLibHelper.fc_get_string_a(L, 0); long nRetPtr = 0; switch (arg0) { case "SkinnedMeshRenderer": { SkinnedMeshRenderer ret_obj = obj.GetComponent <SkinnedMeshRenderer>(); nRetPtr = FCGetObj.PushObj <SkinnedMeshRenderer>(ret_obj); } break; case "Renderer": { Renderer ret_obj = obj.GetComponent <Renderer>(); nRetPtr = FCGetObj.PushObj <Renderer>(ret_obj); } break; case "MeshRenderer": { MeshRenderer ret_obj = obj.GetComponent <MeshRenderer>(); nRetPtr = FCGetObj.PushObj <MeshRenderer>(ret_obj); } break; case "Animation": { Animation ret_obj = obj.GetComponent <Animation>(); nRetPtr = FCGetObj.PushObj <Animation>(ret_obj); } break; case "Collider": { Collider ret_obj = obj.GetComponent <Collider>(); nRetPtr = FCGetObj.PushObj <Collider>(ret_obj); } break; case "BoxCollider": { BoxCollider ret_obj = obj.GetComponent <BoxCollider>(); nRetPtr = FCGetObj.PushObj <BoxCollider>(ret_obj); } break; case "BoxCollider2D": { BoxCollider2D ret_obj = obj.GetComponent <BoxCollider2D>(); nRetPtr = FCGetObj.PushObj <BoxCollider2D>(ret_obj); } break; case "MeshCollider": { MeshCollider ret_obj = obj.GetComponent <MeshCollider>(); nRetPtr = FCGetObj.PushObj <MeshCollider>(ret_obj); } break; case "SphereCollider": { SphereCollider ret_obj = obj.GetComponent <SphereCollider>(); nRetPtr = FCGetObj.PushObj <SphereCollider>(ret_obj); } break; case "Rigidbody": { Rigidbody ret_obj = obj.GetComponent <Rigidbody>(); nRetPtr = FCGetObj.PushObj <Rigidbody>(ret_obj); } break; case "Camera": { Camera ret_obj = obj.GetComponent <Camera>(); nRetPtr = FCGetObj.PushObj <Camera>(ret_obj); } break; case "AudioSource": { AudioSource ret_obj = obj.GetComponent <AudioSource>(); nRetPtr = FCGetObj.PushObj <AudioSource>(ret_obj); } break; case "Transform": { Transform ret_obj = obj.GetComponent <Transform>(); nRetPtr = FCGetObj.PushObj <Transform>(ret_obj); } break; case "Component": { Component ret_obj = obj.GetComponent <Component>(); nRetPtr = FCGetObj.PushObj <Component>(ret_obj); } break; case "ParticleSystem": { ParticleSystem ret_obj = obj.GetComponent <ParticleSystem>(); nRetPtr = FCGetObj.PushObj <ParticleSystem>(ret_obj); } break; case "Light": { Light ret_obj = obj.GetComponent <Light>(); nRetPtr = FCGetObj.PushObj <Light>(ret_obj); } break; case "Button": { Button ret_obj = obj.GetComponent <Button>(); nRetPtr = FCGetObj.PushObj <Button>(ret_obj); } break; case "Text": { Text ret_obj = obj.GetComponent <Text>(); nRetPtr = FCGetObj.PushObj <Text>(ret_obj); } break; default: break; } long ret_ptr = FCLibHelper.fc_get_return_ptr(L); FCLibHelper.fc_set_value_wrap_objptr(ret_ptr, nRetPtr); } catch (Exception e) { Debug.LogException(e); } return(0); }
// 功能:测试C#await功能 void TestAwait() { FCLibHelper.fc_call(m_VMPtr, 0, "TestAwait"); }
public static void PushCallParam(uint v) { FCLibHelper.fc_push_uint(v); }
void InvalidObjectScriptCall() { InitDll(); FCLibHelper.fc_call(m_VMPtr, m_nTestPtr, "Start"); }
public static void PushCallParam(float v) { FCLibHelper.fc_push_float(v); }
void OnGUI() { int nLeft = 200; int nTop = 200; nLeft = 200; nTop += 80; if (GUI.Button(new Rect(nLeft, nTop, 120.0f, 30.0f), "测试脚本接口")) { TestScriptFunc1(); } nLeft += 160; if (GUI.Button(new Rect(nLeft, nTop, 120.0f, 30.0f), "执行main函数")) { LoadScript(); } nLeft += 160; if (GUI.Button(new Rect(nLeft, nTop, 120.0f, 30.0f), "测试脚本对象")) { TestObjectScript(); } nLeft += 160; if (GUI.Button(new Rect(nLeft, nTop, 120.0f, 30.0f), "删除对象不置空")) { FCLibHelper.fc_relese_ins(m_VMPtr, m_nTestPtr); } nLeft += 160; if (GUI.Button(new Rect(nLeft, nTop, 120.0f, 30.0f), "删除对象并置空")) { FCLibHelper.fc_relese_ins(m_VMPtr, m_nTestPtr); m_nTestPtr = 0; } nLeft += 160; if (GUI.Button(new Rect(nLeft, nTop, 120.0f, 30.0f), "调用对象函数")) { InvalidObjectScriptCall(); } nLeft = 200; nTop += 80; if (GUI.Button(new Rect(nLeft, nTop, 120.0f, 30.0f), "清空LOG")) { m_ScriptLog.Clear(); } nLeft += 160; if (GUI.Button(new Rect(nLeft, nTop, 120.0f, 30.0f), "测试图形对象")) { TestGraphicCall(); } nLeft += 160; if (GUI.Button(new Rect(nLeft, nTop, 120.0f, 30.0f), "初始化DLL")) { if (!FCLibHelper.fc_is_init()) { m_VMPtr = FCLibHelper.fc_init(true); } } nLeft += 160; if (GUI.Button(new Rect(nLeft, nTop, 120.0f, 30.0f), "释放DLL")) { if (FCLibHelper.fc_is_init()) { FCLibHelper.fc_release(m_VMPtr); m_VMPtr = 0; } } nLeft += 160; if (GUI.Button(new Rect(nLeft, nTop, 120.0f, 30.0f), "测试await")) { TestAwait(); } nLeft = 200; nTop += 80; if (GUI.Button(new Rect(nLeft, nTop, 120.0f, 30.0f), "测试Test0")) { TestFunc0(); } nLeft += 160; if (GUI.Button(new Rect(nLeft, nTop, 120.0f, 30.0f), "测试Test1")) { TestFunc1(); } nLeft += 160; if (GUI.Button(new Rect(nLeft, nTop, 120.0f, 30.0f), "测试Test2")) { TestFunc2(); } nLeft += 160; if (GUI.Button(new Rect(nLeft, nTop, 120.0f, 30.0f), "测试Test3")) { TestFunc3(); } nLeft += 160; if (GUI.Button(new Rect(nLeft, nTop, 120.0f, 30.0f), "测试Test4")) { TestFunc4(); } nLeft += 160; if (GUI.Button(new Rect(nLeft, nTop, 120.0f, 30.0f), "测试Test5")) { TestFunc5(); } nLeft = 200; nTop += 80; if (GUI.Button(new Rect(nLeft, nTop, 120.0f, 30.0f), "测试Test6")) { TestFunc6(); } nLeft += 160; if (GUI.Button(new Rect(nLeft, nTop, 120.0f, 30.0f), "测试Test7")) { TestFunc7(); } nLeft += 160; if (GUI.Button(new Rect(nLeft, nTop, 120.0f, 30.0f), "测试Test8")) { TestFunc8(); } nLeft += 160; if (GUI.Button(new Rect(nLeft, nTop, 120.0f, 30.0f), "测试Test9")) { TestFunc9(); } nLeft += 160; if (GUI.Button(new Rect(nLeft, nTop, 120.0f, 30.0f), "测试Test10")) { TestFunc10(); } nLeft += 160; if (GUI.Button(new Rect(nLeft, nTop, 120.0f, 30.0f), "测试Test11")) { TestFunc11(); } nLeft = 200; nTop += 80; if (GUI.Button(new Rect(nLeft, nTop, 120.0f, 30.0f), "测试Test12")) { TestFunc12(); } float fy = 10.0f; float fWidth = Screen.width - fy - 10; List <string> aLog = ScriptLog; for (int i = 0; i < aLog.Count; ++i) { GUI.Label(new Rect(10.0f, fy, fWidth, 20.0f), aLog[i]); fy += 25; } }
public static void PushCallParam(ulong v) { FCLibHelper.fc_push_uint64(v); }
void LoadScript() { InitDll(); FCLibHelper.fc_call(m_VMPtr, 0, "main"); }
public static void PushCallParam(string v) { FCLibHelper.fc_push_string_a(v); }
public static int set_motionVectorGenerationMode_wrap(long L) { try { long nThisPtr = FCLibHelper.fc_get_inport_obj_ptr(L); UnityEngine.Renderer ret = get_obj(nThisPtr); UnityEngine.MotionVectorGenerationMode arg0 = (UnityEngine.MotionVectorGenerationMode)(FCLibHelper.fc_get_int(L, 0)); ret.motionVectorGenerationMode = arg0; } catch (Exception e) { Debug.LogException(e); } return(0); }