Skip to content

SelectorPairData

Value struct

Class Documentation

Edit documentation

One child of a SelectorClipData, and how likely the selector is to pick it.

Properties

mClipName

Hash = "0x0"
Edit documentation

The child clip, as a key of AnimationGraphData.mClipDataMap.

mProbability

F32 = 0
Edit documentation

The weight of this child in the random pick. Weights are relative: the chance of a child is its weight divided by the sum of all weights of the list. The weights do not have to add up to 1 or to 100.

When every weight of the list is 0, the selector always picks the first entry.

Examples:
  • 50, 30 and 20 give 50%, 30% and 20%. 1, 1 and 1 give one third each.

Referenced by 1 class · 1 property