mirror of
https://github.com/imperialsushi/gutterball-3.git
synced 2025-06-15 05:07:42 +00:00
New Version 1.6
New 125 balls & powerups. Improved graphics.
This commit is contained in:
parent
b35433ae45
commit
71779ef7ac
9413 changed files with 193360 additions and 264803 deletions
|
@ -0,0 +1,48 @@
|
|||
|
||||
@script ExecuteInEditMode()
|
||||
|
||||
@CustomEditor (EdgeDetectEffectNormals)
|
||||
|
||||
class EdgeDetectEffectNormalsEditor extends Editor
|
||||
{
|
||||
var serObj : SerializedObject;
|
||||
|
||||
var mode : SerializedProperty;
|
||||
var sensitivityDepth : SerializedProperty;
|
||||
var sensitivityNormals : SerializedProperty;
|
||||
|
||||
var edgesOnly : SerializedProperty;
|
||||
var edgesOnlyBgColor : SerializedProperty;
|
||||
|
||||
|
||||
function OnEnable () {
|
||||
serObj = new SerializedObject (target);
|
||||
|
||||
mode = serObj.FindProperty("mode");
|
||||
|
||||
sensitivityDepth = serObj.FindProperty("sensitivityDepth");
|
||||
sensitivityNormals = serObj.FindProperty("sensitivityNormals");
|
||||
|
||||
edgesOnly = serObj.FindProperty("edgesOnly");
|
||||
edgesOnlyBgColor = serObj.FindProperty("edgesOnlyBgColor");
|
||||
}
|
||||
|
||||
function OnInspectorGUI ()
|
||||
{
|
||||
serObj.Update ();
|
||||
|
||||
EditorGUILayout.PropertyField (mode, new GUIContent("Mode"));
|
||||
|
||||
GUILayout.Label ("Edge sensitivity");
|
||||
EditorGUILayout.PropertyField (sensitivityDepth, new GUIContent("Depth"));
|
||||
EditorGUILayout.PropertyField (sensitivityNormals, new GUIContent("Normals"));
|
||||
|
||||
EditorGUILayout.Separator ();
|
||||
|
||||
GUILayout.Label ("Background options");
|
||||
edgesOnly.floatValue = EditorGUILayout.Slider ("Edges only", edgesOnly.floatValue, 0.0, 1.0);
|
||||
EditorGUILayout.PropertyField (edgesOnlyBgColor, new GUIContent ("Background"));
|
||||
|
||||
serObj.ApplyModifiedProperties();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue