文档

Unity Engine


Unity Engine


HasGradient

Checks if the Visual Effect can override a Gradient with the name you pass in.
阅读时间1 分钟最后更新于 1 个月前

Definition

HasGradient(int)

Checks if the Visual Effect can override a Gradient with the name you pass in.
public bool HasGradient(int nameID)

Parameters

nameID

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

Returns

Type

Description

bool

HasGradient(string)

Checks if the Visual Effect can override a Gradient with the name you pass in.
public bool HasGradient(string name)

Parameters

name

The name of the property.

Returns

Type

Description

bool