Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetLayerMask(LayerMask)

A helper method that simultaneously sets both the Rigidbody2D.SlideMovement.layerMask to the specified mask but also sets Rigidbody2D.SlideMovement.useLayerMask to true.
Read time 1 minuteLast updated 12 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.Physics2DModule
public void SetLayerMask(LayerMask mask)

Parameters

The layer mask to use.

Remarks