AssetBundleGraph.Modifiers.PhysicsMaterial2DModifier.OnInspectorGUI C# (CSharp) 메소드

OnInspectorGUI() 공개 메소드

public OnInspectorGUI ( System.Action onValueChanged ) : void
onValueChanged System.Action
리턴 void
        public void OnInspectorGUI(Action onValueChanged)
        {
            var newFriction = EditorGUILayout.FloatField("Friction", friction);
            var newBounciness = EditorGUILayout.FloatField("Bounciness", bounciness);

            if(newFriction != friction) {
                friction = newFriction;
                onValueChanged();
            }

            if(newBounciness != bounciness) {
                bounciness = newBounciness;
                onValueChanged();
            }
        }