|
1 | 1 | --- |
2 | 2 | title: 3D workspace |
3 | | -description: Describes the workspace container service, which holds all objects that exist in the 3D world. |
| 3 | +description: >- |
| 4 | + Describes the workspace container service, which holds all objects that exist |
| 5 | + in the 3D world. |
4 | 6 | --- |
5 | | - |
6 | | -`Class.Workspace` is a container service that holds objects that you want the |
| 7 | +`Class.W` is a container service that holds objects that you want the |
7 | 8 | Roblox Engine to render in the 3D world. You typically will add these objects to |
8 | 9 | the workspace: |
9 | 10 |
|
10 | | -- `Class.BasePart` objects, which includes both `Class.Part` and `Class.MeshPart` objects. |
11 | | -- `Class.Attachment` objects, which you can attach to special effect generators like a `Class.ParticleEmitter`, UI objects like a `Class.BillboardGui`, physical `Class.Constraint|Constraints`, and more. |
12 | | -- `Class.Model` objects that organize geometric groupings. |
13 | | -- `Class.Script` objects that are parented by other objects in the workspace. |
| 11 | +* `Class.BasePart` objects, which includes both `Class.Part` and `Class.MeshPart` objects. |
| 12 | + |
| 13 | +* `Class.Attachment` objects, which you can attach to special effect generators like a `Class.ParticleEmitter`, UI objects like a `Class.BillboardGui`, physical `Class.Constraint|Constraints`, and more. |
| 14 | + |
| 15 | +* `Class.Model` objects that organize geometric groupings. |
| 16 | + |
| 17 | +* `Class.Script` o that are parented by other objects in the workspace. |
14 | 18 | Scripts aren't rendered but can affect another object's rendering. |
15 | 19 |
|
16 | 20 | ## Parts |
@@ -103,14 +107,18 @@ also contain scripts that act on the individual objects of the model. |
103 | 107 |
|
104 | 108 | Within a script, you can access a place's `Class.Workspace` in three different ways, all of which are valid. |
105 | 109 |
|
106 | | -- `game:GetService("Workspace")` |
107 | | -- `workspace` |
108 | | -- `game.Workspace` |
| 110 | +* `game:GetService("Workspace")` |
| 111 | + |
| 112 | +* `workspace` |
| 113 | + |
| 114 | +* `game.Workspace` |
109 | 115 |
|
110 | 116 | From there, you can carry out a large set of use cases to script logic for your |
111 | 117 | experiences and create dynamic worlds and interactions. For example: |
112 | 118 |
|
113 | | -- Obtain a reference to any object in the workspace to change its properties during runtime. |
114 | | -- Obtain a reference to a user's `Class.Camera` object to [manipulate their view](../workspace/camera.md) of the workspace. |
115 | | -- Listen for events on objects in the workspace to carry out |
| 119 | +* Obtain a reference to any object in the workspace to change its properties during runtime. |
| 120 | + |
| 121 | +* Obtain a reference to a user's `Class.Camera` object to [manipulate their view](../workspace/camera.md) of the workspace. |
| 122 | + |
| 123 | +* Listen for events on objects in the workspace to carry out |
116 | 124 | logic at specific times, such as when a user's playable character [touches an object](../workspace/collisions.md). |
0 commit comments