OpBase
Client
Server
Base class for the Vox operation builders (OpAdd, OpRemove, OpPaint, OpCopy, …). You don't use it directly — its chain methods (Force, Ignore, OnFinished, Run, …) are inherited by all of them. See Vox for the usage pattern.
Methods
OpBase Target(opTarget target)
Set the target shape/object(s) for this operation. Updates the cached VoxelEdit shape in-place if already built.
nil OnFinished(function onFinished)
Callback function. OnFinished is called after OnProgress if it was last part
nil OnProgress(fun onProgress)
Callback function. May not be called every frame. Is called after script updates