Hello,
I have some problem to convert a variable type gameobject to a variable type object.
For this I'm using the action Find closest. So I want to store the closest gameobject to a value and this value will be set to a "Set property cation", and so change the target of a script.
My situation is I'm using the action Set property for changing target to a script (the target in the script is UnityEngine.Transform).
I don't know how to transfert this closest gameobject to the unityengine.transform.
Is it possible to convert my gameobject variable value to an object variable?
Or can I do this in a different way?
Thanks
PS: I hope I explain well my problem, cause it's a tough one I guess.