Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetVector4

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

Definition

SetVector4(int, Vector4)

Sets the value of a named Vector4 or Color property.
public void SetVector4(int nameID, Vector4 v)

Parameters

nameID

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

The new Vector4 value.

Remarks

Automatically changes overridden state for this property to true.

SetVector4(string, Vector4)

Sets the value of a named Vector4 or Color property.
public void SetVector4(string name, Vector4 v)

Parameters

name

The name of the property.

The new Vector4 value.

Remarks

Automatically changes overridden state for this property to true.