setParameter

fun setParameter(parameterName: String, value: Int)

Sets the value of an integer parameter by its name.

Parameters

parameterName

The name of the parameter to set.

value

The value to set for the parameter.

Throws

ResourceLoadingException

If the parameter value cannot be set.


fun setParameter(parameterName: String, value: Boolean)

Sets the value of a boolean parameter by its name.

Parameters

parameterName

The name of the parameter to set.

value

The value to set for the parameter.

Throws

ResourceLoadingException

If the parameter value cannot be set.


fun setParameter(parameterName: String, value: Float)

Sets the value of a float parameter by its name.

Parameters

parameterName

The name of the parameter to set.

value

The value to set for the parameter.

Throws

ResourceLoadingException

If the parameter value cannot be set.


fun setParameter(parameterName: String, value: Color3)

Sets the value of a color3 parameter by its name.

Parameters

parameterName

The name of the parameter to set.

value

The value to set for the parameter.

Throws

ResourceLoadingException

If the parameter value cannot be set.


fun setParameter(parameterName: String, value: Color4)

Sets the value of a color4 parameter by its name.

Parameters

parameterName

The name of the parameter to set.

value

The value to set for the parameter.

Throws

ResourceLoadingException

If the parameter value cannot be set.


fun setParameter(parameterName: String, value: Vector2)

Sets the value of a vector2 parameter by its name.

Parameters

parameterName

The name of the parameter to set.

value

The value to set for the parameter.

Throws

ResourceLoadingException

If the parameter value cannot be set.


fun setParameter(parameterName: String, value: Vector3)

Sets the value of a vector3 parameter by its name.

Parameters

parameterName

The name of the parameter to set.

value

The value to set for the parameter.

Throws

ResourceLoadingException

If the parameter value cannot be set.


fun setParameter(parameterName: String, value: Vector4)

Sets the value of a vector4 parameter by its name.

Parameters

parameterName

The name of the parameter to set.

value

The value to set for the parameter.

Throws

ResourceLoadingException

If the parameter value cannot be set.


fun setParameter(parameterName: String, value: Matrix3)

Sets the value of a matrix3 parameter by its name.

Parameters

parameterName

The name of the parameter to set.

value

The value to set for the parameter.

Throws

ResourceLoadingException

If the parameter value cannot be set.


fun setParameter(parameterName: String, value: Matrix4)

Sets the value of a matrix4 parameter by its name.

Parameters

parameterName

The name of the parameter to set.

value

The value to set for the parameter.

Throws

ResourceLoadingException

If the parameter value cannot be set.


fun setParameter(parameterName: String, value: TextureResource)

Sets the value of a texture resource parameter by its name.

Parameters

parameterName

The name of the parameter to set.

value

The value to set for the parameter.

Throws

ResourceLoadingException

If the parameter value cannot be set.