#For some reason I cant use .IsMe on the
1 messages · Page 1 of 1 (latest)
using System.Collections;
using System.Collections.Generic;
using Unity.VisualScripting;
using UnityEngine;
public class followMouse : MonoBehaviour
{
private Avatar _avatar;
Vector3 pos;
public float speed = 1f;
void Update()
{
pos = Input.mousePosition;
transform.position = Camera.main.ScreenToWorldPoint(pos);
transform.position = new Vector3(transform.position.x, transform.position.y, 0);
}
}
I had avatar publiic but when I went to reference it in the Inspector after dragging it it wouldnt select
Is it because its the child of the avatar?
Not sure. Why not just make a script to put on Player and control the mouse from there?
So just get rid of the empty?
I mean, sure. If Player is empty just make the cursor Player
.IsMe is what you want

IT WOKRED
YEs
Thank you I really appreciate it
that .Isme is really helpful
thank you so much
np
Now I just need to make it update 60FPS
Becuase its really choppy
FixedUpdate time
Its still a little choppy
Would you know any way to make it update at any faster than FixedUpdate?