• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# LuaMethod类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中LuaMethod的典型用法代码示例。如果您正苦于以下问题:C# LuaMethod类的具体用法?C# LuaMethod怎么用?C# LuaMethod使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



LuaMethod类属于命名空间,在下文中一共展示了LuaMethod类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: Register

    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("Lerp", Lerp),
            new LuaMethod("ClampIndex", ClampIndex),
            new LuaMethod("RepeatIndex", RepeatIndex),
            new LuaMethod("WrapAngle", WrapAngle),
            new LuaMethod("Wrap01", Wrap01),
            new LuaMethod("HexToDecimal", HexToDecimal),
            new LuaMethod("DecimalToHexChar", DecimalToHexChar),
            new LuaMethod("DecimalToHex24", DecimalToHex24),
            new LuaMethod("DecimalToHex32", DecimalToHex32),
            new LuaMethod("ColorToInt", ColorToInt),
            new LuaMethod("IntToColor", IntToColor),
            new LuaMethod("IntToBinary", IntToBinary),
            new LuaMethod("HexToColor", HexToColor),
            new LuaMethod("ConvertToTexCoords", ConvertToTexCoords),
            new LuaMethod("ConvertToPixels", ConvertToPixels),
            new LuaMethod("MakePixelPerfect", MakePixelPerfect),
            new LuaMethod("ConstrainRect", ConstrainRect),
            new LuaMethod("SpringDampen", SpringDampen),
            new LuaMethod("SpringLerp", SpringLerp),
            new LuaMethod("RotateTowards", RotateTowards),
            new LuaMethod("DistanceToRectangle", DistanceToRectangle),
            new LuaMethod("AdjustByDPI", AdjustByDPI),
            new LuaMethod("ScreenToPixels", ScreenToPixels),
            new LuaMethod("ScreenToParentPixels", ScreenToParentPixels),
            new LuaMethod("New", _CreateNGUIMath),
            new LuaMethod("GetClassType", GetClassType),
        };

        LuaScriptMgr.RegisterLib(L, "NGUIMath", regs);
    }
开发者ID:dafei2015,项目名称:hugular_cstolua,代码行数:34,代码来源:NGUIMathWrap.cs


示例2: Register

	public static void Register(IntPtr L)
	{
		LuaMethod[] regs = new LuaMethod[]
		{
			new LuaMethod("GetLocalCorners", GetLocalCorners),
			new LuaMethod("GetWorldCorners", GetWorldCorners),
			new LuaMethod("SetInsetAndSizeFromParentEdge", SetInsetAndSizeFromParentEdge),
			new LuaMethod("SetSizeWithCurrentAnchors", SetSizeWithCurrentAnchors),
			new LuaMethod("New", _CreateRectTransform),
			new LuaMethod("GetClassType", GetClassType),
			new LuaMethod("__eq", Lua_Eq),
		};

		LuaField[] fields = new LuaField[]
		{
			new LuaField("rect", get_rect, null),
			new LuaField("anchorMin", get_anchorMin, set_anchorMin),
			new LuaField("anchorMax", get_anchorMax, set_anchorMax),
			new LuaField("anchoredPosition3D", get_anchoredPosition3D, set_anchoredPosition3D),
			new LuaField("anchoredPosition", get_anchoredPosition, set_anchoredPosition),
			new LuaField("sizeDelta", get_sizeDelta, set_sizeDelta),
			new LuaField("pivot", get_pivot, set_pivot),
			new LuaField("offsetMin", get_offsetMin, set_offsetMin),
			new LuaField("offsetMax", get_offsetMax, set_offsetMax),
		};

		LuaScriptMgr.RegisterLib(L, "UnityEngine.RectTransform", typeof(RectTransform), regs, fields, typeof(Transform));
	}
开发者ID:chillblade,项目名称:LuaTetrisDemo,代码行数:28,代码来源:RectTransformWrap.cs


