static int __CreateInstance(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { if (LuaAPI.lua_gettop(L) == 1) { UnityEngine.SpriteRenderer __cl_gen_ret = new UnityEngine.SpriteRenderer(); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SpriteRenderer constructor!")); }
public override void ReadFrom(object obj) { base.ReadFrom(obj); if (obj == null) { return; } UnityEngine.SpriteRenderer o = (UnityEngine.SpriteRenderer)obj; sprite = o.sprite.GetMappedInstanceID(); drawMode = (uint)o.drawMode; size = o.size; adaptiveModeThreshold = o.adaptiveModeThreshold; tileMode = (uint)o.tileMode; color = o.color; flipX = o.flipX; flipY = o.flipY; }
static StackObject *set_flipY_17(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Boolean @value = ptr_of_this_method->Value == 1; ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.SpriteRenderer instance_of_this_method = (UnityEngine.SpriteRenderer) typeof(UnityEngine.SpriteRenderer).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.flipY = value; return(__ret); }
static StackObject *set_adaptiveModeThreshold_7(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Single @value = *(float *)&ptr_of_this_method->Value; ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.SpriteRenderer instance_of_this_method = (UnityEngine.SpriteRenderer) typeof(UnityEngine.SpriteRenderer).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.adaptiveModeThreshold = value; return(__ret); }
static StackObject *set_sprite_0(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.Sprite @value = (UnityEngine.Sprite) typeof(UnityEngine.Sprite).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.SpriteRenderer instance_of_this_method = (UnityEngine.SpriteRenderer) typeof(UnityEngine.SpriteRenderer).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.sprite = value; return(__ret); }
public override object WriteTo(object obj, System.Collections.Generic.Dictionary <long, UnityEngine.Object> objects) { obj = base.WriteTo(obj, objects); if (obj == null) { return(null); } UnityEngine.SpriteRenderer o = (UnityEngine.SpriteRenderer)obj; o.sprite = (UnityEngine.Sprite)objects.Get(sprite); o.drawMode = (UnityEngine.SpriteDrawMode)drawMode; o.size = size; o.adaptiveModeThreshold = adaptiveModeThreshold; o.tileMode = (UnityEngine.SpriteTileMode)tileMode; o.color = color; o.flipX = flipX; o.flipY = flipY; return(o); }
public static TARGET colorTransition(this TARGET target, UnityEngine.Color value, float duration, LeanEase ease = LeanEase.Smooth) { Method.LeanSpriteRendererColor.Register(target, value, duration, ease); return(target); }