Skip to content

Commit

Permalink
script path
Browse files Browse the repository at this point in the history
  • Loading branch information
TomRuisseau committed Jul 18, 2024
1 parent 06e1d97 commit 0f43bfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Doc/Steps/props.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ To create a new prop prefab, the game object needs some mandatory components :
- **A mesh** : The visual representation of the prop.
- **Accurate colliders** : The colliders must be as close as possible to the mesh, to avoid overlapping with other props. They need to have ```SimObjPhysics``` as tag.
- **A box collider** : It will be used to check which nodes are containing the prop, it doesn't need to be accurate. However, it needs to be on the ```Ignore Raycast``` layer and to have the ```BoundingBox``` tag.
- **```props.cs``` script** : You need to attach this script to the prop, link the prop's perfab and the bounding box collider. You also need to set the prop's type from a list.
- **```PropsSpawner.cs``` script (optional)** : If the prop is a spawner, you need to attach this script to the prop. Then, link the list of prefabs to spawn, as well as the list of spawn points' transforms, and indicate the type of the prop.
- **```props.cs``` script** : You need to attach this script to the prop, link the prop's perfab and the bounding box collider. You also need to set the prop's type from a list. It is located in ```Assets/Scripts/Pro-Gen/Props```.
- **```PropsSpawner.cs``` script (optional)** : If the prop is a spawner, you need to attach this script to the prop. Then, link the list of prefabs to spawn, as well as the list of spawn points' transforms, and indicate the type of the prop. It is located in ```Assets/Scripts/Pro-Gen/Props```.

<div style="text-align: center;">
<img src="../../Img/Prefab_component.png" alt="Prefab components example" style="width:45%; margin:10px; vertical-align: top;">
Expand Down

0 comments on commit 0f43bfe

Please sign in to comment.