Object Browser: Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Mindraker
mNo edit summary
>GoldenUrg
Added description from xLEGOx forum post
Line 1: Line 1:
The object browser shows all of the [http://wiki.roblox.com/index.php?title=Category:ROBLOX_Lua_Objects Roblox Lua Objects].  It shows what their [[Properties|properties]] are and whether they are [http://www.fipa.org/specifications/preliminarystatus.html preliminary] or are [http://www.fipa.org/specifications/deprecatedstatus.html deprecated].  You can access the Object Browser by going to Help > Object Browser, in [[Roblox Studio]].  Items in <i>italics</i> are preliminary, under development, and are likely to change. Use only for experimental work.
The object browser shows all of the [http://wiki.roblox.com/index.php?title=Category:ROBLOX_Lua_Objects Roblox Lua Objects].  It shows what their [[Properties|properties]] are and whether they are [http://www.fipa.org/specifications/preliminarystatus.html preliminary] or are [http://www.fipa.org/specifications/deprecatedstatus.html deprecated].


[[Image:Object_Browser.JPG]]
[[Image:Object_Browser.JPG]]


[[RBX.lua.Accoutrement (Object)|Accoutrement]]<br>
==Usage==
[[RBX.lua.Authoring (Object)|Authoring]]<br>
You can access the Object Browser by going to Help > Object Browser, in [[Roblox Studio]].
[[RBX.lua.Backpack (Object)|<i>Backpack</i>]]<br>
 
[[RBX.lua.BackpackItem (Object)|<i>BackpackItem</i>]]<br>
Doing this should cause a new tab to come up in studio, it's the Object Browser. In the left panel, you should see a list of objects, this is all of the classes, and enums that are available in Roblox. The top things are classes, like Part, or Script, and the ones at the end of the list, with a different symbol are "Enums", like FormFactor or Shape.  
[[RBX.lua.BodyAngularVelocity|BodyAngularVelocity]]<br>
 
[[RBX.lua.BodyColors (Object)|<i>BodyColors</i>]]<br>
For example, take the class "Part". Scroll down in the right panel and find it, then click on it. In the center panel you should now have a list of various things. The things with a purple box next to them are [[methods]], you should find the methods you would expect here for a part, such as "MakeJoints", as well as the methods like "FindFirstChild" and "Clone".  
[[RBX.lua.BodyForce (Object)|BodyForce]]<br>
 
[[RBX.lua.BodyGyro (Object)|BodyGyro]]<br>
After the methods, you'll find the "Properties", they have Blue box symbols next to them. These are things that you can set using ".". For a part you'd find what you would expect, just like for methods. "Position", "Size", "BrickColor", and some global properties like "Name" and "Parent".  
[[RBX.lua.BodyPosition (Object)|BodyPosition]]<br>
 
[[RBX.lua.BodyThrust (Object)|BodyThrust]]<br>
Scroll down and find "Shape" in the properties, click on it. In the bottom frame "PartType Shape
[[RBX.lua.BodyVelocity (Object)|BodyVelocity]]<br>
Member of Part"
[[RBX.lua.BoolValue (Object)|BoolValue]]<br>
Should come up. "PartType" is what kind of value Shape is, it's not a basic type, so you can infer that it's an Enum. What kinds of values can this have? You can use the object browser for this too.  
[[RBX.lua.BrickColorValue (Object)|BrickColorValue]]<br>
 
[[RBX.lua.Camera (Object)|Camera]]<br>
The enum's type is "PartType", so scroll down to the bottom of the list in the left panel, and find "PartType". Click it, this should come up in the main frame:
[[RBX.lua.ChangeHistoryService (Service)|ChangeHistoryService]]<br>
-Ball
[[RBX.lua.ClickDetector|<i>ClickDetector</i>]]<br>
-Block
[[RBX.lua.Clothing (Object)|<i>Clothing</i>]]<br>
-Cylinder
[[RBX.lua.Color3Value (Object)|Color3Value]]<br>
Lets say you want to set the Shape of an object to be a ball, so now click on "Ball". This should come up in the bottom panel:
[[RBX.lua.ContentProvider (Object)|ContentProvider]]<br>
0: Ball
[[RBX.lua.ControllerService (Service)|ControllerService]]<br>
This tells you that assigning a part's shape to be equal to 0 in a script will make it have the shape PartType::Ball.  
[[RBX.lua.DataModel (Service)|DataModel]]<br>
 
[[RBX.lua.Debris (Service)|Debris]]<br>
Last but not least, you can look up events in the object browser too. Go back an select "Part" again in the left panel. Now scroll down in the main panel to the things with the lightening bolt symbols next to them, these are the events which you can use with the object. As you would expect, you can find the "Touched" event since we're looking at Part. Clicking on the event will show you in the bottom panel, what arguments a function connected to the event will have passed to it. (See also [[Event]])
[[RBX.lua.Decal (Object)|Decal]]<br>
 
[[RBX.lua.Explosion (Object)|<i>Explosion</i>]]<br>
This can be very useful when you don't know the name of a property, need to look up what the value you want for an enum is, or what the arguments of an event are, you can simply look them up in the object browser.
[[RBX.lua.Feature (Object)|Feature]]<br>
 
[[RBX.lua.Flag (Object)|Flag]]<br>
Items in <i>italics</i> are preliminary, under development, and are likely to change. Use only for experimental work.
[[RBX.lua.FlagStand (Object)|FlagStand]]<br>
[[RBX.lua.FlagStandService (Service)|FlagStandService]]<br>
[[RBX.lua.ForceField (Object)|<i>ForceField</i>]]<br>
[[RBX.lua.Geometry (Object)|Geometry]]<br>
[[RBX.lua.Glue (Object)|Glue]]<br>
[[RBX.lua.Hat (Object)|Hat]]<br>
[[RBX.lua.Hint (Object)|Hint]]<br>
[[RBX.lua.Hole (Object)|<i>Hole</i>]]<br>
[[RBX.lua.HopperBin (Object)|HopperBin]]<br>
[[RBX.lua.Humanoid (Object)|<i>Humanoid</i>]]<br>
[[RBX.lua.IntValue (Object)|IntValue]]<br>
[[RBX.lua.JointInstance (Object)|<i>JointInstance</i>]]<br>
[[RBX.lua.Lighting (Object)|Lighting]]<br>
[[RBX.lua.Lighting (Object)|LocalBackpack]]<br>
[[RBX.lua.LocalBackpackItem (Object)|LocalBackpackItem]]<br>
[[RBX.lua.LocalScript (Object)|<i>LocalScript</i>]]<br>
[[RBX.lua.Message (Object)|Message]]<br>
[[RBX.lua.Model (Object)|Model]]<br>
[[RBX.lua.Motor (Object)|<i>Motor</i>]]<br>
[[RBX.lua.MotorFeature (Object)|MotorFeature]]<br>
[[RBX.lua.Mouse (Object)|Mouse]]<br>
[[RBX.lua.NetworkClient (Service)|NetworkClient]]<br>
[[RBX.lua.NetworkMarker (Service)|NetworkMarker]]<br>
[[RBX.lua.NetworkReplicator (Service)|NetworkReplicator]]<br>
[[RBX.lua.NetworkServer (Service)|NetworkServer]]<br>
[[RBX.lua.NumberValue (Object)|NumberValue]]<br>
[[RBX.lua.ObjectValue (Object)|ObjectValue]]<br>
[[RBX.lua.Pants (Object)|<i>Pants</i>]]<br>
[[RBX.lua.Part (Object)|Part]]<br>
[[RBX.lua.PhysicsService (Service)|PhysicsService]]<br>
[[RBX.lua.Player (Object)|Player]]<br>
[[RBX.lua.Players (Service)|Players]]<br>
[[RBX.lua.ProfilingItem (Object)|ProfilingItem]]<br>
[[RBX.lua.RocketPropulsion (Object)|<i>RocketPropulsion</i>]]<br>
[[RBX.lua.Rotate (Object)|Rotate]]<br>
[[RBX.lua.RotateP (Object)|RotateP]]<br>
[[RBX.lua.RotateV (Object)|RotateV]]<br>
[[RBX.lua.RunService (Service)|RunService]]<br>
[[RBX.lua.Script (Object)|Script]]<br>
[[RBX.lua.ScriptContext (Service)|ScriptContext]]<br>
[[RBX.lua.Seat (Object)|<i>Seat</i>]]<br>
[[RBX.lua.Selection (Service)|Selection]]<br>
[[RBX.lua.Shirt (Object)|<i>Shirt</i>]]<br>
[[RBX.lua.ShirtGraphic (Object)|ShirtGraphic]]<br>
[[RBX.lua.Skin (Object)|<i>Skin</i>]]<br>
[[RBX.lua.Sky (Object)|Sky]]<br>
[[RBX.lua.Snap (Object)|Snap]]<br>
[[RBX.lua.Sound (Object)|Sound]]<br>
[[RBX.lua.SoundService (Service)|SoundService]]<br>
[[RBX.lua.Sparkles (Object)|<i>Sparkles</i>]]<br>
[[RBX.lua.SpawnLocation (Object)|Spawnlocation]]<br>
[[RBX.lua.SpawnerService (Service)|SpawnerService]]<br>
[[RBX.lua.SpecialMesh (Object)|SpecialMesh]]<br>
[[RBX.lua.StarterPack (Object)|<i>StarterPack</i>]]<br>
[[RBX.lua.Stats (Object)|Stats]]<br>
[[RBX.lua.StatsItem (Object)|StatsItem]]<br>
[[RBX.lua.StringValue (Object)|StringValue]]<br>
[[RBX.lua.Team (Object)|Team]]<br>
[[RBX.lua.Teams (Service)|Teams]]<br>
[[RBX.lua.Texture (Object)|Texture]]<br>
[[RBX.lua.Timer (Service)|Timer]]<br>
[[RBX.lua.Tool (Object)|<i>Tool</i>]]<br>
[[RBX.lua.Vector3Value (Object)|Vector3Value]]<br>
[[RBX.lua.VelocityMotor (Object)|VelocityMotor]]<br>
[[RBX.lua.Weld (Object)|Weld]]<br>
[[RBX.lua.Workspace (Service)|Workspace]]<br>


[[AASamples (Enum)|AASamples]]<br>
[[Antialiasing (Enum)|Antialiasing]]<br>
[[AssertAction (Enum)|AssertAction]]<br>
[[Bevels (Enum)|Bevels]]<br>
[[BinType (Enum)|Bintype]]<br>
[[CameraType (Enum)|CameraType]]<br>
[[ControllerType (Enum)|ControllerType]]<br>
[[EnvironmentalPhysicsThrottle (Enum)|EnvironmentalPhysicsThrottle]]<br>
[[ErrorReporting (Enum)|ErrorReporting]]<br>
[[FormFactor (Enum)|FormFactor]]<br>
[[Framerate Manager (Enum)|Framerate Manager]]<br>
[[GraphicsMode (Enum)|GraphicsMode]]<br>
[[InOut (Enum)|InOut]]<br>
[[InputType (Enum)|InputType]]<br>
[[LeftRight (Enum)|LeftRight]]<br>
[[MeshType (Enum)|MeshType]]<br>
[[NormalId (Enum)|NormalId]]<br>
[[PacketReliability (Enum)|PacketReliability]]<br>
[[PartType (Enum)|PartType]]<br>
[[PhysicsReceiveMethod (Enum)|PhysicsReceiveMethod]]<br>
[[PhysicsSendMethod (Enum)|PhysicsSendMethod]]<br>
[[ReverbType (Enum)|ReverbType]]<br>
[[Shadow (Enum)|Shadow]]<br>
[[SoundType (Enum)|SoundType]]<br>
[[SurfaceType (Enum)|SurfaceType]]<br>
[[TopBottom (Enum)|TopBottom]]<br>
==See Also==
==See Also==



Revision as of 03:21, 27 April 2010

The object browser shows all of the Roblox Lua Objects. It shows what their properties are and whether they are preliminary or are deprecated.

Usage

You can access the Object Browser by going to Help > Object Browser, in Roblox Studio.

Doing this should cause a new tab to come up in studio, it's the Object Browser. In the left panel, you should see a list of objects, this is all of the classes, and enums that are available in Roblox. The top things are classes, like Part, or Script, and the ones at the end of the list, with a different symbol are "Enums", like FormFactor or Shape.

For example, take the class "Part". Scroll down in the right panel and find it, then click on it. In the center panel you should now have a list of various things. The things with a purple box next to them are methods, you should find the methods you would expect here for a part, such as "MakeJoints", as well as the methods like "FindFirstChild" and "Clone".

After the methods, you'll find the "Properties", they have Blue box symbols next to them. These are things that you can set using ".". For a part you'd find what you would expect, just like for methods. "Position", "Size", "BrickColor", and some global properties like "Name" and "Parent".

Scroll down and find "Shape" in the properties, click on it. In the bottom frame "PartType Shape Member of Part" Should come up. "PartType" is what kind of value Shape is, it's not a basic type, so you can infer that it's an Enum. What kinds of values can this have? You can use the object browser for this too.

The enum's type is "PartType", so scroll down to the bottom of the list in the left panel, and find "PartType". Click it, this should come up in the main frame: -Ball -Block -Cylinder Lets say you want to set the Shape of an object to be a ball, so now click on "Ball". This should come up in the bottom panel: 0: Ball This tells you that assigning a part's shape to be equal to 0 in a script will make it have the shape PartType::Ball.

Last but not least, you can look up events in the object browser too. Go back an select "Part" again in the left panel. Now scroll down in the main panel to the things with the lightening bolt symbols next to them, these are the events which you can use with the object. As you would expect, you can find the "Touched" event since we're looking at Part. Clicking on the event will show you in the bottom panel, what arguments a function connected to the event will have passed to it. (See also Event)

This can be very useful when you don't know the name of a property, need to look up what the value you want for an enum is, or what the arguments of an event are, you can simply look them up in the object browser.

Items in italics are preliminary, under development, and are likely to change. Use only for experimental work.

See Also

Class reference

Wikipedia -- Deprecation

ShowDepricatedObjects

ShowPreliminaryObjects