I have imported an object from blender, it has imported perfectly, the object is in unity and works as a character, however the name is blue in the hierarchy (it would be great if someone could tell me why, it might be related to my issue) and when I try to reference this object in a script as a game object it doesn’t work the script is as follows.
using UnityEngine;
using System.Collections;
public class cameraBehaviour : MonoBehaviour {
//Variables
public GameObject playerCharacter;
public Vector3 offset = new Vector3 (0, -6, 0);
void Start () {
}
void LateUpdate () {
transform.position = playerCharacter.transform.position + offset;
}
}
Thanks for any help as always.