private void Awake() { PreviewShaders.Preview(rendNormal); PreviewShaders.Preview(rendAlpha); PreviewShaders.Preview(rendGlass); SetColors(rendNormal); SetColors(rendAlpha); SetColors(rendGlass); }
private void Awake() { PreviewShaders.Preview(rendHair); PreviewShaders.Preview(rendAccessory); foreach (var rend in rendAccessory) { foreach (var mat in rend.sharedMaterials) { mat.SetColor("_Color", Color.red); } } }
private void Awake() { PreviewShaders.Preview(rendNormal01); PreviewShaders.Preview(rendNormal02); PreviewShaders.Preview(rendNormal03); PreviewShaders.Preview(rendAlpha01); PreviewShaders.Preview(rendAlpha02); PreviewShaders.Preview(rendEmblem01); PreviewShaders.Preview(exRendEmblem01); PreviewShaders.Preview(rendEmblem02); PreviewShaders.Preview(exRendEmblem02); PreviewShaders.Preview(objOpt01); PreviewShaders.Preview(objOpt02); PreviewShaders.Preview(objSleeves01); PreviewShaders.Preview(objSleeves02); PreviewShaders.Preview(objSleeves03); }
private void Awake() { PreviewShaders.Preview(rendNormal); PreviewShaders.Preview(rendAlpha); PreviewShaders.Preview(rendHair); SetColors(rendNormal); SetColors(rendAlpha); SetColors(rendHair); var hairCmp = gameObject.GetComponent <ChaCustomHairComponent>(); if (hairCmp) { foreach (var rend in hairCmp.rendAccessory) { foreach (var mat in rend.sharedMaterials) { mat.SetColor("_Color", Color.red); } } } }