Skip to content

Changing Exposed Parameters from C# #20

Answered by alelievr
quatbol asked this question in Q&A
Discussion options

You must be logged in to vote

Hello 🙂

Yeah, it's a limitation on Unity side, even though the MixtureGraph asset exists as subasset of the generated texture asset, you can't assign it like this. It would be possible to do it this way if the mixture graph subasset was visible but right now it's hidden and I'm not sure if it's worth exposing the graph in the UI like that.

The simplest solution is to call the MixtureDatabase.GetGraphFromTexture function that will return the graph from the texture you exposed in your script, you can see an example of this here: https://github.com/alelievr/Mixture/blob/master/Assets/Examples/StandaloneMixture/ProcessMixture.cs#L20

Note that the parameters are directly serialized in the grap…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@quatbol
Comment options

Answer selected by alelievr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants