Skip to main content

BuildRendererBakeable

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.

Constructors​

MemberWhat it is
protected BuildRendererBakeable()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

1 private and internal field
MemberWhat it is
private static Logger loggerNLog logger for this class.

Properties​

MemberWhat it is
virtual int SortingOrder { get; }Bake order; lower goes first (1 by default).

Methods​

MemberWhat 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
MemberWhat it is
private void IBuildRendererBakeable.Clean()Destroys this component after baking.