File tree Expand file tree Collapse file tree
packages/com.midmanstudio.utilities/Runtime/FXSystems/Config Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ // EffectTypeProviderSO.cs
2+ // ScriptableObject that contributes entries to the EffectType enum.
3+ // One of these per package/game that needs custom effect variants.
4+
5+ using System . Collections . Generic ;
6+ using UnityEngine ;
7+ using MidManStudio . Core . EditorUtils ;
8+
9+ namespace MidManStudio . Core . FX . Generator
10+ {
11+ [ CreateAssetMenu (
12+ fileName = "EffectTypeProvider" ,
13+ menuName = "MidManStudio/Utilities/Effect Type Provider" ,
14+ order = 181 ) ]
15+ public class EffectTypeProviderSO : ScriptableObject
16+ {
17+ [ Header ( "Identity" ) ]
18+ public string packageId = "com.mygame" ;
19+ public string displayName = "My Game" ;
20+
21+ [ Header ( "Block Priority" ) ]
22+ public int priority = 100 ;
23+
24+ [ Header ( "Entries" ) ]
25+ [ MID_NamedList ]
26+ public List < FXEntryDefinition > entries = new List < FXEntryDefinition > ( ) ;
27+
28+ public int EntryCount => entries ? . Count ?? 0 ;
29+ }
30+ }
You can’t perform that action at this time.
0 commit comments