示例3: Register

    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("Action_GameObject", Action_GameObject),
            new LuaMethod("Action", Action),
            new LuaMethod("UnityEngine_Events_UnityAction", UnityEngine_Events_UnityAction),
            new LuaMethod("System_Reflection_MemberFilter", System_Reflection_MemberFilter),
            new LuaMethod("System_Reflection_TypeFilter", System_Reflection_TypeFilter),
            new LuaMethod("TestLuaDelegate_VoidDelegate", TestLuaDelegate_VoidDelegate),
            new LuaMethod("LuaBehaviours_LuaMethord", LuaBehaviours_LuaMethord),
            new LuaMethod("LuaBehaviours_LuaMethordBool", LuaBehaviours_LuaMethordBool),
            new LuaMethod("LuaBehaviours_LuaMethordCollision", LuaBehaviours_LuaMethordCollision),
            new LuaMethod("LuaBehaviours_LuaMethordCollision2D", LuaBehaviours_LuaMethordCollision2D),
            new LuaMethod("LuaBehaviours_LuaMethordGameObject", LuaBehaviours_LuaMethordGameObject),
            new LuaMethod("LuaBehaviours_LuaMethordCollider", LuaBehaviours_LuaMethordCollider),
            new LuaMethod("LuaBehaviours_LuaMethordCollider2D", LuaBehaviours_LuaMethordCollider2D),
            new LuaMethod("Camera_CameraCallback", Camera_CameraCallback),
            new LuaMethod("AudioClip_PCMReaderCallback", AudioClip_PCMReaderCallback),
            new LuaMethod("AudioClip_PCMSetPositionCallback", AudioClip_PCMSetPositionCallback),
            new LuaMethod("Application_LogCallback", Application_LogCallback),
            new LuaMethod("Clear", Clear),
            new LuaMethod("New", _CreateDelegateFactory),
            new LuaMethod("GetClassType", GetClassType),
        };

        LuaScriptMgr.RegisterLib(L, "DelegateFactory", regs);
    }
开发者ID:zaojiahua,项目名称:SuperAdventure,代码行数:28,代码来源:DelegateFactoryWrap.cs


示例4: Register

	public static void Register(IntPtr L)
	{
		LuaMethod[] regs = new LuaMethod[]
		{
			new LuaMethod("New", _CreateTime),
			new LuaMethod("GetClassType", GetClassType),
		};

		LuaField[] fields = new LuaField[]
		{
			new LuaField("time", get_time, null),
			new LuaField("timeSinceLevelLoad", get_timeSinceLevelLoad, null),
			new LuaField("deltaTime", get_deltaTime, null),
			new LuaField("fixedTime", get_fixedTime, null),
			new LuaField("unscaledTime", get_unscaledTime, null),
			new LuaField("unscaledDeltaTime", get_unscaledDeltaTime, null),
			new LuaField("fixedDeltaTime", get_fixedDeltaTime, set_fixedDeltaTime),
			new LuaField("maximumDeltaTime", get_maximumDeltaTime, set_maximumDeltaTime),
			new LuaField("smoothDeltaTime", get_smoothDeltaTime, null),
			new LuaField("timeScale", get_timeScale, set_timeScale),
			new LuaField("frameCount", get_frameCount, null),
			new LuaField("renderedFrameCount", get_renderedFrameCount, null),
			new LuaField("realtimeSinceStartup", get_realtimeSinceStartup, null),
			new LuaField("captureFramerate", get_captureFramerate, set_captureFramerate),
		};

		LuaScriptMgr.RegisterLib(L, "UnityEngine.Time", typeof(Time), regs, fields, typeof(object));
	}
开发者ID:chillblade,项目名称:LuaTetrisDemo,代码行数:28,代码来源:TimeWrap.cs


