Relative Content

Tag Archive for c#unity-game-enginegame-developmentgame-engine

How to click throw objects using Physics 2D Raycaster?

In my 2D project i need to click throw object(Clickable Area) on Table. I processing clicks on objects with physics raycaster 2D with IPointerClickHandler event. How can i do that? Because it can process only first intersection.

My Instantiate function’s quaternion(rotation) isn’t working correctly

I have a cannon in my Player gameobject, I have a PlayerController.cs file in my Player object, the content is below. In addition, I have a Cannonball for my cannon object to throw. But when I use Instantiate prefab, I want spawned Item gonna use my player’s rotation, but it doesn’t, can you help me?