Python Script Engine  8.2
GL Studio Editor Python Script API
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
MaterialArray Class Reference

Public Member Functions

 MaterialArray ()
 
void Insert (disti::Material &mat)
 
unsigned int GetCount () const
 

Detailed Description

Common editor interface MaterialArray.

If the MaterialArray instance is empty, it will return 'False' in comparison checks.

# Python:
import MaterialArray
materialArray = MaterialArray.MaterialArray()
if materialArray: # Will be False
pass
materialArray.Insert( someMaterial )
if materialArray: # Will be True
pass
MaterialArray()
default ctor

Constructor & Destructor Documentation

◆ MaterialArray()

MaterialArray::MaterialArray ( )

default ctor

Member Function Documentation

◆ GetCount()

unsigned int MaterialArray::GetCount ( ) const

get the number of elements in the array

Returns
the number of elements in the array

◆ Insert()

void MaterialArray::Insert ( disti::Material &  mat)

insert the given material at the end of the array

Parameters
matmaterial to insert

The documentation for this class was generated from the following file: