GetClosestReflectionProbes() public method

public GetClosestReflectionProbes ( List result ) : void
result List
return void
 static public int GetClosestReflectionProbes(IntPtr l)
 {
     try {
         UnityEngine.Renderer self = (UnityEngine.Renderer)checkSelf(l);
         System.Collections.Generic.List <UnityEngine.Rendering.ReflectionProbeBlendInfo> a1;
         checkType(l, 2, out a1);
         self.GetClosestReflectionProbes(a1);
         return(0);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static int QPYX_GetClosestReflectionProbes_YXQP(IntPtr L_YXQP)
 {
     try
     {
         ToLua.CheckArgsCount(L_YXQP, 2);
         UnityEngine.Renderer QPYX_obj_YXQP = (UnityEngine.Renderer)ToLua.CheckObject <UnityEngine.Renderer>(L_YXQP, 1);
         System.Collections.Generic.List <UnityEngine.Rendering.ReflectionProbeBlendInfo> QPYX_arg0_YXQP = (System.Collections.Generic.List <UnityEngine.Rendering.ReflectionProbeBlendInfo>)ToLua.CheckObject(L_YXQP, 2, typeof(System.Collections.Generic.List <UnityEngine.Rendering.ReflectionProbeBlendInfo>));
         QPYX_obj_YXQP.GetClosestReflectionProbes(QPYX_arg0_YXQP);
         return(0);
     }
     catch (Exception e_YXQP)                {
         return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP));
     }
 }
 static int GetClosestReflectionProbes(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UnityEngine.Renderer obj = (UnityEngine.Renderer)ToLua.CheckObject <UnityEngine.Renderer>(L, 1);
         System.Collections.Generic.List <UnityEngine.Rendering.ReflectionProbeBlendInfo> arg0 = (System.Collections.Generic.List <UnityEngine.Rendering.ReflectionProbeBlendInfo>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.List <UnityEngine.Rendering.ReflectionProbeBlendInfo>));
         obj.GetClosestReflectionProbes(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
示例#4
0
 public static int GetClosestReflectionProbes_wrap(long L)
 {
     try
     {
         long nThisPtr            = FCLibHelper.fc_get_inport_obj_ptr(L);
         UnityEngine.Renderer obj = get_obj(nThisPtr);
         List <UnityEngine.Rendering.ReflectionProbeBlendInfo> arg0 = null;
         arg0 = FCCustomParam.GetList(ref arg0, L, 0);
         obj.GetClosestReflectionProbes(arg0);
     }
     catch (Exception e)
     {
         Debug.LogException(e);
     }
     return(0);
 }
示例#5
0
	static int GetClosestReflectionProbes(IntPtr L)
	{
#if UNITY_EDITOR
        ToluaProfiler.AddCallRecord("UnityEngine.Renderer.GetClosestReflectionProbes");
#endif
		try
		{
			ToLua.CheckArgsCount(L, 2);
			UnityEngine.Renderer obj = (UnityEngine.Renderer)ToLua.CheckObject<UnityEngine.Renderer>(L, 1);
			System.Collections.Generic.List<UnityEngine.Rendering.ReflectionProbeBlendInfo> arg0 = (System.Collections.Generic.List<UnityEngine.Rendering.ReflectionProbeBlendInfo>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.List<UnityEngine.Rendering.ReflectionProbeBlendInfo>));
			obj.GetClosestReflectionProbes(arg0);
			return 0;
		}
		catch (Exception e)
		{
			return LuaDLL.toluaL_exception(L, e);
		}
	}
			internal void OnGUI(Renderer renderer, bool useMiniStyle)
			{
				if (this.m_UseLightProbes != null)
				{
					EditorGUI.BeginDisabledGroup(LightmapEditorSettings.IsLightmappedOrDynamicLightmappedForRendering(renderer));
					if (!useMiniStyle)
					{
						EditorGUILayout.PropertyField(this.m_UseLightProbes, this.m_UseLightProbesStyle, new GUILayoutOption[0]);
					}
					else
					{
						ModuleUI.GUIToggle(this.m_UseLightProbesStyle, this.m_UseLightProbes);
					}
					EditorGUI.EndDisabledGroup();
				}
				if (!useMiniStyle)
				{
					this.m_ReflectionProbeUsage.intValue = (int)((ReflectionProbeUsage)EditorGUILayout.EnumPopup(this.m_ReflectionProbeUsageStyle, (ReflectionProbeUsage)this.m_ReflectionProbeUsage.intValue, new GUILayoutOption[0]));
				}
				else
				{
					ModuleUI.GUIPopup(this.m_ReflectionProbeUsageStyle, this.m_ReflectionProbeUsage, Enum.GetNames(typeof(ReflectionProbeUsage)));
				}
				bool flag = this.m_ReflectionProbeUsage.intValue != 0;
				if ((this.m_UseLightProbes != null && this.m_UseLightProbes.boolValue) || flag)
				{
					EditorGUI.indentLevel++;
					if (!useMiniStyle)
					{
						EditorGUILayout.PropertyField(this.m_ProbeAnchor, this.m_ProbeAnchorStyle, new GUILayoutOption[0]);
					}
					else
					{
						ModuleUI.GUIObject(this.m_ProbeAnchorStyle, this.m_ProbeAnchor);
					}
					if (flag)
					{
						renderer.GetClosestReflectionProbes(this.m_BlendInfo);
						RendererEditorBase.Probes.ShowClosestReflectionProbes(this.m_BlendInfo);
					}
					EditorGUI.indentLevel--;
				}
			}
        static int _m_GetClosestReflectionProbes(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            UnityEngine.Renderer __cl_gen_to_be_invoked = (UnityEngine.Renderer)translator.FastGetCSObj(L, 1);


            try {
                {
                    System.Collections.Generic.List <UnityEngine.Rendering.ReflectionProbeBlendInfo> result = (System.Collections.Generic.List <UnityEngine.Rendering.ReflectionProbeBlendInfo>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List <UnityEngine.Rendering.ReflectionProbeBlendInfo>));

                    __cl_gen_to_be_invoked.GetClosestReflectionProbes(result);



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
 internal void OnGUI(UnityEngine.Object[] targets, Renderer renderer, bool useMiniStyle)
 {
   bool disabled1 = SceneView.IsUsingDeferredRenderingPath();
   bool flag1 = disabled1 && UnityEngine.Rendering.GraphicsSettings.GetShaderMode(BuiltinShaderType.DeferredReflections) != UnityEngine.Rendering.BuiltinShaderMode.Disabled;
   bool disabled2 = false;
   if (targets != null)
   {
     foreach (Renderer target in targets)
     {
       if (LightmapEditorSettings.IsLightmappedOrDynamicLightmappedForRendering(target))
       {
         disabled2 = true;
         break;
       }
     }
   }
   if (this.m_UseLightProbes != null)
   {
     EditorGUI.BeginDisabledGroup(disabled2);
     if (!useMiniStyle)
     {
       if (disabled2)
         EditorGUILayout.Toggle(this.m_UseLightProbesStyle, false, new GUILayoutOption[0]);
       else
         EditorGUILayout.PropertyField(this.m_UseLightProbes, this.m_UseLightProbesStyle, new GUILayoutOption[0]);
     }
     else if (disabled2)
       ModuleUI.GUIToggle(this.m_UseLightProbesStyle, false);
     else
       ModuleUI.GUIToggle(this.m_UseLightProbesStyle, this.m_UseLightProbes);
     EditorGUI.EndDisabledGroup();
   }
   EditorGUI.BeginDisabledGroup(disabled1);
   if (!useMiniStyle)
   {
     if (flag1)
       EditorGUILayout.EnumPopup(this.m_ReflectionProbeUsageStyle, (Enum) (ReflectionProbeUsage) (this.m_ReflectionProbeUsage.intValue == 0 ? 0 : 3), new GUILayoutOption[0]);
     else
       EditorGUILayout.Popup(this.m_ReflectionProbeUsage, this.m_ReflectionProbeUsageOptions, this.m_ReflectionProbeUsageStyle, new GUILayoutOption[0]);
   }
   else if (flag1)
     ModuleUI.GUIPopup(this.m_ReflectionProbeUsageStyle, 3, this.m_ReflectionProbeUsageNames);
   else
     ModuleUI.GUIPopup(this.m_ReflectionProbeUsageStyle, this.m_ReflectionProbeUsage, this.m_ReflectionProbeUsageNames);
   EditorGUI.EndDisabledGroup();
   bool flag2 = !this.m_ReflectionProbeUsage.hasMultipleDifferentValues && this.m_ReflectionProbeUsage.intValue != 0 || this.m_UseLightProbes != null && !this.m_UseLightProbes.hasMultipleDifferentValues && this.m_UseLightProbes.boolValue;
   if (flag2)
   {
     if (!useMiniStyle)
       EditorGUILayout.PropertyField(this.m_ProbeAnchor, this.m_ProbeAnchorStyle, new GUILayoutOption[0]);
     else
       ModuleUI.GUIObject(this.m_ProbeAnchorStyle, this.m_ProbeAnchor);
     if (!flag1)
     {
       renderer.GetClosestReflectionProbes(this.m_BlendInfo);
       RendererEditorBase.Probes.ShowClosestReflectionProbes(this.m_BlendInfo);
     }
   }
   bool flag3 = !this.m_ReceiveShadows.hasMultipleDifferentValues && this.m_ReceiveShadows.boolValue;
   if ((!disabled1 || !flag3) && (!flag1 || !flag2))
     return;
   EditorGUILayout.HelpBox(this.m_DeferredNote.text, MessageType.Info);
 }