⚠ Preview docs — built from the develop branch and may be unstable. Go to the stable docs.

MatParamInfo.type

MaterialParam type

Description

This is the data type that StereoKit recognizes the parameter to be.

Examples

Listing parameters in a Material

// Iterate using a foreach
Log.Info("Builtin PBR Materials contain these parameters:");
foreach (MatParamInfo info in Material.PBR.GetAllParamInfo())
	Log.Info($"- {info.type,8}: {info.name}");

// Or with a normal for loop
Log.Info("Builtin Unlit Materials contain these parameters:");
for (int i=0; i<Material.Unlit.ParamCount; i+=1)
{
	MatParamInfo info = Material.Unlit.GetParamInfo(i);
	Log.Info($"- {info.type,8}: {info.name}");
}




Found an issue with these docs, or have some additional questions? Create an Issue on Github!