#how do i apply 2d materials to objects

1 messages · Page 1 of 1 (latest)

languid night
#

What are you trying to do actually

#

You're mixing up a lot of terminology and I'm not sure what the goal is

hexed wren
#

put this on a object

languid night
#

I don't know for sure what that is, nor what your object is

hexed wren
#

its a 2d square

languid night
#

3D meshes, 2D sprites and terrains all work with different rules

#

Is your gameobject using a mesh renderer, sprite renderer or a terrain component?

hexed wren
#

sprite rend

languid night
#

Sprite renderers should use the Sprites-Default material

#

To assign a new sprite you set the Sprite field to a texture that's of the type "Sprite (2D and UI)"

hexed wren
#

oh

#

so do i have to switch it to another renderer

languid night
#

why would you?

#

If you're working in 2D, you normally use the Sprite Renderer with the Sprites-Default material

hexed wren
#

ok

languid night
#

Note that there is no "Unity 2D" or "Unity 3D", you can mix and match both types of renderers in a scene, but they're used in different ways

hexed wren
languid night
hexed wren
languid night
#

You would make a sprite out of it

#

Not a material

#

Sprites don't support 3D lighting or normal mapping though, so you might want to use a 3D material on a quad mesh instead (in case that is your actual goal)

#

Hard to say, you're not really giving any specific info at all

hexed wren
#

trying to make a game that is in the top pov, so the floor would be covering the entire screen

hexed wren
#

this is the package:

languid night
#

Does it need to respond to lighting?

hexed wren
languid night
languid night
#

To get normal mapped lighting like this, you shouldn't be using sprite renderers because they don't support it without custom systems

hexed wren
languid night
#

Just making absolutely sure because you replied to my post about the 2D sprite option

hexed wren
languid night
#

In that case find the texture asset with that color map, set its type to "Sprite (2D and UI)"
Now in project window you can "expand" the asset using the little rightward arrow to reveal the sprite asset inside
You can drag that sprite into the scene and it should set up a sprite renderer for it ready to go

#

The sprite asset should be revealable like this

#

In my example these are the import settings to make it a sprite

hexed wren
#

ok thx

hexed wren
languid night
#

There's a bit of studying to do to get a handle of that system but it's well worth it