#i dont want to spam the chat,can I dm

1 messages · Page 1 of 1 (latest)

hollow spade
#

No, let's discuss in a thread.

sly flicker
#

sure,gimme sec

#

this is the player controller

#

this is the player

#

this is the object

steel sage
#

it passes the sniff test -- you have a rigidbody and a trigger collider on one object, and a CharacterController on the other object

#

I just checked how that behaves yesterday!

sly flicker
#

so what sould i I in order to fix it?

steel sage
#

you'll want to look at whatever is receiving the trigger enter message

hollow spade
sly flicker
hollow spade
#

Ah there it is

sly flicker
#

@hollow spade i got the ontrigger separately in the interactable object

hollow spade
#

make sure it's properly detecting the player entering and exiting and that all the conditions for the Update part are true when you expect

#

basically - you need to start actually debugging here!

#

also of course check the console for errors while you do this

sly flicker
hollow spade
#

so we know for sure that part is actually happening

sly flicker
#

it logs that i entered and exited

#

i got it setup like that,so when anything with tag "player" enters it,it will be able to do the thing

#

NullReferenceException: Object reference not set to an instance of an object
SelectionManager.Update () (at Assets/Scripty/SelectionManager.cs:43)

sly flicker
#

problem fixed,i didnt have tag main camera on my camera

hollow spade
sly flicker
#

i went back to the last save of the script before i tried to fix it