当前位置: 首页>>代码示例>>C#>>正文


C# LuaState.EndPreLoad方法代码示例

本文整理汇总了C#中LuaState.EndPreLoad方法的典型用法代码示例。如果您正苦于以下问题:C# LuaState.EndPreLoad方法的具体用法?C# LuaState.EndPreLoad怎么用?C# LuaState.EndPreLoad使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在LuaState的用法示例。


在下文中一共展示了LuaState.EndPreLoad方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Bind


//.........这里部分代码省略.........
     UnityEngine_AnimationBlendModeWrap.Register(L);
     UnityEngine_QueueModeWrap.Register(L);
     UnityEngine_PlayModeWrap.Register(L);
     UnityEngine_WrapModeWrap.Register(L);
     UnityEngine_QualitySettingsWrap.Register(L);
     UnityEngine_RenderSettingsWrap.Register(L);
     L.BeginModule("UI");
     UnityEngine_UI_ButtonWrap.Register(L);
     UnityEngine_UI_TextWrap.Register(L);
     UnityEngine_UI_MaskableGraphicWrap.Register(L);
     UnityEngine_UI_GraphicWrap.Register(L);
     UnityEngine_UI_ImageWrap.Register(L);
     UnityEngine_UI_ToggleGroupWrap.Register(L);
     UnityEngine_UI_ToggleWrap.Register(L);
     UnityEngine_UI_ScrollRectWrap.Register(L);
     UnityEngine_UI_InputFieldWrap.Register(L);
     UnityEngine_UI_DropdownWrap.Register(L);
     UnityEngine_UI_SliderWrap.Register(L);
     UnityEngine_UI_SelectableWrap.Register(L);
     L.BeginModule("Button");
     UnityEngine_UI_Button_ButtonClickedEventWrap.Register(L);
     L.EndModule();
     L.BeginModule("Toggle");
     UnityEngine_UI_Toggle_ToggleEventWrap.Register(L);
     L.EndModule();
     L.BeginModule("Dropdown");
     UnityEngine_UI_Dropdown_DropdownEventWrap.Register(L);
     UnityEngine_UI_Dropdown_OptionDataWrap.Register(L);
     L.EndModule();
     L.BeginModule("Slider");
     UnityEngine_UI_Slider_SliderEventWrap.Register(L);
     L.EndModule();
     L.BeginModule("InputField");
     L.RegFunction("OnValidateInput", UnityEngine_UI_InputField_OnValidateInput);
     L.EndModule();
     L.EndModule();
     L.BeginModule("Events");
     UnityEngine_Events_UnityEventBaseWrap.Register(L);
     UnityEngine_Events_UnityEventWrap.Register(L);
     UnityEngine_Events_UnityEvent_boolWrap.Register(L);
     UnityEngine_Events_UnityEvent_intWrap.Register(L);
     UnityEngine_Events_UnityEvent_floatWrap.Register(L);
     L.RegFunction("UnityAction", UnityEngine_Events_UnityAction);
     L.RegFunction("UnityAction_bool", UnityEngine_Events_UnityAction_bool);
     L.RegFunction("UnityAction_int", UnityEngine_Events_UnityAction_int);
     L.RegFunction("UnityAction_float", UnityEngine_Events_UnityAction_float);
     L.EndModule();
     L.BeginModule("EventSystems");
     UnityEngine_EventSystems_UIBehaviourWrap.Register(L);
     UnityEngine_EventSystems_PointerEventDataWrap.Register(L);
     UnityEngine_EventSystems_BaseEventDataWrap.Register(L);
     UnityEngine_EventSystems_AbstractEventDataWrap.Register(L);
     L.EndModule();
     L.BeginModule("Experimental");
     L.BeginModule("Director");
     UnityEngine_Experimental_Director_DirectorPlayerWrap.Register(L);
     L.EndModule();
     L.EndModule();
     L.BeginModule("Camera");
     L.RegFunction("CameraCallback", UnityEngine_Camera_CameraCallback);
     L.EndModule();
     L.BeginModule("Application");
     L.RegFunction("AdvertisingIdentifierCallback", UnityEngine_Application_AdvertisingIdentifierCallback);
     L.RegFunction("LogCallback", UnityEngine_Application_LogCallback);
     L.EndModule();
     L.BeginModule("AudioClip");
     L.RegFunction("PCMReaderCallback", UnityEngine_AudioClip_PCMReaderCallback);
     L.RegFunction("PCMSetPositionCallback", UnityEngine_AudioClip_PCMSetPositionCallback);
     L.EndModule();
     L.EndModule();
     L.BeginModule("System");
     L.RegFunction("Action", System_Action);
     L.RegFunction("Predicate_int", System_Predicate_int);
     L.RegFunction("Action_int", System_Action_int);
     L.RegFunction("Comparison_int", System_Comparison_int);
     L.RegFunction("Comparison_UnityEngine_Transform", System_Comparison_UnityEngine_Transform);
     L.EndModule();
     L.BeginModule("UIGrid");
     L.RegFunction("OnReposition", UIGrid_OnReposition);
     L.EndModule();
     L.EndModule();
     L.BeginPreLoad();
     L.AddPreLoad("UnityEngine.MeshRenderer", LuaOpen_UnityEngine_MeshRenderer, typeof(UnityEngine.MeshRenderer));
     L.AddPreLoad("UnityEngine.ParticleEmitter", LuaOpen_UnityEngine_ParticleEmitter, typeof(UnityEngine.ParticleEmitter));
     L.AddPreLoad("UnityEngine.ParticleRenderer", LuaOpen_UnityEngine_ParticleRenderer, typeof(UnityEngine.ParticleRenderer));
     L.AddPreLoad("UnityEngine.ParticleAnimator", LuaOpen_UnityEngine_ParticleAnimator, typeof(UnityEngine.ParticleAnimator));
     L.AddPreLoad("UnityEngine.BoxCollider", LuaOpen_UnityEngine_BoxCollider, typeof(UnityEngine.BoxCollider));
     L.AddPreLoad("UnityEngine.MeshCollider", LuaOpen_UnityEngine_MeshCollider, typeof(UnityEngine.MeshCollider));
     L.AddPreLoad("UnityEngine.SphereCollider", LuaOpen_UnityEngine_SphereCollider, typeof(UnityEngine.SphereCollider));
     L.AddPreLoad("UnityEngine.CharacterController", LuaOpen_UnityEngine_CharacterController, typeof(UnityEngine.CharacterController));
     L.AddPreLoad("UnityEngine.CapsuleCollider", LuaOpen_UnityEngine_CapsuleCollider, typeof(UnityEngine.CapsuleCollider));
     L.AddPreLoad("UnityEngine.Animation", LuaOpen_UnityEngine_Animation, typeof(UnityEngine.Animation));
     L.AddPreLoad("UnityEngine.AnimationClip", LuaOpen_UnityEngine_AnimationClip, typeof(UnityEngine.AnimationClip));
     L.AddPreLoad("UnityEngine.AnimationState", LuaOpen_UnityEngine_AnimationState, typeof(UnityEngine.AnimationState));
     L.AddPreLoad("UnityEngine.BlendWeights", LuaOpen_UnityEngine_BlendWeights, typeof(UnityEngine.BlendWeights));
     L.AddPreLoad("UnityEngine.RenderTexture", LuaOpen_UnityEngine_RenderTexture, typeof(UnityEngine.RenderTexture));
     L.AddPreLoad("UnityEngine.Rigidbody", LuaOpen_UnityEngine_Rigidbody, typeof(UnityEngine.Rigidbody));
     L.EndPreLoad();
     Debugger.Log("Register lua type cost time: {0}", Time.realtimeSinceStartup - t);
 }
