Esempio n. 1
0
 public override void OnInspectorGUI()
 {
     DrawDefaultInspector();
     if (GUILayout.Button("Save changes"))
     {
         EnumGenerator.GenerateEnumFromStringList("AudioClipTypes", "AudioClipType", ((SoundsConfig)target).GetAvailableNames()
                                                  .Where(objName => _provider.IsValidIdentifier(objName)));
     }
 }
Esempio n. 2
0
    public override void OnInspectorGUI()
    {
        serializedObject.Update();
        _objectsInfo?.DoLayoutList();
        serializedObject.ApplyModifiedProperties();

        if (GUILayout.Button("Save changes"))
        {
            EnumGenerator.GenerateEnumFromStringList("PoolObjectTypes", "ObjectType", ((ObjectsConfig)target).ObjectsList.Select(obj => obj.Name)
                                                     .Where(objName => _provider.IsValidIdentifier(objName)));
        }
    }