Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: Mupp on July 19, 2018, 09:23:28 AM
-
I want to get the X size of a box collider on the object that is currently stored in a GameObject variable. How do I do that?
-
Hi,
you either do this using GetProperty action, or you get the dedicated custom action GetBoxColliderSize from the Ecosystem.
Bye,
Jean
-
Thanks, the GetBoxColliderSize should work, but for future reference, how do you use GetProperty with a GameObject variable? Can you give me an example how to store a variable from a component on an unknown object?
-
Hi,
simply drop the Component onto the Action stack.
Bye,
Jean
-
Um, I don't think you understand. I can't drag the object because it is stored in a variable. It's unknown, otherwise it would been really easy.
-
Bump.
-
Did you save the component as object variable? I'll make a small gif later.
-
Yeah, that's what I tried to do, but it's at that point it gets tricky for me. :-\
-
There you go
-
That's excellent. That's what I was looking for. Thanks a lot man. ;D
-
Great :)