Guides:Layers: Difference between revisions

From VRChat Wiki
DAG-XR (talk | contribs)
m Usr 8ee44c1a-f905-4e08-bb61-e1cd34e09fc0 moved page Layers to Guides:Layers: Moved to new Guides: namespace.
~Pausbe (talk | contribs)
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Noticebox/Community}}
{{Noticebox/Stub}}
'''Layers''' are used by Unity to determine how game objects in your scene interact with each other. These interactions are things like what physics objects collide with, what the player collides with, what is visible in a camera, and what objects are reflected in a mirror.
'''Layers''' are used by Unity to determine how game objects in your scene interact with each other. These interactions are things like what physics objects collide with, what the player collides with, what is visible in a camera, and what objects are reflected in a mirror.


Line 8: Line 11:
* [https://creators.vrchat.com/worlds/layers/ VRChat Creator Documentation - Unity Layers in VRChat]
* [https://creators.vrchat.com/worlds/layers/ VRChat Creator Documentation - Unity Layers in VRChat]
* [https://docs.unity3d.com/Manual/Layers.html Unity Documentation - Layers]
* [https://docs.unity3d.com/Manual/Layers.html Unity Documentation - Layers]
[[Category:Guides{{#translation:}}]]
[[Category:SDK{{#translation:}}]]
[[Category:Needs images{{#translation:}}]]

Latest revision as of 00:55, 16 April 2026

V · ECommunity-written content
The following was created by the community. It may contain material not directly endorsed by the VRChat team. To learn more, consider reading Contributing to the VRChat Wiki.
V · EThis page is a stub.
You can help the VRChat Wiki by improving it.
[Reason: You can contribute by expanding and proofreading this article, in accordance with the Manual of Style.]

Layers are used by Unity to determine how game objects in your scene interact with each other. These interactions are things like what physics objects collide with, what the player collides with, what is visible in a camera, and what objects are reflected in a mirror.

Using Layers

An object's layer can be set by selecting the object in the Unity editor, and then clicking the "Layer" drop down in the top right of the Inspector window. Objects that interact with layers will have their own component to describe what they interact with. Mirrors define what layers of objects they reflect in their "Reflect Layers" setting. Cameras define what layers they render in the "Culling Mask" setting. The Collision Matrix describing how physics objects interact with each other can be found under the Physics tab of the Project Settings menu of your Unity project.

Resources