Search Unity

Create Material..

Discussion in 'Scripting' started by robertseadog, Sep 7, 2005.

  1. robertseadog

    robertseadog

    Joined:
    Jul 23, 2005
    Posts:
    374
    How do I use the createMaterial with existing shaders?

    Any examples (couldn't find in docs..)? I need to create a new mat, assign an existing shader and texture, then assign the created material to a rigidbody.. Oh, how do I delete it?
     
  2. qbflack2

    qbflack2

    Joined:
    Feb 12, 2020
    Posts:
    7
    What I would do is to have to Material be the Detail Map.
     
  3. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,742
    Don't hijack a 15-year old topic, please. That's not helpful.

    This might be helpful to you however:

    How to report problems correctly in the Unity3D forums:

    http://plbm.com/?p=220