Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

MaterialEditor.GetMaterialProperty

static function GetMaterialProperty(mats: Object[], name: string): MaterialProperty;
static MaterialProperty GetMaterialProperty(Object[] mats, string name);
static def GetMaterialProperty(mats as Object[], name as string) as MaterialProperty
static function GetMaterialProperty(mats: Object[], propertyIndex: int): MaterialProperty;
static MaterialProperty GetMaterialProperty(Object[] mats, int propertyIndex);
static def GetMaterialProperty(mats as Object[], propertyIndex as int) as MaterialProperty

Parameters

matsSelected materials.
nameProperty name.
propertyIndexProperty index.

Description

Get information about a single shader property.