Skip to content
This repository was archived by the owner on Mar 25, 2020. It is now read-only.

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:

  1. Create a folder structure with names from the settings in your Resource folder.
  2. Place Prefabs in corresponding folders that has to be processed by parser.
  3. 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 Static folder, it will be marked as static, and by default as NonWalkable.
  • If object is not in Static folder 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.

Clone this wiki locally