help Convert Mouse position to world3d position

Hello, I am a rookie for Unity I am from Thailand Now I have a problem in translation.Mouse position to world3d position I want Click to move model in viewport thank

You would do this via Raycasting and the built in class that translates a point on the screen to a “line” in 3D space.

Lookup “Camera.ScreenPointToRay” in the scripting reference:

Thank. Theformand