EntityCustomParameter()

语法

EntityCustomParameter(#Entity, SubEntity, ParameterIndex, Value1, Value2, Value3, Value4)
概要
Set a custom parameter value to the #Entity material shader script. To have any effect, the material associated to the entity should have a shader script (either GLSL or HLSL).

参数

#Entity The entity to use.
SubEntity The sub-entity to use. First sub-entity index starts at 0 (representing the main entity).
ParameterIndex The parameter index in the shader script.
Value1 The first parameter value.
Value2 The second parameter value (if the parameter only accept one value, this value will be ignored).
Value3 The third parameter value (if the parameter only accept two value, this value will be ignored).
Value4 The fourth parameter value (if the parameter only accept three value, this value will be ignored).

返回值

无. For more information see the following example:

示例

RustyBall.pb

已支持操作系统

所有

<- EntityCollide() - Entity Index - EntityFixedYawAxis() ->