Initial commit

This commit is contained in:
msk
2022-01-22 20:13:49 -08:00
parent f9d23e5bcf
commit 687473573d
878 changed files with 70957 additions and 0 deletions
@@ -0,0 +1,24 @@
// Alloy Physical Shader Framework
// Copyright 2013-2017 RUST LLC.
// http://www.alloy.rustltd.com/
using UnityEditor;
using UnityEngine;
namespace Alloy {
[CustomPropertyDrawer(typeof(EnumFlagsAttribute))]
public class ChannelDrawer : PropertyDrawer {
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) {
EditorGUI.BeginProperty(position, label, property);
EditorGUI.BeginChangeCheck();
int index = EditorGUI.MaskField(position, label, property.intValue, property.enumDisplayNames);
if (EditorGUI.EndChangeCheck()) {
property.intValue = index;
}
EditorGUI.EndProperty();
}
}
}