-
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 the desired position (children will be built using relative indexing to the parent (0, 0), so SizeX = 0, SizeZ = 0 will actually build a single block at the parent's location as it can do both positive and negative indexing)
- 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)
When you make the Prefab
If you want to use the Abstract Tiles package - it is in Isometric orientation whereas the Kenney package runs in Dimetric
- 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