An abstract class in Alta.Build, the global namespace.
Base for components that bake renderer setup at build time and then remove themselves. BakeBuildBakeables runs them; StaticObjectCombiner calls it.
- Listed in Other Alta assemblies
- Inherits or implements
MonoBehaviour, IBuildRendererBakeable, IBuildBakeable
- Derived types
SkinnedMeshPlatformQualityController, FlattenAndCleanEmptyAtBakeTime, ForcedAtlasDefinition, MeshColorBaker, PlatformComponents, PlatformDistanceLODModifier, PlatformLODController, PlatformLODModifier, PlatformMeshController, PlatformObjects
Constructors
| Member | What it is |
|---|
protected BuildRendererBakeable() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
1 private and internal field
| Member | What it is |
|---|
private static Logger logger | NLog logger for this class. |
Properties
| Member | What it is |
|---|
virtual int SortingOrder { get; } | Bake order; lower goes first (1 by default). |
Methods
| Member | What it is |
|---|
abstract void Bake(bool isSaving) | Does this component's bake. Implemented by subclasses. |
static void BakeBuildBakeables(GameObject target, bool isSaving) | Unpacks the target's prefabs, bakes every IBuildRendererBakeable under it in SortingOrder (removing each after), then runs post-bake hooks. |
1 private and internal method
| Member | What it is |
|---|
private void IBuildRendererBakeable.Clean() | Destroys this component after baking. |