Get a named vector value.
GetVector
does exactly the same
as GetColor just the input data type is different (xyzw
in the vector becomes rgba
in the color).See Also: GetColor, SetVector, Shader.PropertyToID.print(renderer.material.GetVector("_Color"));
using UnityEngine; using System.Collections; public class Example : MonoBehaviour { void Example() { print(renderer.material.GetVector("_Color")); } }
import UnityEngine import System.Collections public class Example(MonoBehaviour): def Example() as void: print(renderer.material.GetVector('_Color'))