示例5: Register

    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("New", _CreateParticleRenderer),
            new LuaMethod("GetClassType", GetClassType),
            new LuaMethod("__eq", Lua_Eq),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("particleRenderMode", get_particleRenderMode, set_particleRenderMode),
            new LuaField("lengthScale", get_lengthScale, set_lengthScale),
            new LuaField("velocityScale", get_velocityScale, set_velocityScale),
            new LuaField("cameraVelocityScale", get_cameraVelocityScale, set_cameraVelocityScale),
            new LuaField("maxParticleSize", get_maxParticleSize, set_maxParticleSize),
            new LuaField("uvAnimationXTile", get_uvAnimationXTile, set_uvAnimationXTile),
            new LuaField("uvAnimationYTile", get_uvAnimationYTile, set_uvAnimationYTile),
            new LuaField("uvAnimationCycles", get_uvAnimationCycles, set_uvAnimationCycles),
            new LuaField("maxPartileSize", get_maxPartileSize, set_maxPartileSize),
            new LuaField("uvTiles", get_uvTiles, set_uvTiles),
        };

        LuaScriptMgr.RegisterLib(L, "UnityEngine.ParticleRenderer", typeof(ParticleRenderer), regs, fields, typeof(Renderer));
    }
开发者ID:amadabarney,项目名称:Bead,代码行数:25,代码来源:ParticleRendererWrap.cs


示例6: Register

	public static void Register(IntPtr L)
	{
		LuaMethod[] regs = new LuaMethod[]
		{
			new LuaMethod("GetLights", GetLights),
			new LuaMethod("New", _CreateLight),
			new LuaMethod("GetClassType", GetClassType),
			new LuaMethod("__eq", Lua_Eq),
		};

		LuaField[] fields = new LuaField[]
		{
			new LuaField("type", get_type, set_type),
			new LuaField("color", get_color, set_color),
			new LuaField("intensity", get_intensity, set_intensity),
			new LuaField("bounceIntensity", get_bounceIntensity, set_bounceIntensity),
			new LuaField("shadows", get_shadows, set_shadows),
			new LuaField("shadowStrength", get_shadowStrength, set_shadowStrength),
			new LuaField("shadowBias", get_shadowBias, set_shadowBias),
			new LuaField("shadowNormalBias", get_shadowNormalBias, set_shadowNormalBias),
			new LuaField("range", get_range, set_range),
			new LuaField("spotAngle", get_spotAngle, set_spotAngle),
			new LuaField("cookieSize", get_cookieSize, set_cookieSize),
			new LuaField("cookie", get_cookie, set_cookie),
			new LuaField("flare", get_flare, set_flare),
			new LuaField("renderMode", get_renderMode, set_renderMode),
			new LuaField("alreadyLightmapped", get_alreadyLightmapped, set_alreadyLightmapped),
			new LuaField("cullingMask", get_cullingMask, set_cullingMask),
		};

		LuaScriptMgr.RegisterLib(L, "UnityEngine.Light", typeof(Light), regs, fields, typeof(Behaviour));
	}
开发者ID:zhangf911,项目名称:ulua_debugger_demo,代码行数:32,代码来源:LightWrap.cs


