PlayMaker Help & Tips > PlayMaker Help

Get Vector3 from Script

(1/1)

mthicke:
I'm getting an error trying to get a vector3 from a script with this code:

theFsm.FsmVariables.GetFsmVector3("NextDestination").Value = pointsList.pop;

error:
BCE0022: Cannot convert 'function(): Object' to 'UnityEngine.Vector3'.

is this the right way to do this?

jeanfabre:
Hi,

First save your pointList.pop into a explicitly declared Vector3 variable, likely you'll find that this is not a Vector3. Basically the error seems to indicate that pointsList doesn't containts Vector3.

Bye

 Jean

Navigation

[0] Message Index

Go to full version