#Sprite Render issue

1 messages ยท Page 1 of 1 (latest)

honest grove
#

Here is the thread @rustic trail

#

So yeah I showed the inspector

rustic trail
#

yep, I am here ๐Ÿ˜„

honest grove
#

Nice :)

#

anyways where we left off:

#

This is the inspector for the powerup

#

I highly doubt it's a code problem

#

but it does have 2 other components other than the sprite renderer

rustic trail
#

What happens if you remove that material on the spriterenderer?

honest grove
#

in the "Sprite" placeholder?

#

it doesn't render anything at all, as expected

rustic trail
#

On your inspector, there is a material line attached to teh renderer, can you remove that?

honest grove
#

sure

#

didn't even notice it

#

now it's purple

#

however I did test out using my other sprites and they also have weird results

#

for example:

#

this is a sprite that works when rendered individually:

#

this is what happens when I put that same sprite in the sprite renderer:

#

It isn't the same shape

#

it makes this weird shape

#

maybe it's the problem with the sprite renderer?

rustic trail
#

Okay, if you create an empty gameobject, put a spriterenderer component on it and than select a sprite, that is giving you those results?

honest grove
#

Nope

#

however that means there is an alternative

#

I can just put the sprite renderer as a seperate parented object

#

but before I do I still want to know what's causing this

#

wait

#

I noticed something

rustic trail
# honest grove Nope

That means it works with a clean spriterenderer or it does not work? ๐Ÿ˜„

honest grove
#

when adding a fresh sprite renderer component

#

there is a material already in place there by default

#

It must've had rendering issues because I had a different material

#

Fresh sprite renderer:

#

Modified

#

in the material placeholder the material is missing

#

let me see if I add the same material it will work

#

It works!!

rustic trail
#

Yep, you should either take none or a sprite material with the correct shader

honest grove
#

How did I not notice that? ๐Ÿ˜ญ

#

man I must be tired

rustic trail
#

Happens ๐Ÿ™‚

honest grove
#

first it's the wrong channel and now this

rustic trail
#

get some good shut eye maybe ๐Ÿ˜„

honest grove
#

haha clumsy brain sorry bout that

honest grove
rustic trail
#

Great you figured it out ๐Ÿ™‚

honest grove
#

anyways thanks for being cooperative :)