示例7: Register

    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("Rebuild", Rebuild),
            new LuaMethod("OnPointerDown", OnPointerDown),
            new LuaMethod("OnDrag", OnDrag),
            new LuaMethod("OnMove", OnMove),
            new LuaMethod("FindSelectableOnLeft", FindSelectableOnLeft),
            new LuaMethod("FindSelectableOnRight", FindSelectableOnRight),
            new LuaMethod("FindSelectableOnUp", FindSelectableOnUp),
            new LuaMethod("FindSelectableOnDown", FindSelectableOnDown),
            new LuaMethod("OnInitializePotentialDrag", OnInitializePotentialDrag),
            new LuaMethod("SetDirection", SetDirection),
            new LuaMethod("New", _CreateUnityEngine_UI_Slider),
            new LuaMethod("GetClassType", GetClassType),
            new LuaMethod("__eq", Lua_Eq),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("fillRect", get_fillRect, set_fillRect),
            new LuaField("handleRect", get_handleRect, set_handleRect),
            new LuaField("direction", get_direction, set_direction),
            new LuaField("minValue", get_minValue, set_minValue),
            new LuaField("maxValue", get_maxValue, set_maxValue),
            new LuaField("wholeNumbers", get_wholeNumbers, set_wholeNumbers),
            new LuaField("value", get_value, set_value),
            new LuaField("normalizedValue", get_normalizedValue, set_normalizedValue),
            new LuaField("onValueChanged", get_onValueChanged, set_onValueChanged),
        };

        LuaScriptMgr.RegisterLib(L, "UnityEngine.UI.Slider", typeof(UnityEngine.UI.Slider), regs, fields, typeof(UnityEngine.UI.Selectable));
    }
开发者ID:dafei2015,项目名称:hugular_cstolua,代码行数:34,代码来源:UnityEngine_UI_SliderWrap.cs


示例8: Register

	public static void Register(IntPtr L)
	{
		LuaMethod[] regs = new LuaMethod[]
		{
			new LuaMethod("SimpleMove", SimpleMove),
			new LuaMethod("Move", Move),
			new LuaMethod("New", _CreateCharacterController),
			new LuaMethod("GetClassType", GetClassType),
			new LuaMethod("__eq", Lua_Eq),
		};

		LuaField[] fields = new LuaField[]
		{
			new LuaField("isGrounded", get_isGrounded, null),
			new LuaField("velocity", get_velocity, null),
			new LuaField("collisionFlags", get_collisionFlags, null),
			new LuaField("radius", get_radius, set_radius),
			new LuaField("height", get_height, set_height),
			new LuaField("center", get_center, set_center),
			new LuaField("slopeLimit", get_slopeLimit, set_slopeLimit),
			new LuaField("stepOffset", get_stepOffset, set_stepOffset),
			new LuaField("detectCollisions", get_detectCollisions, set_detectCollisions),
		};

		LuaScriptMgr.RegisterLib(L, "UnityEngine.CharacterController", typeof(CharacterController), regs, fields, typeof(Collider));
	}
开发者ID:chillblade,项目名称:LuaTetrisDemo,代码行数:26,代码来源:CharacterControllerWrap.cs


示例9: Register

    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("LoadAudioData", LoadAudioData),
            new LuaMethod("UnloadAudioData", UnloadAudioData),
            new LuaMethod("GetData", GetData),
            new LuaMethod("SetData", SetData),
            new LuaMethod("Create", Create),
            new LuaMethod("New", _CreateAudioClip),
            new LuaMethod("GetClassType", GetClassType),
            new LuaMethod("__eq", Lua_Eq),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("length", get_length, null),
            new LuaField("samples", get_samples, null),
            new LuaField("channels", get_channels, null),
            new LuaField("frequency", get_frequency, null),
            new LuaField("loadType", get_loadType, null),
            new LuaField("preloadAudioData", get_preloadAudioData, null),
            new LuaField("loadState", get_loadState, null),
            new LuaField("loadInBackground", get_loadInBackground, null),
        };

        LuaScriptMgr.RegisterLib(L, "UnityEngine.AudioClip", typeof(AudioClip), regs, fields, typeof(Object));
    }
开发者ID:zaojiahua,项目名称:SuperAdventure,代码行数:28,代码来源:AudioClipWrap.cs


