ドキュメント

Unity Engine

Unity Engine

IgnoreRaycastLayer

Layer mask constant to select ignore raycast layer.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Field
  • Namespace: UnityEngine
  • Assembly: UnityEngine.PhysicsModule
public const int IgnoreRaycastLayer = 4

Remarks

This can be used in the layermask field of Physics.Raycast and other methods to select the "ignore raycast" layer (which does not receive raycasts by default).