Jump to content

Lua property: color picker


AggrorJorn
 Share

Recommended Posts

  • 6 months later...

Yes that works and your initial color will be 0,0,0,0 in the editor.... but...

 

 

If you do :

--Color
Script.Cool = Vec4(1,1,1,1)--Color
--Vec3
Script.Vec3Test = Vec3(1,0,0)--Vec3

 

Throws:

...: Attempt to call a non-callable object

 

Or if you try getting the value from your first example

 

SetColor(Vec4(Cool)) -- will result in same error

HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB

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...