Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Graphic.canvas

public Canvas canvas;

Description

A reference to the Canvas this Graphic is rendering to.

In the situation where the Graphic is used in a hierarchy with multiple Canvases, the Canvas closest to the root will be used.