How to modify a Custom Component's property using scripting?

senwei
senwei Posts: 1
edited September 2023 in Programming #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:

Answers