FWeightedRandomSampler
Namespace: UAssetAPI.UnrealTypes
public class FWeightedRandomSampler : System.ICloneable, UAssetAPI.PropertyTypes.Objects.IStruct`1[[UAssetAPI.UnrealTypes.FWeightedRandomSampler]]
Inheritance Object → FWeightedRandomSampler
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
Clone()
public object Clone()
Returns
Read(AssetBinaryReader)
public static FWeightedRandomSampler Read(AssetBinaryReader reader)
Parameters
reader AssetBinaryReader
Returns
ToString()
public string ToString()
Returns
FromString(String[], UAsset)
public static FWeightedRandomSampler FromString(String[] d, UAsset asset)
Parameters
d String[]
asset UAsset