예제 #1
0
        static object PerformMemberwiseClone(ref object o)
        {
            var ins = new UnityEngine.Experimental.Rendering.VisibleReflectionProbe();

            ins = (UnityEngine.Experimental.Rendering.VisibleReflectionProbe)o;
            return(ins);
        }
예제 #2
0
        static void WriteBackInstance(CSHotFix.Runtime.Enviorment.AppDomain __domain, StackObject *ptr_of_this_method, IList <object> __mStack, ref UnityEngine.Experimental.Rendering.VisibleReflectionProbe instance_of_this_method)
        {
            ptr_of_this_method = ILIntepreter.GetObjectAndResolveReference(ptr_of_this_method);
            switch (ptr_of_this_method->ObjectType)
            {
            case ObjectTypes.Object:
            {
                __mStack[ptr_of_this_method->Value] = instance_of_this_method;
            }
            break;

            case ObjectTypes.FieldReference:
            {
                var ___obj = __mStack[ptr_of_this_method->Value];
                if (___obj is ILTypeInstance)
                {
                    ((ILTypeInstance)___obj)[ptr_of_this_method->ValueLow] = instance_of_this_method;
                }
                else
                {
                    var t = __domain.GetType(___obj.GetType()) as CLRType;
                    t.SetFieldValue(ptr_of_this_method->ValueLow, ref ___obj, instance_of_this_method);
                }
            }
            break;

            case ObjectTypes.StaticFieldReference:
            {
                var t = __domain.GetType(ptr_of_this_method->Value);
                if (t is ILType)
                {
                    ((ILType)t).StaticInstance[ptr_of_this_method->ValueLow] = instance_of_this_method;
                }
                else
                {
                    ((CLRType)t).SetStaticFieldValue(ptr_of_this_method->ValueLow, instance_of_this_method);
                }
            }
            break;

            case ObjectTypes.ArrayReference:
            {
                var instance_of_arrayReference = __mStack[ptr_of_this_method->Value] as UnityEngine.Experimental.Rendering.VisibleReflectionProbe[];
                instance_of_arrayReference[ptr_of_this_method->ValueLow] = instance_of_this_method;
            }
            break;
            }
        }
예제 #3
0
 static void set_importance_5(ref object o, object v)
 {
     UnityEngine.Experimental.Rendering.VisibleReflectionProbe _o = (UnityEngine.Experimental.Rendering.VisibleReflectionProbe)o;
     _o.importance = (System.Int32)v;
 }
예제 #4
0
 static void set_boxProjection_6(ref object o, object v)
 {
     UnityEngine.Experimental.Rendering.VisibleReflectionProbe _o = (UnityEngine.Experimental.Rendering.VisibleReflectionProbe)o;
     _o.boxProjection = (System.Int32)v;
 }
예제 #5
0
 static void set_blendDistance_4(ref object o, object v)
 {
     UnityEngine.Experimental.Rendering.VisibleReflectionProbe _o = (UnityEngine.Experimental.Rendering.VisibleReflectionProbe)o;
     _o.blendDistance = (System.Single)v;
 }
예제 #6
0
 static void set_center_3(ref object o, object v)
 {
     UnityEngine.Experimental.Rendering.VisibleReflectionProbe _o = (UnityEngine.Experimental.Rendering.VisibleReflectionProbe)o;
     _o.center = (UnityEngine.Vector3)v;
 }
예제 #7
0
 static void set_hdr_2(ref object o, object v)
 {
     UnityEngine.Experimental.Rendering.VisibleReflectionProbe _o = (UnityEngine.Experimental.Rendering.VisibleReflectionProbe)o;
     _o.hdr = (UnityEngine.Vector4)v;
 }
예제 #8
0
 static void set_localToWorld_1(ref object o, object v)
 {
     UnityEngine.Experimental.Rendering.VisibleReflectionProbe _o = (UnityEngine.Experimental.Rendering.VisibleReflectionProbe)o;
     _o.localToWorld = (UnityEngine.Matrix4x4)v;
 }
예제 #9
0
 static void set_bounds_0(ref object o, object v)
 {
     UnityEngine.Experimental.Rendering.VisibleReflectionProbe _o = (UnityEngine.Experimental.Rendering.VisibleReflectionProbe)o;
     _o.bounds = (UnityEngine.Bounds)v;
 }