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();
            }
        }