possible super unit default value bug

macguffin 3 years ago updated by Lazlo Bonin (Lead Developer) 3 years ago 3
Hi is this a bug, or am I doing something wrong?

If I set up my input like this with default values for colours they are not picked up by the super unit "wrapper" (sorry not sure of your terminology)

The colours of the default values differ from the input colours on the super unit wrapper. 
These colours are picked up the ones inside the graph are not. I guess I would expect them to be the same and any changes the values inside the graph be reflected on the graph "wrapper"

Bolt Version:
Unity Version:
Scripting Backend:
.NET Version (API Compatibility Level):

Once you've looked at the value from outside the unit perspective, you've seen it. Therefore it already established what it's first value is, so changing default will change it on a newly created instance. Not the current one, unless you've remained in the unit changing them without seeing the unit. Does this make sense?

I guess I set it up inside the unit first as a default value and was surprised that the external colour was white and not the same as the internal colour.

Maybe I'm thinking of it more along the lines of 

function setCubeColours(colour=blue){return colour}

setCubeColours() will therefore = blue

where if I don't physically have a colour unit connected as below the inner default value will be represented on the outside of the unit

Still getting to grips with the intricacies of Bolt but boy is it the "cherry on the cake"

Jason is right, from the moment you instantiated your super unit, Bolt remembered and serialized the values it had.

Your new default values will only appear the next time you create this super unit.