文档

Unity Engine

Unity Engine

rootCanvas

Returns the Canvas closest to root, by checking through each parent and returning the last canvas found. If no other canvas is found then the canvas will return itself.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.UIModule
public Canvas rootCanvas { get; }

Remarks

Additional Resources: Canvas.isRootCanvas.