The document contains a C# script that defines a FollowMouse class with a private Canvas field. The Update method gets the mouse position, converts it to local coordinates relative to the parent canvas, and sets the transform position to follow the mouse.
The document contains a C# script that defines a FollowMouse class with a private Canvas field. The Update method gets the mouse position, converts it to local coordinates relative to the parent canvas, and sets the transform position to follow the mouse.
The document contains a C# script that defines a FollowMouse class with a private Canvas field. The Update method gets the mouse position, converts it to local coordinates relative to the parent canvas, and sets the transform position to follow the mouse.
The document contains a C# script that defines a FollowMouse class with a private Canvas field. The Update method gets the mouse position, converts it to local coordinates relative to the parent canvas, and sets the transform position to follow the mouse.