S SagarPatel25700 New member Oct 17, 2021 #1 Is there a way to access the transform component while in the editor? not while playing game I am getting transform as null
Is there a way to access the transform component while in the editor? not while playing game I am getting transform as null
Justin Administrator Staff member Oct 17, 2021 #2 No, the transform is set at runtime. Where are you trying to get the transform?
S SagarPatel25700 New member Oct 18, 2021 #3 I want to draw gizmos when game is not playing I needed position of the gameobject Is there any way to access this?
I want to draw gizmos when game is not playing I needed position of the gameobject Is there any way to access this?
Justin Administrator Staff member Oct 19, 2021 #4 Within OnDrawGizmos the Owner property will be valid which references the Behavior Tree component. You can then use that to get the transform.
Within OnDrawGizmos the Owner property will be valid which references the Behavior Tree component. You can then use that to get the transform.