-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there any other example of Options? #25
Comments
The Options and Features section in the documentation tries to explain it and gives some examples. But it ultimately comes down to how an Option is implement and what exactly it's configuring, so it can be difficult to pin it down exactly. There are different types of Options and they each might define what exactly their Feature is in a different way. On a technical level:
The basic idea is that there can be two separate things that can be in-/excluded in builds: The Option that allows changing the configuration but also the thing itself that the Option is configuring. Maybe explaining the different possible combination helps:
Some Options might inject a Feature (there are methods on OptionHelper to help implement this), actively remove it when building (e.g. using For examples, check out the Options included in Trimmer: https://github.com/sttz/trimmer/tree/master/Options |
Uhhh... I'm still confused by this... What should I do if I have this case: What should I do in this case? Then I want it to takes effect when I go to play mode, so I could inspect what is the behaviour when I build it. So I guess, I should include Because I want it change the ScriptableObject before building, I guess I should hook the But how can I configure to execute |
Hello, to be honest, the documentation is a little bit confusing. What is the difference between Option and Feature?
And what is the use case of it? Do you have more example (in code)?
The text was updated successfully, but these errors were encountered: