Rtti

Every SC symbol or type has additional data, that can be obtained from a script. It can be done with rtti operator $. This operator provides an access to ISCSymbol interface for variables and functions and to ISCType interface for types. See built in types paragraph to see the description of these classes. There is also an example application ex_rtti.

Below an example that uses rtti mechanism to write information about the array. PrintInt function is used in many examples - prints a number and moves to the next line. At the output you should see tree '5', '15' and six '5'.


Vec3 ^^v = new Vec3[10][5];
v[3] = new Vec3[15];
for(Int j=0; j<($v).GetLength(); j++)
{
	PrintInt(($v[j]).GetLength());
}