Files
CartoonRPG/Assets/StixGames/GrassShader/Editor/LayerFieldAttributeEditor.cs
Caleb Sandford deQuincey 02c4b5ab66 Adding in new packages
2025-06-05 22:59:18 +01:00

15 lines
441 B
C#

using StixGames.NatureCore.Utility;
using UnityEditor;
using UnityEngine;
namespace StixGames.GrassShader
{
[CustomPropertyDrawer(typeof(LayerFieldAttribute))]
class LayerFieldAttributeEditor : PropertyDrawer
{
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
{
property.intValue = EditorGUI.LayerField(position, label, property.intValue);
}
}
}