- Home /
Question by
kyarii21 · Oct 03, 2021 at 02:10 PM ·
3dspriterenderer
SpriteRenderer producing UnassignedReferenceError
For some reason my SpriteRenderer is not working and is producing a UnassignedReference Exception. I am creating a 2.5D game using 2D sprites in a 3D environment. Can anyone tell me why this isn't working? My code is included and another image shows the script assigned to the player object.
Comment
Answer by logicandchaos · Oct 03, 2021 at 02:31 PM
You didn't assign it in the inspector
answer.png
(323.7 kB)
Answer by TalkingBlah · Oct 03, 2021 at 04:17 PM
Hi you need to Drag and drop the required spriterenderer on the inspector window