Version:

Levels Gradient Modifier 组件

Levels Gradient Modifier 组件修改输入梯度的高、中、低值,并设置输出梯度的最小值和最大值。

提供方

Gradient Signal Gem

Levels Gradient Modifier 属性

Levels Gradient Modifier component properties

属性说明默认值
Preview显示该组件应用所有属性后的输出渐变效果。
Pin Preview to Shape设置一个具有兼容形状组件的实体,以便在Constrain to ShapeEnabled时用作预览的边界。EntityIdCurrent Entity
Preview Position设置预览的世界位置。

只有在Pin Preview to Shape中未选择实体时,该字段才可用。
Vector3: -Infinity to InfinityX:0.0, Y:0.0, Z:0.0
Preview Size设置预览的尺寸。Vector3: 0.0 to InfinityX:1.0, Y:1.0, Z:1.0
Constrain to Shape如果Enabled,渐变预览将使用在Pin Preview to Shape中选择的实体的边界。

此字段仅在Pin Preview to Shape中选择了实体时可用。
BooleanDisabled
Input Mid设置输入梯度的中值。Float: 0.0 - 1.01.0
Input Min设置输入梯度的最小值。Float: 0.0 - 1.00.0
Input Max设置输入梯度的最大值。Float: 0.0 - 1.01.0
Output Min设置输出梯度的最小值。Float: 0.0 - 1.00.0
Output Max设置输出梯度的最大值。.Float: 0.0 - 1.01.0
Gradient请参阅下方的 Gradient 属性

Gradient properties

Gradient properties

属性说明默认值
Gradient Entity Id设置具有活动 Gradient 组件的实体。EntityIdNone
OpacitySets the opacity of the input gradient.Float: 0.0 - 1.01.0
Invert Input反转输入梯度的值。BooleanDisabled
Preview (Input)显示由 Gradient Entity Id 中设置的实体提供的渐变。
Enable Transform如果Enabled,则可以修改输入梯度的平移、缩放和旋转。BooleanDisabled
Translate设置输入梯度的平移。Vector3: -Infinity to InfinityX:0.0, Y:0.0, Z:0.0
Scale设置输入梯度的比例。Vector3: 0.0001 to InfinityX:1.0, Y:1.0, Z:1.0
Rotate设置输入梯度的旋转角度。Vector3: -Infinity to InfinityX:0.0, Y:0.0, Z:0.0
Enable Levels如果Enabled,则可以修改输入梯度的输入值和输出值。BooleanDisabled
Input Mid设置输入梯度的中值。Float: 0.0 - 1.01.0
Input Min设置输入梯度的最小值。Float: 0.0 - 1.00.0
Input Max设置输入梯度的最大值。Float: 0.0 - 1.01.0
Output Min设置输出梯度的最小值。Float: 0.0 - 1.00.0
Output Max设置输出梯度的最大值。Float: 0.0 - 1.01.0

LevelsGradientRequestBus

使用以下带有LevelsGradientRequestBus EBus 接口的请求函数与游戏中的 Levels Gradient Modifier组件进行通信。

方法名称说明参数返回值可脚本化
GetGradientSampler返回反转梯度的梯度采样器对象。NoneGradient SamplerYes
GetInputMax返回 Input Max的值。NoneMax: FloatYes
GetInputMid返回 Input Mid的值。NoneMid: FloatYes
GetInputMin返回 Input Min的值。NoneMin: FloatYes
GetOutputMax返回 Output Max的值。NoneMax: FloatYes
GetOutputMin返回 Output Min的值。NoneMin: FloatYes
SetInputMax设置 Input Max的值。Max: FloatNoneYes
SetInputMid设置 Input Mid的值。Mid: FloatNoneYes
SetInputMin设置 Input Min的值。Min: FloatNoneYes
SetOutputMax设置 Output Max的值。Max: FloatNoneYes
SetOutputMin设置 Output Min的值。Min: FloatNoneYes