I just recently installed Unity personal (Free) and I’m unable to change the color of my cube after entering C# script and playing in game mode. Still unable to execute or change color when striking key R,G,B. Any ideas will be helpful. Is my Unity Personal missing features?
I also could not complete simple tutorials such as 3 minute game! On Youtube
www.youtube.com/watch?v=i30menw6gvU
Error = All compiler errors have to be fixed before you can enter playmode!
UnityEditor.SceneView:ShowCompileErrornotication()
using UnityEngine;
using System.Collections;
public class color : MonoBehaviour
{
// change colora
void Update ()
{
if(Input.GetKeyDown(KeyCode.R))
{
gameObject.renderer.material.color = Color.red;
}
if(Input.GetKeyDown(KeyCode.G))
{
gameObject.renderer.material.color = Color.green;
}
if(Input.GetKeyDown(KeyCode.B))
{
gameObject.renderer.material.color = Color.blue;
}
}
}