Function CanvasItem.getCanvas

Returns the RID of the World2D canvas where this item is in.

RID getCanvas() nothrow @nogc const;