using System.Collections; using System.Collections.Generic; using UnityEngine; public class CharacterBehaviour : MonoBehaviour { public Material mat; private void Awake() { mat = new Material(Shader.Find("Standard")); GetComponent().material = mat; List mats = new List(); mats.Add(mat); GetComponent().materials = mats; } // Use this for initialization void Start () { } // Update is called once per frame void Update () { } }