MCPcopy Create free account
hub / github.com/StereoKit/StereoKit / SetInt

Method SetInt

StereoKit/Assets/Material.cs:402–403  ·  view source on GitHub ↗

Sets a shader parameter with the given name to the provided value. If no parameter is found, nothing happens, and the value is not set! Name of the shader parameter. New value for the parameter.

(string name, int value)

Source from the content-addressed store, hash-verified

400 /// <param name="name">Name of the shader parameter.</param>
401 /// <param name="value">New value for the parameter.</param>
402 public void SetInt(string name, int value)
403 => NativeAPI.material_set_int(_inst, name, value);
404
405 /// <summary>Sets a shader parameter with the given name to the
406 /// provided value. If no parameter is found, nothing happens, and

Callers 1

InitializeMethod · 0.80

Calls 4

material_set_intMethod · 0.80
material_set_int2Method · 0.80
material_set_int3Method · 0.80
material_set_int4Method · 0.80

Tested by 1

InitializeMethod · 0.64