FWeightedRandomSampler

Namespace: UAssetAPI.UnrealTypes

public class FWeightedRandomSampler : System.ICloneable, UAssetAPI.PropertyTypes.Objects.IStruct`1[[UAssetAPI.UnrealTypes.FWeightedRandomSampler]]

Inheritance ObjectFWeightedRandomSampler
Implements ICloneable, IStruct<FWeightedRandomSampler>

Fields

Prob

public Single[] Prob;

Alias

public Int32[] Alias;

TotalWeight

public float TotalWeight;

Constructors

FWeightedRandomSampler()

public FWeightedRandomSampler()

FWeightedRandomSampler(Single[], Int32[], Single)

public FWeightedRandomSampler(Single[] prob, Int32[] alias, float totalWeight)

Parameters

prob Single[]

alias Int32[]

totalWeight Single

FWeightedRandomSampler(AssetBinaryReader)

public FWeightedRandomSampler(AssetBinaryReader reader)

Parameters

reader AssetBinaryReader

Methods

Write(AssetBinaryWriter)

public int Write(AssetBinaryWriter writer)

Parameters

writer AssetBinaryWriter

Returns

Int32

Clone()

public object Clone()

Returns

Object

Read(AssetBinaryReader)

public static FWeightedRandomSampler Read(AssetBinaryReader reader)

Parameters

reader AssetBinaryReader

Returns

FWeightedRandomSampler

ToString()

public string ToString()

Returns

String

FromString(String[], UAsset)

public static FWeightedRandomSampler FromString(String[] d, UAsset asset)

Parameters

d String[]

asset UAsset

Returns

FWeightedRandomSampler