How to drag gameobjects (other than ui elements) using the event trigger?

Hi, i’m working on a game project on android and i need to drag and drop certain gameobjects. right now i’m using a free assetstore script asset to do this and it takes a lot of coding. I was wondering is there any way to drag or tap on gameobjects (other that the UI elements) with the event trigger system? since i see that it has the whole raycasting and screenposition properties…

After some time i’ve realized that unity uses the EventSystem only for the objects that are UI objects (or somehow the child of the canvas) and it doesnt sync this system with any other game objects which is sad, because if unity had made this system available it would have made things a lot easier.

No, EventTrigger is for the UI.

For non-UI gameObjects you can use MonoBehaviour.OnMouseDrag method. As the docs say, the object must have a Collider component.