Build the game object hierarchy with meshes and materials from a DataSet and a MaterialData list.
More...
|
| static void | Solve (Mesh origMesh) |
| | Calculate tangent space vectors for a mesh. More...
|
| |
| static void | BuildMeshCollider (GameObject targetObject, bool convex=false, bool isTrigger=false, bool inflateMesh=false, float skinWidth=0.01f) |
| | Build mesh colliders for objects with a mesh filter. More...
|
| |
|
| bool | BuildNextObject (GameObject parentObj, Dictionary< string, Material > mats) |
| | Build an object once at a time, to be reiterated until false is returned. More...
|
| |
Build the game object hierarchy with meshes and materials from a DataSet and a MaterialData list.
◆ BuildMaterials()
Import materials step by step.
Call this until it returns false.
- Parameters
-
| info | Progress information to be updated |
- Returns
- Return true if in progress, false otherwise.
◆ BuildMeshCollider()
| static void AsImpL.ObjectBuilder.BuildMeshCollider |
( |
GameObject |
targetObject, |
|
|
bool |
convex = false, |
|
|
bool |
isTrigger = false, |
|
|
bool |
inflateMesh = false, |
|
|
float |
skinWidth = 0.01f |
|
) |
| |
|
static |
Build mesh colliders for objects with a mesh filter.
- Parameters
-
| targetObject | Game object to process (if it hasn't a mesh filter nothing happens) |
| convex | Build a convex mesh collider. |
| isTrigger | Set collider as "trigger" |
| inflateMesh | Inflate the convex mesh |
| skinWidth | Amout to be inflated |
◆ BuildNextObject()
| bool AsImpL.ObjectBuilder.BuildNextObject |
( |
GameObject |
parentObj, |
|
|
Dictionary< string, Material > |
mats |
|
) |
| |
|
protected |
Build an object once at a time, to be reiterated until false is returned.
- Parameters
-
| parentObj | Game object to which the new objects will be attached |
| mats | Materials from the previously loaded library |
- Returns
- Return true until no more objects can be added, then false.
◆ BuildObjectAsync()
| bool AsImpL.ObjectBuilder.BuildObjectAsync |
( |
ref ProgressInfo |
info | ) |
|
Build an object in more steps, one game object at a time.
Call StartBuildObjectAsync() once, then call this until it returns true.
- Parameters
-
| info | progress information data updated on each call |
- Returns
◆ InitBuildMaterials()
Initialize the importing of materials
- Parameters
-
| materialData | List of material data |
| hasColors | If true and materialData is null and vertex colors are available, then use them |
◆ Solve()
| static void AsImpL.ObjectBuilder.Solve |
( |
Mesh |
origMesh | ) |
|
|
static |
Calculate tangent space vectors for a mesh.
http://forum.unity3d.com/threads/how-to-calculate-mesh-tangents.38984/
- Parameters
-
| origMesh | Mesh to be filled with tangents |
TODO: move this to a general utility class?
◆ StartBuildObjectAsync()
| void AsImpL.ObjectBuilder.StartBuildObjectAsync |
( |
DataSet |
dataSet, |
|
|
GameObject |
parentObj, |
|
|
Dictionary< string, Material > |
materials = null |
|
) |
| |
Initialize the asynchronous objects building.
Call this once before calling StartBuildObjectAsync().
- Parameters
-
| dataSet | data set used to build the object |
| parentObj | game object to which the object will be attached |
| materials | dictionary mapping from materil name to material |
◆ buildOptions
◆ ImportedMaterials
| Dictionary<string, Material> AsImpL.ObjectBuilder.ImportedMaterials |
|
get |
Get the indexed list of imported materials
◆ MaterialFactory
◆ NumImportedMaterials
| int? AsImpL.ObjectBuilder.NumImportedMaterials |
|
get |
Get the number of imported materials or 0 if nothing has been imported.
◆ ShaderSelector
The documentation for this class was generated from the following file:
- F:/Unity3D/Projects/DATASET/AsImpL/Assets/AsImpL/Scripts/Dataset/ObjectBuilder.cs