-
class Drawable:
Component
¶ Represents the visual for an actor. Used by Spectrum and Geometer to render actors.
-
index:
string
|integer
¶ an index into a SpriteAtlas
-
size:
integer
¶
-
__new(
self:Drawable
,
index:string
|integer
|DrawableOptions
,
color?:Color4
,
background?:Color4
,
layer?:integer
,
size?:integer
)¶ Index needs to be a string associated with a sprite in the SpriteAtlas, or an integer index associated with a sprite.
-
layer:
integer
¶
Other members:
Inherited from
Component
:checkRequirements()
,getBase()
,getRequirements()
,owner
,requirements
Inherited from
Object
:_serializationBlacklist
,adopt()
,assertType()
,className
,deserialize()
,extend()
,instanceOf()
,is()
,isInstance()
,mixin()
,prettyprint()
,serializationBlacklist
,serialize()
-
index: