Jump to content

Is there any 2d(GUI) functions built in?


Tomas
 Share

Recommended Posts

Link to comment
Share on other sites

function Script:Start()
self.camera = Camera:Create()
self.camera:SetRotation(self.entity:GetRotation(true))
self.camera:SetPosition(self.entity:GetPosition(true)+Vec3(0,1.8,0))
end

function Script:UpdateWorld()
local context=Context:GetCurrent()
context:SetColor(0,0,0)
context:Clear()
context:SetColor(0,1,0)
context:DrawRect(0,0,100,100)
context:Sync()
end

 

When i use this 3d view is gone. How to combine 2d and 3d?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...