This repository was archived by the owner on Mar 25, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
PrefabTools
pointcache edited this page Jan 15, 2017
·
5 revisions
#Prefab Parser PrefabTools are integrated solution to automate asset organization and import. It is a simple set of scripts that:
- Uses PrefabType script to identify assets in scene
- Uses folder structure specified in PrefabToolsSettings to assign PrefabType script. (automated)
- Uses asset Type to organize entities in the scene, moving them in corresponding GameObjects
- Creates LevelStructure from code.
##Usage To make use of PrefabParser you must first setup the settings.
How this works:
- Create a folder structure with names from the settings in your Resource folder.
- Place Prefabs in corresponding folders that has to be processed by parser.
- Use URSAMenu
Prefabs/Parse Prefabs, it will automatically assign correct PrefabType based on the folder the prefab is in, and change prefab as described below:
Folder paths are relative to Resources folder
- If the prefab is in
Staticfolder, it will be marked as static, and by default asNonWalkable. - If object is not in
Staticfolder it will be unflagged as static. - If object has NavMeshArea , it will override default walkable settings, this script can be added to individual children
- If object has NavmeshIgnore script the object will not be marked as NavmeshStatic, this script can be added to individual children
So use these scripts manually to quickly setup your objects.
#LevelStructure
It is a set of scripts to streamline standard level organization. It makes use of PrefabType to determine where to parent objects in scene. It makes use of code created level structure.
##Usage
First create a level structure in scene using URSAMenuLevels/Create Level Structure
Press URSAMenu Levels/Organize Level when you drop prefabs in your scene that were parsed by Prefab Parser.



