void SetCombo( StringToken token, int value )
void SetCombo( StringToken token, T t )

robot_2Generated
code_blocksInput

Description

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.

Usage

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:

  1. Create or obtain a CommandList instance.
  2. Identify the StringToken for the rendering parameter you want to modify.
  3. Call the SetCombo method with the token and the desired integer value.

Example

// 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);