开发者ID:yuisunn,项目名称:UnityCrazy,代码行数:101,代码来源:LuaBinder.cs

示例2: Bind

 public static void Bind(LuaState L)
 {
     float t = Time.realtimeSinceStartup;
     L.BeginModule(null);
     DebuggerWrap.Register(L);
     ViewWrap.Register(L);
     BaseWrap.Register(L);
     ManagerWrap.Register(L);
     L.BeginModule("UnityEngine");
     UnityEngine_ComponentWrap.Register(L);
     UnityEngine_BehaviourWrap.Register(L);
     UnityEngine_MonoBehaviourWrap.Register(L);
     UnityEngine_GameObjectWrap.Register(L);
     UnityEngine_TransformWrap.Register(L);
     UnityEngine_CanvasWrap.Register(L);
     UnityEngine_TrackedReferenceWrap.Register(L);
     UnityEngine_ApplicationWrap.Register(L);
     UnityEngine_PhysicsWrap.Register(L);
     UnityEngine_ColliderWrap.Register(L);
     UnityEngine_TimeWrap.Register(L);
     UnityEngine_TextureWrap.Register(L);
     UnityEngine_Texture2DWrap.Register(L);
     UnityEngine_ShaderWrap.Register(L);
     UnityEngine_MaterialWrap.Register(L);
     UnityEngine_RendererWrap.Register(L);
     UnityEngine_WWWWrap.Register(L);
     UnityEngine_ScreenWrap.Register(L);
     UnityEngine_CameraWrap.Register(L);
     UnityEngine_CameraClearFlagsWrap.Register(L);
     UnityEngine_AudioClipWrap.Register(L);
     UnityEngine_AudioSourceWrap.Register(L);
     UnityEngine_AssetBundleWrap.Register(L);
     UnityEngine_ParticleSystemWrap.Register(L);
     UnityEngine_AsyncOperationWrap.Register(L);
     UnityEngine_LightWrap.Register(L);
     UnityEngine_LightTypeWrap.Register(L);
     UnityEngine_SleepTimeoutWrap.Register(L);
     UnityEngine_AnimatorWrap.Register(L);
     UnityEngine_InputWrap.Register(L);
     UnityEngine_KeyCodeWrap.Register(L);
     UnityEngine_SkinnedMeshRendererWrap.Register(L);
     UnityEngine_SpaceWrap.Register(L);
     UnityEngine_AnimationBlendModeWrap.Register(L);
     UnityEngine_QueueModeWrap.Register(L);
     UnityEngine_PlayModeWrap.Register(L);
     UnityEngine_WrapModeWrap.Register(L);
     UnityEngine_QualitySettingsWrap.Register(L);
     UnityEngine_RenderSettingsWrap.Register(L);
     UnityEngine_RectTransformWrap.Register(L);
     L.BeginModule("UI");
     UnityEngine_UI_CanvasScalerWrap.Register(L);
     UnityEngine_UI_TextWrap.Register(L);
     L.EndModule();
     L.BeginModule("Experimental");
     L.BeginModule("Director");
     UnityEngine_Experimental_Director_DirectorPlayerWrap.Register(L);
     L.EndModule();
     L.EndModule();
     L.BeginModule("Events");
     L.RegFunction("UnityAction", UnityEngine_Events_UnityAction);
     L.EndModule();
     L.EndModule();
     L.BeginModule("LuaFramework");
     LuaFramework_UtilWrap.Register(L);
     LuaFramework_AppConstWrap.Register(L);
     LuaFramework_LuaHelperWrap.Register(L);
     LuaFramework_ByteBufferWrap.Register(L);
     LuaFramework_LuaBehaviourWrap.Register(L);
     LuaFramework_GameManagerWrap.Register(L);
     LuaFramework_LuaManagerWrap.Register(L);
     LuaFramework_PanelManagerWrap.Register(L);
     LuaFramework_SoundManagerWrap.Register(L);
     LuaFramework_TimerManagerWrap.Register(L);
     LuaFramework_ThreadManagerWrap.Register(L);
     LuaFramework_NetworkManagerWrap.Register(L);
     LuaFramework_ResourceManagerWrap.Register(L);
     L.EndModule();
     L.BeginModule("System");
     L.RegFunction("Action", System_Action);
     L.RegFunction("Action_NotiData", System_Action_NotiData);
     L.RegFunction("Action_UnityEngine_Objects", System_Action_UnityEngine_Objects);
     L.EndModule();
     L.EndModule();
     L.BeginPreLoad();
     L.AddPreLoad("UnityEngine.MeshRenderer", LuaOpen_UnityEngine_MeshRenderer, typeof(UnityEngine.MeshRenderer));
     L.AddPreLoad("UnityEngine.ParticleEmitter", LuaOpen_UnityEngine_ParticleEmitter, typeof(UnityEngine.ParticleEmitter));
     L.AddPreLoad("UnityEngine.ParticleRenderer", LuaOpen_UnityEngine_ParticleRenderer, typeof(UnityEngine.ParticleRenderer));
     L.AddPreLoad("UnityEngine.ParticleAnimator", LuaOpen_UnityEngine_ParticleAnimator, typeof(UnityEngine.ParticleAnimator));
     L.AddPreLoad("UnityEngine.BoxCollider", LuaOpen_UnityEngine_BoxCollider, typeof(UnityEngine.BoxCollider));
     L.AddPreLoad("UnityEngine.MeshCollider", LuaOpen_UnityEngine_MeshCollider, typeof(UnityEngine.MeshCollider));
     L.AddPreLoad("UnityEngine.SphereCollider", LuaOpen_UnityEngine_SphereCollider, typeof(UnityEngine.SphereCollider));
     L.AddPreLoad("UnityEngine.CharacterController", LuaOpen_UnityEngine_CharacterController, typeof(UnityEngine.CharacterController));
     L.AddPreLoad("UnityEngine.CapsuleCollider", LuaOpen_UnityEngine_CapsuleCollider, typeof(UnityEngine.CapsuleCollider));
     L.AddPreLoad("UnityEngine.Animation", LuaOpen_UnityEngine_Animation, typeof(UnityEngine.Animation));
     L.AddPreLoad("UnityEngine.AnimationClip", LuaOpen_UnityEngine_AnimationClip, typeof(UnityEngine.AnimationClip));
     L.AddPreLoad("UnityEngine.AnimationState", LuaOpen_UnityEngine_AnimationState, typeof(UnityEngine.AnimationState));
     L.AddPreLoad("UnityEngine.BlendWeights", LuaOpen_UnityEngine_BlendWeights, typeof(UnityEngine.BlendWeights));
     L.AddPreLoad("UnityEngine.RenderTexture", LuaOpen_UnityEngine_RenderTexture, typeof(UnityEngine.RenderTexture));
     L.AddPreLoad("UnityEngine.Rigidbody", LuaOpen_UnityEngine_Rigidbody, typeof(UnityEngine.Rigidbody));
     L.EndPreLoad();
//.........这里部分代码省略.........
开发者ID:youxibuhaowana,项目名称:01ulua,代码行数:101,代码来源:LuaBinder.cs


注:本文中的LuaState.EndPreLoad方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。