Преглед на файлове

Upgraded GameModule layout

James Peret преди 3 години
родител
ревизия
7ce1889997
променени са 1 файла, в които са добавени 12 реда и са изтрити 6 реда
  1. 12 6
      Runtime/SFXModule.cs

+ 12 - 6
Runtime/SFXModule.cs

@@ -15,13 +15,19 @@ namespace KairoEngine.SFX
         public override string name => "SFX Module";
 
         [Tooltip("Use a custom sound emitter prefab or load the default prefab")]
-        [HorizontalGroup("@name/emitter", 0.015f), LabelText("Custom Sound Emitter")] public bool useCustomSoundEmitter;
-        [HorizontalGroup("@name/emitter", 0.985f), HideLabel, ShowIf("@useCustomSoundEmitter")] public GameObject soundEmitterPrefab;
-        [FoldoutGroup("@name"), Tooltip("Use the ObjectPool system so that sound emitters can be reused. This results in better overral performance. Requires the Object Pool Module to be installed.")] 
+        [HorizontalGroup("emitter", 0.015f), LabelText("Custom Sound Emitter")] public bool useCustomSoundEmitter;
+        
+        [HorizontalGroup("emitter", 0.985f), HideLabel, ShowIf("@useCustomSoundEmitter"), NonSerialized, ShowInInspector] public GameObject soundEmitterPrefab;
+        
+        [Tooltip("Use the ObjectPool system so that sound emitters can be reused. This results in better overral performance. Requires the Object Pool Module to be installed.")] 
         public bool useObjectPooling = false;
-        [HorizontalGroup("@name/pool", 0.015f), LabelText("Custom Object Pool"), ShowIf("@useObjectPooling")] public bool useCustomPool;
-        [HorizontalGroup("@name/pool", 0.985f), HideLabel, ShowIf("@useCustomPool"), NonSerialized, ShowInInspector] public ObjectPool soundEmitterPool;
-        [FoldoutGroup("@name"), Tooltip("Optional sound library asset"), NonSerialized, ShowInInspector] public SFXLibrary soundLibrary;
+        
+        [HorizontalGroup("pool", 0.015f), LabelText("Custom Object Pool"), ShowIf("@useObjectPooling")] public bool useCustomPool;
+        
+        [HorizontalGroup("pool", 0.985f), HideLabel, ShowIf("@useCustomPool"), NonSerialized, ShowInInspector] public ObjectPool soundEmitterPool;
+        
+        [Tooltip("Optional sound library asset"), NonSerialized, ShowInInspector] public SFXLibrary soundLibrary;
+        
         private SoundController soundController;
 
         public SFXModule(GameConfig config) : base(config)