Exemplo n.º 1
0
    public static float Axis(Rect pos, SerializedProperty prop, string label)
    {
        GUIEditorUtils.LookLikeControls(20);

        EditorGUI.BeginChangeCheck();
        float result = EditorGUI.FloatField(pos, label, prop.floatValue);

        if (EditorGUI.EndChangeCheck() == true)
        {
            prop.floatValue = result;
        }

        GUIEditorUtils.LookLikeInspector();

        return(result);
    }
Exemplo n.º 2
0
 private static void TransformDisplay(int Index, ref Transform T)
 {
     GUIEditorUtils.LookLikeInspector();
     T = (Transform)EditorGUILayout.ObjectField("Part #" + Index, T, typeof(Transform), true);
     GUIEditorUtils.LookLikeControls();
 }