示例10: Register

    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("Destroy", Destroy),
            new LuaMethod("DestroyImmediate", DestroyImmediate),
            new LuaMethod("Instantiate", Instantiate),
            new LuaMethod("InstantiateLocal", InstantiateLocal),
            new LuaMethod("InstantiateGlobal", InstantiateGlobal),
            new LuaMethod("SetParent", SetParent),
            new LuaMethod("GetType", GetType),
            new LuaMethod("Find", Find),
            new LuaMethod("FindWithTag", FindWithTag),
            new LuaMethod("GetComponentInChildren", GetComponentInChildren),
            new LuaMethod("GetComponent", GetComponent),
            new LuaMethod("GetComponents", GetComponents),
            new LuaMethod("GetComponentsInChildren", GetComponentsInChildren),
            new LuaMethod("GetAllChild", GetAllChild),
            new LuaMethod("ForeachChild", ForeachChild),
            new LuaMethod("Raycast", Raycast),
            new LuaMethod("RefreshShader", RefreshShader),
            new LuaMethod("GetAngle", GetAngle),
            new LuaMethod("GetUTF8String", GetUTF8String),
            new LuaMethod("GetBytes", GetBytes),
            new LuaMethod("GCCollect", GCCollect),
            new LuaMethod("New", _CreateLuaHelper),
            new LuaMethod("GetClassType", GetClassType),
        };

        LuaField[] fields = new LuaField[]
        {
        };

        LuaScriptMgr.RegisterLib(L, "LuaHelper", typeof(LuaHelper), regs, fields, typeof(object));
    }
开发者ID:dafei2015,项目名称:hugular_cstolua,代码行数:35,代码来源:LuaHelperWrap.cs


示例11: Register

    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("Equals", Equals),
            new LuaMethod("GetHashCode", GetHashCode),
            new LuaMethod("GetInstanceID", GetInstanceID),
            new LuaMethod("Instantiate", Instantiate),
            new LuaMethod("FindObjectsOfType", FindObjectsOfType),
            new LuaMethod("FindObjectOfType", FindObjectOfType),
            new LuaMethod("DontDestroyOnLoad", DontDestroyOnLoad),
            new LuaMethod("ToString", ToString),
            new LuaMethod("DestroyObject", DestroyObject),
            new LuaMethod("DestroyImmediate", DestroyImmediate),
            new LuaMethod("Destroy", Destroy),
            new LuaMethod("New", _CreateObject),
            new LuaMethod("GetClassType", GetClassType),
            new LuaMethod("__tostring", Lua_ToString),
            new LuaMethod("__eq", Lua_Eq),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("name", get_name, set_name),
            new LuaField("hideFlags", get_hideFlags, set_hideFlags),
        };

        LuaScriptMgr.RegisterLib(L, "UnityEngine.Object", typeof(Object), regs, fields, typeof(object));
    }
开发者ID:amadabarney,项目名称:Bead,代码行数:29,代码来源:ObjectWrap.cs


示例12: Register

    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("New", _CreateAnimationEvent),
            new LuaMethod("GetClassType", GetClassType),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("stringParameter", get_stringParameter, set_stringParameter),
            new LuaField("floatParameter", get_floatParameter, set_floatParameter),
            new LuaField("intParameter", get_intParameter, set_intParameter),
            new LuaField("objectReferenceParameter", get_objectReferenceParameter, set_objectReferenceParameter),
            new LuaField("functionName", get_functionName, set_functionName),
            new LuaField("time", get_time, set_time),
            new LuaField("messageOptions", get_messageOptions, set_messageOptions),
            new LuaField("isFiredByLegacy", get_isFiredByLegacy, null),
            new LuaField("isFiredByAnimator", get_isFiredByAnimator, null),
            new LuaField("animationState", get_animationState, null),
            new LuaField("animatorStateInfo", get_animatorStateInfo, null),
            new LuaField("animatorClipInfo", get_animatorClipInfo, null),
        };

        LuaScriptMgr.RegisterLib(L, "UnityEngine.AnimationEvent", typeof(AnimationEvent), regs, fields, typeof(object));
    }
开发者ID:dafei2015,项目名称:hugular_cstolua,代码行数:26,代码来源:AnimationEventWrap.cs


示例13: Register

    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("New", _CreateSimpleFramework_AppConst),
            new LuaMethod("GetClassType", GetClassType),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("DebugMode", get_DebugMode, set_DebugMode),
            new LuaField("UpdateMode", get_UpdateMode, set_UpdateMode),
            new LuaField("TimerInterval", get_TimerInterval, set_TimerInterval),
            new LuaField("GameFrameRate", get_GameFrameRate, set_GameFrameRate),
            new LuaField("UsePbc", get_UsePbc, set_UsePbc),
            new LuaField("UseLpeg", get_UseLpeg, set_UseLpeg),
            new LuaField("UsePbLua", get_UsePbLua, set_UsePbLua),
            new LuaField("UseCJson", get_UseCJson, set_UseCJson),
            new LuaField("LuaEncode", get_LuaEncode, set_LuaEncode),
            new LuaField("UserId", get_UserId, set_UserId),
            new LuaField("AppName", get_AppName, set_AppName),
            new LuaField("AppPrefix", get_AppPrefix, set_AppPrefix),
            new LuaField("ExtName", get_ExtName, set_ExtName),
            new LuaField("AssetDirname", get_AssetDirname, set_AssetDirname),
            new LuaField("WebUrl", get_WebUrl, set_WebUrl),
            new LuaField("SocketPort", get_SocketPort, set_SocketPort),
            new LuaField("SocketAddress", get_SocketAddress, set_SocketAddress),
        };

        LuaScriptMgr.RegisterLib(L, "SimpleFramework.AppConst", typeof(SimpleFramework.AppConst), regs, fields, typeof(object));
    }
开发者ID:fancybit,项目名称:VoxelPrototype,代码行数:31,代码来源:SimpleFramework_AppConstWrap.cs


示例14: Register

    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("GetHashCode", GetHashCode),
            new LuaMethod("Equals", Equals),
            new LuaMethod("New", _CreateBoneWeight),
            new LuaMethod("GetClassType", GetClassType),
            new LuaMethod("__eq", Lua_Eq),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("weight0", get_weight0, set_weight0),
            new LuaField("weight1", get_weight1, set_weight1),
            new LuaField("weight2", get_weight2, set_weight2),
            new LuaField("weight3", get_weight3, set_weight3),
            new LuaField("boneIndex0", get_boneIndex0, set_boneIndex0),
            new LuaField("boneIndex1", get_boneIndex1, set_boneIndex1),
            new LuaField("boneIndex2", get_boneIndex2, set_boneIndex2),
            new LuaField("boneIndex3", get_boneIndex3, set_boneIndex3),
        };

        LuaScriptMgr.RegisterLib(L, "UnityEngine.BoneWeight", typeof(BoneWeight), regs, fields, null);
    }
开发者ID:dafei2015,项目名称:hugular_cstolua,代码行数:25,代码来源:BoneWeightWrap.cs


示例15: Register

    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("OverlapPoint", OverlapPoint),
            new LuaMethod("IsTouching", IsTouching),
            new LuaMethod("IsTouchingLayers", IsTouchingLayers),
            new LuaMethod("New", _CreateCollider2D),
            new LuaMethod("GetClassType", GetClassType),
            new LuaMethod("__eq", Lua_Eq),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("isTrigger", get_isTrigger, set_isTrigger),
            new LuaField("usedByEffector", get_usedByEffector, set_usedByEffector),
            new LuaField("offset", get_offset, set_offset),
            new LuaField("attachedRigidbody", get_attachedRigidbody, null),
            new LuaField("shapeCount", get_shapeCount, null),
            new LuaField("bounds", get_bounds, null),
            new LuaField("sharedMaterial", get_sharedMaterial, set_sharedMaterial),
        };

        LuaScriptMgr.RegisterLib(L, "UnityEngine.Collider2D", typeof(Collider2D), regs, fields, typeof(Behaviour));
    }
开发者ID:dafei2015,项目名称:hugular_cstolua,代码行数:25,代码来源:Collider2DWrap.cs


