文档

Unity Engine

Unity Engine

GetLayerCost(int)

Gets the cost for traversing over geometry of the layer type on all agents.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEngine.AI
  • Assembly: UnityEngine.AIModule
警告
Deprecated. Use GetAreaCost instead.
public static float GetLayerCost(int layer)

Parameters

layer

Returns

Type

Description

float