#I fixed it just still not sure why the

1 messages · Page 1 of 1 (latest)

raven field
#

so, the problem is that the arrow is appearing in a weird position?

#

i.e. not 14 units above the drop zone object

rocky sky
#

No it's going to the prefab position even though debug is showing the right position

raven field
#

so it's in a weird position 😛

#

does the arrow have any components on it?

rocky sky
#

yeah I didn't mean no it's not

#

I meant no to the second part as in no it's not 14 units above

#

No the arrow is just a GO

#

Wait

raven field
#

that doesn't mean it can't have any components on it

rocky sky
#

lmfaooo

raven field
#

does it have a component on it

rocky sky
#

I knew I was just being an idiot

azure nacelle
#

dont tell me the script is not on the gameobject

rocky sky
#

I forgot to place it in an empty object. It has an animator on it.

raven field
#

ah

azure nacelle
#

not on the correct one

#

lol

raven field
#

that will fling it all over the place

rocky sky
#

I knew it was something stupid I was missing

raven field
#

I knew it had to be a component on the arrow because you didn't save a reference to the spawned arrow

rocky sky
#

Welp thanks

raven field
#

so unless you had another component going GameObject.Find("Arrow (clone))" or w/e it had to be something on the arrow itself

#

(which is part of why Find is bad!)

azure nacelle
raven field
#

it lets you just Do Stuff to any object in the scene

#

it's also kinda slow

rocky sky
#

Yeah that's why I didn't want to use Find

raven field
#

but I think the loss of control is the worst part

azure nacelle
#

u can use some find function to locate ur camera

#

only in awake/start

#

because cinemachine is very tricky

#

if u use camera.main, ur not referring to the virtual camera, but the camera that is being used by cinemachine

#

but the actual moving camera is that virtual camera

rocky sky
#

Yeah I typically only use find to get scripts onto a prefab if needed. I don't know a better way

raven field
#

anyway, i'll close this thread