Hi i want to change main color on micro_dragon_clean
somebody help me Pls
tell me how to change it.
thank
using UnityEngine;
using System.Collections;
public class RND : MonoBehaviour
{
public GameObject ObjectTochangeColor;//drag the object in inspector that you want to change the color
// Use this for initialization
void Start ()
{
ObjectTochangeColor.GetComponent<Renderer> ().material.SetColor ("_Color", new Color (0.2f, 0.1f, 0.5f, 1.0f));
}
// Update is called once per frame
void Update ()
{
}
}