Get RAPTOR

RaptorSuiteModelVariant

Creates a variant copy of a model (Duplicate as variant).

NamespaceAssemblyKindStability
Raptor.EditorToolsRaptor.Editorclasspreview, since 0.1.0

Only the two lightmap hooks are supported API.

public static class RaptorSuiteModelVariant

Fields

DetachLightmapGroups

public static Action<GameObject> DetachLightmapGroups;

Clears every lightmap group under the copy, so the variant does not render into the original's group before its first bake. When null, the default, this step is skipped.

One provider at a time. The last assignment wins.

HealLightmapBindings

public static Func<int> HealLightmapBindings;

Reapplies each room's directional lightmaps after a copy brings its lightmap storage with it. When null, the default, this step is skipped.

One provider at a time. The last assignment wins.

Methods

Numbered

public static string Numbered(string stem, Func<string, bool> taken)

Gets the first free name formed from stem plus 01, 02 and so on.

ParameterTypeDescription
stemstringThe start of the name.
takenFunc<string, bool>The test for a taken name.

Returns: The first free name.