Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


HasParent()

Does this transform have a parent?
Read time 1 minuteLast updated 4 days ago

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.