Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

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

MaterialPropertyBlock.GetVector

public Vector4 GetVector(string name);
public Vector4 GetVector(int nameID);

Description

Get a vector from the property block.

Returns zero vector if not found. If the value is previously set using SetColor, the returned vector value is the sRGB color value converted for the active color space.

See Also: SetVector, SetColor.