Esempio n. 1
0
    public override void OnInspectorGUI()
    {
        if (GUILayout.Button("Update Material Scale"))
        {
            TextureScaler scaler = serializedObject.targetObject as TextureScaler;
            scaler.UpdateMaterial();
        }

        serializedObject.ApplyModifiedProperties();
    }