Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I have done following thing.

  1. Create Material
  2. Attach sprite with texture type as Texture
  3. Add sprite renderer component to game object
  4. Assign material to it that I create in last steps

There is no sprite available for selection. Following image illustrate my problem correctly.

enter image description here

So my question in how to create sprite renderer with custom material?

share|improve this question
    
The sprite needs to have texture type 'sprite', doesn't it? –  BlueRaja - Danny Pflughoeft Feb 11 at 15:57

1 Answer 1

You must put a Sprite asset in the Sprite Renderer "Sprite" field. And you can assign any Material on "Material" field. You don't need to put a texture on the Material.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.