Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

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

MaterialEditor.GetMaterialProperty

Switch to Manual
public static function GetMaterialProperty(mats: Object[], name: string): MaterialProperty;
public static function GetMaterialProperty(mats: Object[], propertyIndex: int): MaterialProperty;

Parameters

matsSelected materials.
nameProperty name.
propertyIndexProperty index.

Description

Get information about a single shader property.