#I can collect my item inside the editor but when build cant pick them up

1 messages · Page 1 of 1 (latest)

shut smelt
#

this is my very bad code that is the function for picking items up XD

vapid hawk
#

Try open Player.log

#

Probaby your code has exceptions

shut smelt
#

player.log?

vapid hawk
#

Yes

shut smelt
#

u mean my player script

vapid hawk
#

I mean log file

#

Appdata/LocalLow/(Projectcompanyname)/(GameName)/Player.log

shut smelt
#

oki ty

#

i take a look on it

vapid hawk
#

Or u can use development build check box for enable console in build

shut smelt
#

i do that instea

#

i dont see any console

vapid hawk
#

U see development build title?

shut smelt
#

yes

vapid hawk
#

So there no exceptions

shut smelt
#

i just cant pick my item

#

but i can in editor

#

any reason for it?

#

and how to find the error?

vapid hawk
#

And find player.log for see logs

shut smelt
#

okay

shut smelt
#

but i do have a player.log file

#

or whatever it is called

vapid hawk
#

log file have all logs

shut smelt
#

i see

#

idk what i should be looking for in the log

vapid hawk
#

You need to find code line where code not working

shut smelt
#

i dont see it not working

#

its all success

vapid hawk
#

So its can be ui bug

#

Add debugs in ui

shut smelt
#

could be the layers maybe?

vapid hawk
#

idk

shut smelt
#

i hate unity sometimes

vapid hawk
#

Perhaps the UI just goes beyond the edges of the screen

shut smelt
#

could be

#

cause when im building it

vapid hawk
#

This is the most logical option if everything works

shut smelt
#

the ui becomes small

vapid hawk
#

Well

shut smelt
#

cause the resolution for editor and buld is different

#

idk

#

its all weird to me

vapid hawk
#

Make it the same as in the editor in Project settings

shut smelt
#

ye i should try

#

nope still dosent work

#

maybe the input?

vapid hawk
#

You added the log that the item was definitely added to the inventory, right?

shut smelt
#

yes

#

it should be

shut smelt
#

If anybody know why this dosent work i would be grateful

shut smelt
#

I think i need help by showing it

#

Instead of texting

shut smelt
#

But it dosent get picked up

#

For some weird reason

vapid hawk
#

Add logs

#

Maybe raycast not working idk

shut smelt
#

the raycast for pickup text work

vapid hawk
#

Well log hit object name

shut smelt
#

ok so i debugged it again

#

and it looks like it i think it might be the raycast?

#

im still confused

#

but screw it

#

i try to fix it tomorrow