Skip to main content

AndroidLightSettings

A class in Root.Township, the global namespace.

Global settings asset with a mesh and material used to fake point lights on Android (Quest) builds. Get it with GlobalSettings<AndroidLightSettings>.Instance.

Constructors​

MemberWhat it is
AndroidLightSettings()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

2 private and internal fields
MemberWhat it is
private Material lightMaterialMaterial put on the fake point light renderer.
private Mesh pointLightMeshMesh used for the fake point light.

Methods​

MemberWhat it is
static MeshRenderer InitializePointLight(GameObject target)Adds a MeshFilter and MeshRenderer with the configured mesh and material to the target and returns the renderer.