setNeedsUpdate

open fun setNeedsUpdate(force: Boolean = false)

Flags the layer as dirty so that it is updated during the next render frame.

Parameters

force
  • Whether to force the layer to be updated even if it is not visible.