Skip to main content

PreventAtlas

A class in Root.Township, Alta.Utilities.Atlas.

Component that keeps renderers out of texture atlasing: the listed ones, or every child renderer when the list is empty.

Constructors​

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

Fields​

1 private and internal field
MemberWhat it is
private Renderer[] preventAtlasingOnRenderers to keep out of atlasing. Leave empty to cover all children.

Methods​

1 private and internal method
MemberWhat it is
private bool Alta.Utilities.Atlas.IPreventAtlasing.IsPreventAtlasing(Renderer renderer)True if the renderer is in the list, or always true when the list is empty.