文档

Unity Engine


User Manual

Script Reference

Unity Engine


GetVector3

Gets the value of a named Vector3 property.
阅读时间1 分钟最后更新于 1 个月前

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
.