How to modify a Custom Component's property using scripting?
Options
senwei
Posts: 1
Hey guys. So i currently am creating a game where there will be falling shampoos and if you capture any of it your hair will "grow". The growing of the hair is managed by a property of the hair component which is called Width, under the label Strand Shape. I want to access this property so that I can add 0.1 to the Width when someone successfully catches the shampoo. I have a onHit() function already implemented so I just need to know how i can access the property to modify the "Width" property on hit. Below is the property "Width" im trying to access. Thank you so much!
Tagged:
0
Answers
-
Hey @senwei! The Community Questions channel might be a good place to post your questions!
0