Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

Sorry for the ridiculous question but when i apply my own prefab of a model I cannot seem to get the layers to be right ( prefab going inside of boxed and walls etc when it should overlap ) Is it my problem ? Or there is a preset somewhere that i have to edit ? Thanks ( using unity btw) 

(+5)

Hello, please check if your the sprite of your prefab's pivot is at its bottom.

And at the [Sprite Render] of that sprite, the [Sprite Sort Point] should be set to [Pivot].


Also in [Project Settings/Graphics] :

Set [Transparency Sort Mode] to [Custom Axis]

Set [Transparency Sort Axis] to [0,1,1]

(+1)

Ahh as embarrassing as it is to admit it was the pivot point :( 
I guess thats my lesson as a junior game dev :P

(+15)

Shouldn't be embarrassed. You didn't know something and asked the right question to solve the problem.