API:Layers

From Kerbal Space Program Wiki
Revision as of 13:02, 21 October 2014 by Pizzaoverhead (talk | contribs)
Jump to: navigation, search

Layers are used to allow cameras and lights to act only on certain parts of the scene, or to have collisions or ray casts ignore certain objects. Layers 0 to 7 are reserved by Unity. See the Unity Layers page for more details.

Layers in KSP

There are 32 layers available:

  • 0: Default (Unity built-in)
  • 1: TransparentFX (Unity built-in)
  • 2: Ignore Raycast (Unity built-in)
  • 3:
  • 4: Water (Unity built-in)
  • 5: UI (Unity built-in)
  • 6:
  • 7:
  • 8: PartsList_Icons
  • 9: Atmosphere
  • 10: Scaled Scenery
  • 11: UI_Culled
  • 12: UI_Main
  • 13: UI_Mask
  • 14: Screens
  • 15: Local Scenery
  • 16: kerbals
  • 17: Editor_UI
  • 18: SkySphere
  • 19: Disconnected Parts
  • 20: Internal Space
  • 21: Part Triggers
  • 22: KerbalInstructors
  • 23: ScaledSpaceSun
  • 24: MapFX
  • 25: EzGUI_UI
  • 26: WheelCollidersIgnore
  • 27: WheelColliders
  • 28: TerrainColliders
  • 29:
  • 30:
  • 31: Vectors