기술 자료

Unity Engine

Unity Engine

SetVector3

Use this method to set the value of a Vector3 with the name you pass in.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

SetVector3(int, Vector3)

Use this method to set the value of a Vector3 with the name you pass in.
public void SetVector3(int nameID, Vector3 v)

Parameters

nameID

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

The new Vector3 value.

SetVector3(string, Vector3)

Use this method to set the value of a Vector3 with the name you pass in.
public void SetVector3(string name, Vector3 v)

Parameters

name

The name of the property.

The new Vector3 value.