- Home /
I need help knowing if Im doin this Right
So I have this script
using UnityEngine;
using System.Collections;
public class TextColor: MonoBehaviour {
private Color color;
void Awake()
{
color = Color.black;
}
}
and I'm trying to make a script to turn a 3d text black... since it comes in white... Anyone know how to help.
Comment
Best Answer
Answer by dewlap · Dec 02, 2012 at 12:13 PM
Try this:
renderer.material.color = Color.black;
http://docs.unity3d.com/Documentation/ScriptReference/Renderer-material.html
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
World Spawn Changing Y to own Block 1 Answer
In Game Animation 2 Answers
GetComponent().enabled = true; 1 Answer
Help converting C# to Unityscript 1 Answer