-
Notifications
You must be signed in to change notification settings - Fork 0
BaseFloorGenerator
Simon Su edited this page Sep 28, 2018
·
7 revisions
Can automatically generate an X by Y floor layout with transparent colliders which prevents GameObject (Player) from falling off the map.
- Must have an IsoSorting setup in the scene
- Add an empty GameObject (parent)
- Add BaseFloorGenerator script as a component to this game object
- Move the parent to desired position (children will be built using relative indexing to the parent (0, 0))
- Drag a prefab for the material of the floor into the Prefab field
- Edit the size of the floor and uncheck barriers if transparent colliders are not required
- Build object and rebuild when you change any fields in the editor for IsoTransform or BaseFloorGenerator components to update the scene (can test out different materials, sizes and positions)
If you want to use the Abstract Tiles package - it is in Isometric orientation whereas the Kenney package runs in Dimetric
When you make the Prefab
- Change Scaling for x to 1.04
- Change Scaling for y to 0.90
- Change Scaling for z to 1
- Add IsoCollider
- For Kenney package, don't change the scaling and add IsoCollider
Copyright © 24/7 Solutions. 2018. All Rights Reserved.
- 24/7 Solutions
- Game Elements
- Unity
- Administration