Version: 2023.2
public void SetLayerMask (LayerMask mask);

参数

mask The layer mask to use.

描述

A helper method that simultaneously sets both the Rigidbody2D.SlideMovement.layerMask to the specified mask but also sets Rigidbody2D.SlideMovement.useLayerMask to true.