コード例 #1
0
 static string getModeString(UnityEngine.Rendering.ReflectionProbeMode mode)
 {
     if (mode == UnityEngine.Rendering.ReflectionProbeMode.Baked)
     {
         return("baked");
     }
     if (mode == UnityEngine.Rendering.ReflectionProbeMode.Realtime)
     {
         return("realtime");
     }
     return("custom");
 }
コード例 #2
0
 static void ReflectionProbe_mode(JSVCall vc)
 {
     if (vc.bGet)
     {
         UnityEngine.ReflectionProbe _this = (UnityEngine.ReflectionProbe)vc.csObj;
         var result = _this.mode;
         JSApi.setEnum((int)JSApi.SetType.Rval, (int)result);
     }
     else
     {
         UnityEngine.Rendering.ReflectionProbeMode arg0 = (UnityEngine.Rendering.ReflectionProbeMode)JSApi.getEnum((int)JSApi.GetType.Arg);
         UnityEngine.ReflectionProbe _this = (UnityEngine.ReflectionProbe)vc.csObj;
         _this.mode = arg0;
     }
 }