GetClassName

This command can be used to identify the class of an unknown object.

Syntax

Returns

Returns the Object's class name.

Example

window = Window:Create()
context = Context:Create(window)
world = World:Create()
camera = Camera:Create()
directionallight = DirectionalLight:Create()
directionallight:SetRotation(35,45,0)

--Create a model
model = Model:Box()
model:SetPosition(0,0,3)

while true do
if window:Closed() or window:KeyHit(Key.Escape) then return false end

Time:Update()
world:Update()
world:Render()

context:SetBlendMode(Blend.Alpha)
context:DrawText(model:GetClassName(),2,2)
context:SetBlendMode(Blend.Solid)

context:Sync()
end