Google.Maps.Event.AlphaMapsNeedPaintArgs

Event arguments for AlphaMapsNeedPaint events.

Summary

Constructors and Destructors

AlphaMapsNeedPaintArgs(UnityTerrain terrain, RenderTexture featureMaskRenderTexture, Action< Action > registerFinalizer)
Constructor.

Public attributes

FeatureMaskRenderTexture
readonly RenderTexture
RenderTexture containing the feature mask. Provided to the handler by the SDK.
PaintingCoroutine = null
IEnumerator
Coroutine to paint the alpha maps. Will be stepped to completion or until painting needs to be aborted. Should be initialized in the event handler by the user of the SDK.
RegisterFinalizer
readonly Action< Action >
Finalizer to be executed when either the coroutine has finished executing or painting is aborted. Should be used by the event handler and coroutine to ensure that any resources created for painting are cleaned up correctly.
Terrain
readonly UnityTerrain
UnityTerrain component whose alpha maps need painting. Provided to handler by the SDK.

Public attributes

FeatureMaskRenderTexture

readonly RenderTexture FeatureMaskRenderTexture

RenderTexture containing the feature mask. Provided to the handler by the SDK.

PaintingCoroutine

IEnumerator PaintingCoroutine = null

Coroutine to paint the alpha maps. Will be stepped to completion or until painting needs to be aborted. Should be initialized in the event handler by the user of the SDK.

RegisterFinalizer

readonly Action< Action > RegisterFinalizer

Finalizer to be executed when either the coroutine has finished executing or painting is aborted. Should be used by the event handler and coroutine to ensure that any resources created for painting are cleaned up correctly.

Terrain

readonly UnityTerrain Terrain

UnityTerrain component whose alpha maps need painting. Provided to handler by the SDK.

Public functions

AlphaMapsNeedPaintArgs

 AlphaMapsNeedPaintArgs(
  UnityTerrain terrain,
  RenderTexture featureMaskRenderTexture,
  Action< Action > registerFinalizer
)

Constructor.