All Questions

Tagged with
Filter by
Sorted by
Tagged with
0
votes
1answer
36 views

Unity Raycast not detecting layers

I am having problems with layers detection using raycasts. Context: I created a grid to use in a pathfinding algorithm on a 2D plane. I want to implement now different weights according to the layer ...
1
vote
0answers
76 views

Incorrect draw order with LineRenderer

I have a Player game object with a sprite renderer and a line renderer. The sprite for its body and the line for a rope. The problem is that the rope isn't visible (I can see it's drawn in the scene ...
0
votes
1answer
78 views

Need help with sorting layers on a 2D game made in Unity

I'm busy with my full blown project in unity, it's a 2D game as I thought this would make a good starting point. So to the problem, I've got 3 elements in the game. The ground, an object and a beam. ...
0
votes
1answer
1k views

Assigning sprite to a sorting layer through scripting

I have few prefabs with sprites which I want to assign to different sorting layers. How can I do it? I am also wondering if sorting layers matter if I use a perspective camera. Do they?
0
votes
3answers
3k views

Detecting mouse click for the uppermost layered 2d sprite in Unity

I have two sprites. One for the entire background and another small sprite, which is a foreground object. I have written code for both of these objects in their ...
2
votes
1answer
1k views

Animating feet seperately from the body

I have a character and I would like to animate a walking animation for it. However i get the following result when I animate it: (ignore the green lines/ markers/ sound) As you can see the foot ...