기술 자료

Unity Engine

Unity Engine

SetLayerCost(int, float)

Sets the cost for traversing over geometry of the layer type on all agents.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: UnityEngine.AI
  • Assembly: UnityEngine.AIModule
경고
Deprecated. Use SetAreaCost instead.
public static void SetLayerCost(int layer, float cost)

Parameters

layer


cost

Remarks

This will replace any custom layer costs on all agents.