文档

Unity Engine

Unity Engine

GetPhysicsOutlineCount()

The number of physics outlines for the Sprite.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public int GetPhysicsOutlineCount()

Returns

Type

Description

intThe number of physics outlines for the Sprite.

Remarks

A physics outline is a cyclic sequence of line segments between points that define the outline of the Sprite used for physics. Since the Sprite can have holes and discontinuous parts, it can be made up of more than one physics outline.