2
\$\begingroup\$

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?

\$\endgroup\$
  • \$\begingroup\$ The sprite needs to have texture type 'sprite', doesn't it? \$\endgroup\$ – BlueRaja - Danny Pflughoeft Feb 11 '14 at 15:57
0
\$\begingroup\$

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.

| improve this answer | |
\$\endgroup\$
  • \$\begingroup\$ I get some knowledge from it. \$\endgroup\$ – Siddharth Sep 15 '14 at 15:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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