Drawables and Value Trees


#1

Last night i was diving into the capability of using ValueTrees to rebuild drawables, but for some reason, when I did it, the ComponentBuilder object seemed to be angry about component ids not being there and so on.
I dont have my code here with me at work so I cant post it at the moment, but was hoping someone might be able to shed some light on the subject.


#2

Yes, you’d need to give all your drawables a unique ID before you convert them to a ValueTree for that to work. I’ve got some work in the pipeline that’ll make use of all that stuff, but not ready for the public yet…


#3

ah ok… how do I give them the id? also… nice new picture :wink:


#4

Nevermind. it’s probably Component::setComponentID(); Is it going to work if I try it?


#5

Probably!