|
Hello, I'm using the 'SendMessageUpwards', but the problem with that, is that I can only send one parameter to a function. Is there a way to send more than one? Example: Thanks
(comments are locked)
|
|
You can send an Object with SendMessage, and the object can be anything. I would advise not repurposing things like Vector3 for this, because that makes your code less understandable. (Even though it might be tempting to do that, take a minute and do it right instead; you will save much more than that later when you're not having to figure out what the heck x/y/z means in that context.)
(comments are locked)
|
|
Well, yes, to a certain degree that is. You could just send a Vector3, like this: And you would receive the message like this: And of course you access the data just like you would with a normal Vector3(using its x, y and z values).
(comments are locked)
|
|
Im not sure but i think you could send a List or an Array with SendMessage
(comments are locked)
|
