The SetCombo
method in the CommandList
class is used to set a combination value for a specific rendering token. This method is part of the rendering command list, which is used to manage and execute rendering commands in the Sandbox engine.
The SetCombo
method in the CommandList
class is used to set a combination value for a specific rendering token. This method is part of the rendering command list, which is used to manage and execute rendering commands in the Sandbox engine.
To use the SetCombo
method, you need to have an instance of the CommandList
class. You will also need a StringToken
that identifies the specific rendering parameter you want to set, and an integer value that represents the combination value you wish to assign to that token.
Here is how you can use the SetCombo
method:
CommandList
instance.StringToken
for the rendering parameter you want to modify.SetCombo
method with the token and the desired integer value.// Example of using SetCombo method CommandList commandList = new CommandList(); StringToken myToken = new StringToken("MyRenderParameter"); int comboValue = 5; // Set the combo value for the specified token commandList.SetCombo(myToken, comboValue);