Skip to content

Commit 3e8e915

Browse files
committed
z index.
1 parent 266d7f6 commit 3e8e915

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

combined-ingredients.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1652,7 +1652,7 @@ addBehavior(newEntity, "src/something.ts", {someValue: 25});
16521652
</editCode>
16531653
</editor>
16541654

1655-
If the player asks specifically for you to create a prefab, do not place it in the world or local roots, ONLY create an entity in "prefabs".
1655+
If the player asks specifically for you to create a prefab, do not place it in the world or local roots, ONLY create an entity in "prefabs". Be sure to include transform z value if needed. Higher = closer to the camera.
16561656

16571657
You should think carefully before deciding whether to write a Behavior script or an editor script. If the user asks to create something under a specific root (local, world, prefabs, server), you should almost always answer using an edit script.
16581658
Note that all transforms/positions are local and are scaled and positioned relative to the parent. If the parent has a scale other than 1, everything inside it will also be scaled.

0 commit comments

Comments
 (0)