Question by
JollyJumpingBean · Jul 23, 2019 at 10:56 AM ·
c#programmingenum
Restrict amount of multiple choices per Enum
Hi all,
So I have a use case where I need to use an enum to describe a property of an AudioSource
component. There would be 9 enum states in total but depending on AudioSource
channel count, I have to restrict the multiple choice selection to either 2 or 4 states. Maybe using enum is not the correct approach here?
Comment
Your answer
Follow this Question
Related Questions
How can I separate my Code efficiently ? 0 Answers
How to communicate between scripts and gameobject use tag in unity 1 Answer
How to reset score when game restart,How to reset score on game restart? 0 Answers
What is Coroutine, Yiel and IENumerator? 1 Answer
Can't seem to find a proper stepping stone to learn from, any ideas? 3 Answers