Bindings While Using Prefabs
AnsweredWhen I create a Prefab for lets say a vertical gauge, when I want to dynamically change the value of this gauge using fuel and another instance of the same prefab using battery level, is this possible using bindings pulling data from a database I have, or do they need to be their own prefab if I'm using bindings?
Thanks!
-
Official comment
Hi Mason,
I would encourage you to look at the "Progress Bar" Factory content item. (Click Asse Packages, and scroll down until you find the asset and drag it a sample scene)
The progress bar showcases a self contained prefab, that you can duplicate as many times as you would need to, to suit your designs. The entire affect is controlled by one property on the top most level of the prefab called "Progress", and then you can bind each set of data to an individual progress bar.
You would have a binding on each prefab, and these bindings wouldnt be saved, but then you can take advantage of the prefabs and have unique data driving each slider.
See image below (Right slider controlled by a control node, while left is not)
Please sign in to leave a comment.
Comments
1 comment