WuhuIslandTesting/Library/PackageCache/com.unity.render-pipelines.universal@8148.0.7-4/Editor/ShaderGUI/ForceReloadDrawer.cs
2025-01-07 02:06:59 +01:00

13 lines
352 B
C#

using SLZ.SLZEditorTools;
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
public class ForceReloadDrawer : MaterialPropertyDrawer
{
public override void OnGUI(Rect position, MaterialProperty prop, GUIContent label, MaterialEditor editor)
{
ShaderGUIUtils.ForceRebuild(editor);
}
}