Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetVector3

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

Definition

GetVector3(int)

Gets the value of a named Vector3 property.
public Vector3 GetVector3(int nameID)

Parameters

nameID

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

Returns

Type

Description

Vector3The value for the Vector3 you specify. Returns /Vector3.zero/ if VisualEffect.HasVector3 returns
false
.

GetVector3(string)

Gets the value of a named Vector3 property.
public Vector3 GetVector3(string name)

Parameters

name

The name of the property.

Returns

Type

Description

Vector3The value for the Vector3 you specify. Returns /Vector3.zero/ if VisualEffect.HasVector3 returns
false
.