Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetVector4

Gets the value of a named Vector4 or Color property.
Read time 1 minuteLast updated 6 days ago

Definition

GetVector4(int)

Gets the value of a named Vector4 or Color property.
public Vector4 GetVector4(int nameID)

Parameters

nameID

The ID of the property. This is the same ID that Shader.PropertyToID returns.

Returns

Type

Description

Vector4The value for the Vector4 you specify. Returns /Vector4.zero/ if VisualEffect.HasVector4 returns
false
.

GetVector4(string)

Gets the value of a named Vector4 or Color property.
public Vector4 GetVector4(string name)

Parameters

name

The name of the property.

Returns

Type

Description

Vector4The value for the Vector4 you specify. Returns /Vector4.zero/ if VisualEffect.HasVector4 returns
false
.