示例16: Register

    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("DrawMesh", DrawMesh),
            new LuaMethod("DrawMeshNow", DrawMeshNow),
            new LuaMethod("DrawProcedural", DrawProcedural),
            new LuaMethod("DrawProceduralIndirect", DrawProceduralIndirect),
            new LuaMethod("DrawTexture", DrawTexture),
            new LuaMethod("ExecuteCommandBuffer", ExecuteCommandBuffer),
            new LuaMethod("Blit", Blit),
            new LuaMethod("BlitMultiTap", BlitMultiTap),
            new LuaMethod("SetRandomWriteTarget", SetRandomWriteTarget),
            new LuaMethod("ClearRandomWriteTargets", ClearRandomWriteTargets),
            new LuaMethod("SetRenderTarget", SetRenderTarget),
            new LuaMethod("New", _CreateGraphics),
            new LuaMethod("GetClassType", GetClassType),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("activeColorBuffer", get_activeColorBuffer, null),
            new LuaField("activeDepthBuffer", get_activeDepthBuffer, null),
        };

        LuaScriptMgr.RegisterLib(L, "UnityEngine.Graphics", typeof(Graphics), regs, fields, typeof(object));
    }
开发者ID:dafei2015,项目名称:hugular_cstolua,代码行数:27,代码来源:GraphicsWrap.cs


示例17: Register

    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("SetResolution", SetResolution),
            new LuaMethod("New", _CreateScreen),
            new LuaMethod("GetClassType", GetClassType),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("resolutions", get_resolutions, null),
            new LuaField("currentResolution", get_currentResolution, null),
            new LuaField("width", get_width, null),
            new LuaField("height", get_height, null),
            new LuaField("dpi", get_dpi, null),
            new LuaField("fullScreen", get_fullScreen, set_fullScreen),
            new LuaField("autorotateToPortrait", get_autorotateToPortrait, set_autorotateToPortrait),
            new LuaField("autorotateToPortraitUpsideDown", get_autorotateToPortraitUpsideDown, set_autorotateToPortraitUpsideDown),
            new LuaField("autorotateToLandscapeLeft", get_autorotateToLandscapeLeft, set_autorotateToLandscapeLeft),
            new LuaField("autorotateToLandscapeRight", get_autorotateToLandscapeRight, set_autorotateToLandscapeRight),
            new LuaField("orientation", get_orientation, set_orientation),
            new LuaField("sleepTimeout", get_sleepTimeout, set_sleepTimeout),
        };

        LuaScriptMgr.RegisterLib(L, "UnityEngine.Screen", typeof(Screen), regs, fields, typeof(object));
    }
开发者ID:chasing2moro,项目名称:U3D-Lua-Learning,代码行数:27,代码来源:ScreenWrap.cs


示例18: Register

	public static void Register(IntPtr L)
	{
		LuaMethod[] regs = new LuaMethod[]
		{
			new LuaMethod("CreateFromMemory", CreateFromMemory),
			new LuaMethod("CreateFromMemoryImmediate", CreateFromMemoryImmediate),
			new LuaMethod("CreateFromFile", CreateFromFile),
			new LuaMethod("Contains", Contains),
			new LuaMethod("LoadAsset", LoadAsset),
			new LuaMethod("LoadAssetAsync", LoadAssetAsync),
			new LuaMethod("LoadAssetWithSubAssets", LoadAssetWithSubAssets),
			new LuaMethod("LoadAssetWithSubAssetsAsync", LoadAssetWithSubAssetsAsync),
			new LuaMethod("LoadAllAssets", LoadAllAssets),
			new LuaMethod("LoadAllAssetsAsync", LoadAllAssetsAsync),
			new LuaMethod("Unload", Unload),
			new LuaMethod("GetAllAssetNames", GetAllAssetNames),
			new LuaMethod("GetAllScenePaths", GetAllScenePaths),
			new LuaMethod("New", _CreateAssetBundle),
			new LuaMethod("GetClassType", GetClassType),
			new LuaMethod("__eq", Lua_Eq),
		};

		LuaField[] fields = new LuaField[]
		{
			new LuaField("mainAsset", get_mainAsset, null),
		};

		LuaScriptMgr.RegisterLib(L, "UnityEngine.AssetBundle", typeof(AssetBundle), regs, fields, typeof(Object));
	}
