예제 #1
0
    public override void OnInspectorGUI()
    {
        SoftBody script = (SoftBody)target;

        if (GUILayout.Button("Link"))
        {
            script.Link();
        }
        if (GUILayout.Button("Bink"))
        {
            script.Bink();
        }

        EditorGUILayout.PropertyField(serializedObject.FindProperty("Stem"));
        EditorGUILayout.PropertyField(serializedObject.FindProperty("Set1"));
        EditorGUILayout.PropertyField(serializedObject.FindProperty("Set2"));
    }