文档

Unity Engine

Unity Engine

HasParent()

Does this transform have a parent?
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public bool HasParent()

Returns

Type

Description

boolTrue if the TransformHandle has a parent.

Remarks

Returns a boolean value that indicates whether the transform has a parent or not.