ドキュメント

Unity Engine

Unity Engine

GetFloat

Gets the value of a named float property.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

GetFloat(int)

Gets the value of a named float property.
public float GetFloat(int nameID)

Parameters

nameID

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

Returns

Type

Description

floatThe value for the float you specify. Returns /0.0f/ if VisualEffect.HasFloat returns
false
.

GetFloat(string)

Gets the value of a named float property.
public float GetFloat(string name)

Parameters

name

The name of the property.

Returns

Type

Description

floatThe value for the float you specify. Returns /0.0f/ if VisualEffect.HasFloat returns
false
.