Documentation

Unity Engine

Download Unity

Unity Engine

Clone()

Creates a sampler that holds the same weights for the same rig, with its own memory.
Read time 1 minuteLast updated 4 hours ago

Definition

public WeightMaskSampler Clone()

Returns

Type

Description

WeightMaskSamplerThe new sampler. Dispose it when you finish with it. A default sampler if this sampler isn't created.

Remarks

The clone copies the weights of this sampler, so it's much faster than creating a sampler from a weight mask. It uses the allocator of this sampler. The clone doesn't share memory with this sampler. Dispose it separately. You can use the clone after you dispose this sampler.