开发者ID:zhangf911,项目名称:ulua_debugger_demo,代码行数:29,代码来源:AssetBundleWrap.cs


示例19: Register

    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("Dispose", Dispose),
            new LuaMethod("Release", Release),
            new LuaMethod("Clear", Clear),
            new LuaMethod("DrawMesh", DrawMesh),
            new LuaMethod("DrawRenderer", DrawRenderer),
            new LuaMethod("SetRenderTarget", SetRenderTarget),
            new LuaMethod("Blit", Blit),
            new LuaMethod("GetTemporaryRT", GetTemporaryRT),
            new LuaMethod("ReleaseTemporaryRT", ReleaseTemporaryRT),
            new LuaMethod("ClearRenderTarget", ClearRenderTarget),
            new LuaMethod("SetGlobalFloat", SetGlobalFloat),
            new LuaMethod("SetGlobalVector", SetGlobalVector),
            new LuaMethod("SetGlobalColor", SetGlobalColor),
            new LuaMethod("SetGlobalMatrix", SetGlobalMatrix),
            new LuaMethod("SetGlobalTexture", SetGlobalTexture),
            new LuaMethod("New", _CreateUnityEngine_Rendering_CommandBuffer),
            new LuaMethod("GetClassType", GetClassType),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("name", get_name, set_name),
            new LuaField("sizeInBytes", get_sizeInBytes, null),
        };

        LuaScriptMgr.RegisterLib(L, "UnityEngine.Rendering.CommandBuffer", typeof(UnityEngine.Rendering.CommandBuffer), regs, fields, typeof(object));
    }
开发者ID:dafei2015,项目名称:hugular_cstolua,代码行数:31,代码来源:UnityEngine_Rendering_CommandBufferWrap.cs


示例20: Register

    public static void Register(IntPtr L)
    {
        LuaMethod[] regs = new LuaMethod[]
        {
            new LuaMethod("GetComponent", GetComponent),
            new LuaMethod("GetComponentInChildren", GetComponentInChildren),
            new LuaMethod("GetComponentsInChildren", GetComponentsInChildren),
            new LuaMethod("GetComponentInParent", GetComponentInParent),
            new LuaMethod("GetComponentsInParent", GetComponentsInParent),
            new LuaMethod("GetComponents", GetComponents),
            new LuaMethod("CompareTag", CompareTag),
            new LuaMethod("SendMessageUpwards", SendMessageUpwards),
            new LuaMethod("SendMessage", SendMessage),
            new LuaMethod("BroadcastMessage", BroadcastMessage),
            new LuaMethod("New", _CreateComponent),
            new LuaMethod("GetClassType", GetClassType),
            new LuaMethod("__eq", Lua_Eq),
            new LuaMethod("unbind", Lua_UnBind),
        };

        LuaField[] fields = new LuaField[]
        {
            new LuaField("transform", get_transform, null),
            new LuaField("gameObject", get_gameObject, null),
            new LuaField("tag", get_tag, set_tag),
            new LuaField("isNil", get_isNil, null),
        };

        LuaScriptMgr.RegisterLib(L, "UnityEngine.Component", typeof(Component), regs, fields, typeof(Object));
    }
开发者ID:LazyPlanet,项目名称:UClient,代码行数:30,代码来源:ComponentWrap.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# LuaNativeFunction类代码示例发布时间:2022-05-24
下一篇:
C# LuaLBuffer类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap