Version (Property): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>JulienDethurens
No edit summary
>JulienDethurens
No edit summary
 
Line 1: Line 1:
{{Property
There are two Version properties:
|name = Version
|objects = {{type|instance=CoreGui}}, {{type|instance=GuiService}}
|description = A read-only version of the [[HUD]]. This number is automatically incremented every time the [[HUD]] undergoes a major change.
|type = int
}}


{{:{{FULLPAGENAME}}/CoreGui}}
{{clear floats}}
{{clear floats}}
{{:{{FULLPAGENAME}}/GuiService}}


{{Example|Get the HUD version via a LocalScript:
<code lua>
print(game:GetService("CoreGui").Version) --> 3
print(game:GetService("GuiService").Version) --> 1
</code>}}
[[Category:Properties]]
[[Category:Properties]]

Latest revision as of 07:27, 19 February 2012

There are two Version properties:

Version
Type int
Description The current version of the CoreGui. Everytime the CoreGui is majorly changed, this number is is increased.
Member of CoreGui
Version
Type int
Description The current version of the GuiService. Everytime the GuiService is majorly changed, this number is is increased.
Member of GuiService