Skip to main content

Questions tagged [layers]

0 votes
0 answers
83 views

Unable to play animation from another layer

I'm attempting to play an animation from different layers but having some difficulty. I'm trying to play animation transitions in one layer and then go back to the base layer to play an animation ...
wrappingduke's user avatar
0 votes
0 answers
138 views

How can I store two different render layers on separate render textures?

I'm using Camera.cullingMask to only render objects that belong to specific layers. However, I can't figure out how to render two different layers on the same frame and store them in separate render ...
Nikhil Nair's user avatar
1 vote
1 answer
1k views

How to disable a layer in a Tilemap's collision mask via code?

I have a tilemap in Godot 4.1 and I have defined a physics layer for a tileset, but I cannot figure out how to disable a layer in collision mask in code. I already found out that I should get tileset ...
Adonia Kazemzadeh's user avatar
1 vote
0 answers
43 views

How to limit the character movements to a delimited area

Consider the below images get from the Final Fantasy VII and Alone In The Dark games: I assume that the above scenes are composed by a set of layers composing the background image (allowing thus the ...
Jean-Milost Reymond's user avatar
2 votes
1 answer
267 views

How to properly handle hundreds of layers of tiles

GOAL I am making a top-down tile-based sandbox game, and it will have 400 layers of destroyable terrain, It will not use chunks, it will store the map in memory like Terraria, but only render the ...
Macho Onion's user avatar
0 votes
0 answers
39 views

Unity layer masks

I read from the book that 0 - 7 layers are reserved layers in Unity but when I open layers on Unity its showing me that I can use layer-03, 6 and 7 and so on. So can I say that only 5 layers are ...
AHF's user avatar
  • 101
0 votes
0 answers
172 views

Why is the back layer sometimes rendering in front?

I have a layer rendering issue, where the top layer of content will sometimes not render to screen as it appears that the bottom layer is rendering on top (even though it's behind in world space). It ...
A__'s user avatar
  • 163
0 votes
1 answer
275 views

How do collisions work under the hood in Unity? Is it more performant to make (physics) Layers as specific as possible?

I'm trying to decide how granular to be with my layers. I assume there's some spatial indexing going on, but... Does Unity do work for every pair of objects on compatible layers? Will Unity do some ...
pixelpax's user avatar
  • 143
0 votes
0 answers
139 views

Layer sprites according to their vertical position

I need advanced blitting options in my game. It's a 2D game that has trees' sprites along with the player's sprite. I want that every tree sprite to be displayed either in front of or behind the ...
Salem's user avatar
  • 226
1 vote
2 answers
292 views

Collision filtering in Box2D: running out of bits

I have a physical simulation on the streets of a city. The simulation is 2D but in a few points it could develop on multiple "layers": for instance bridges or underground tunnels. I may have ...
Blue Nebula's user avatar
0 votes
1 answer
108 views

Make non-sprite render in front of sprite

How do I make the non-sprite (BasicSpellProjectile) render in front of the sprite (Tower 2)? Note: The camera is located at z=-10. The z positioning apparently ...
Sebastian Nielsen's user avatar
0 votes
2 answers
2k views

Unity - Apply different Near/Far clip plane value for different layer

I am Lerping the Near value of my camera, from 0 to 38, and it gives this result: change near clip plane effect As you see, it gives a nice effect. But now I would like the effect to occur only for ...
Ugo Hed's user avatar
  • 281
0 votes
1 answer
2k 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 ...
FSic's user avatar
  • 188
0 votes
0 answers
27 views

How can I rearrange layers in Unity 2D? [duplicate]

I'm new to using Unity (2019.30a2) and am currently learning by watching Brackey's (youtube) "How to make a 2D Game in Unity" At 6:58 he is able to rearrange his layers easily. On my hand, I can ...
user9681559's user avatar
0 votes
0 answers
527 views

Layers in Unity won't drag

I'm trying to rearrange my layers in Unity but I can't seem to drag them. When I try to do this I'm in edit layers under the heading sorting layers and I click on the = symbol and try to drag it but ...
Sarah Buist's user avatar

15 30 50 per page