Dev
Dev contains handy functions and attributes for developers.
Functions
Takes a screenshot and sets it as a thumbnail for the game.
Client.Action3 = function() Dev:SetGameThumbnail() end
Properties
True if the world is launched in developer mode and the local player is its author.
Displays all geometry objects (Shape, MutableShape or Mesh) bounding box when set to true, false by default.
It can be set to a geometry object or table of geometry objects to display the bounding boxes of these individual objects. Set the field back to false to turn it all off.
-- display the bounding box of a single shape Dev.DisplayBoxes = myShape -- display the bounding box of a collection of geometry objects Dev.DisplayBoxes = { myShape1, myMesh, myShape2 } -- turn everything OFF Dev.DisplayBoxes = false
Displays collision boxes when set to true, false by default.
It can be set to an object or table of objects to display the bounding boxes of these individual objects. Set the field back to false to turn it all off.
-- display the collider of a single object Dev.DisplayColliders = myObject -- display the collider of a collection of objects Dev.DisplayColliders = { myObject1, myObject2 } -- turn everything OFF Dev.DisplayColliders = false
Displays a framerate counter when set to true, false by default.
Dev.DisplayFPS = true