Has anyone tried to implement or know how to get objects to follow the character around a scene? I have a number of eerie dolls and I want their eyes to follow the character around the scene, anyone tried to do this?
so this script works perfectly, but, only if player is a gameobject in the scene, I want my player to be prefab from settings manager Character settings, so how do I tweak this script to pull from there instead of game object in scene?
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
Comments
A custom script can read the position of the Player with:
And update a sprite or transform accordingly.
You'll need custom scripting to do this. The way you do it also depends on if you're talking 3D eyes, or textures...etc
I used this as a guide for doing it in my game: https://www.noveltech.dev/unity-implement-eye-object-tracking-2/
so this script works perfectly, but, only if player is a gameobject in the scene, I want my player to be prefab from settings manager Character settings, so how do I tweak this script to pull from there instead of game object in scene?
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Eye : MonoBehaviour {
}
Amazing thank you!