9092858a58
I updated everything to the latest Unity Editor. Also realized I had the wrong shaders on my hairs, those are fixed and the hairs look MUCH better!
37 lines
928 B
C#
37 lines
928 B
C#
using UnityEditor;
|
|
using UnityEngine;
|
|
|
|
namespace Unity.VisualScripting
|
|
{
|
|
public class ScriptReferenceResolverSettings
|
|
{
|
|
private const string Title = "Script Reference Resolver";
|
|
private const string ButtonLabel = "Fix Missing Scripts";
|
|
|
|
public void OnGUI()
|
|
{
|
|
GUILayout.Space(5f);
|
|
|
|
GUILayout.Label(Title, EditorStyles.boldLabel);
|
|
|
|
GUILayout.Space(5f);
|
|
|
|
if (GUILayout.Button(ButtonLabel, Styles.defaultsButton))
|
|
{
|
|
ScriptReferenceResolver.Run(ScriptReferenceResolver.Mode.Dialog);
|
|
}
|
|
}
|
|
|
|
private static class Styles
|
|
{
|
|
static Styles()
|
|
{
|
|
defaultsButton = new GUIStyle("Button");
|
|
defaultsButton.padding = new RectOffset(10, 10, 4, 4);
|
|
}
|
|
|
|
public static readonly GUIStyle defaultsButton;
|
|
}
|
|
}
|
|
}
|