AdditionalStaticContent.StaticContent
A private class in Root.Township, the global namespace. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.
One prefab entry in AdditionalStaticContent, with the local position, rotation and scale it is spawned at.
Constructors
Fields
5 private and internal fields
| Member | What it is |
|---|
private bool isVisualOnly | When true, the spawned copy is not marked for script-assigned static batching in the editor. |
private Vector3 localPosition | Local position the prefab is spawned at. |
private Quaternion localRotation | Local rotation the prefab is spawned at. |
private Vector3 localScale | Local scale the prefab is spawned at. |
private GameObject prefab | The prefab to spawn. |
Methods
| Member | What it is |
|---|
Transform InstantiateContent(Transform parent) | Spawns the prefab under the parent at the stored transform. In the editor it adds or removes the static batching marker. |
bool IsEquals(GameObject prefab) | True if this entry uses the given prefab. |
bool Validate() | Resets the transform to identity if the scale is about zero, and returns whether it did. |
1 private and internal method
| Member | What it is |
|---|
private bool IsApproxZeroScale() | True when the stored scale is about zero. |
Used in
Members of other types that take, return or hold a StaticContent: