文档

Unity Engine

Unity Engine

Contains(ShaderVariant)

Checks if a shader variant is in the collection.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public bool Contains(ShaderVariantCollection.ShaderVariant variant)

Parameters

Shader variant to check.

Returns

Type

Description

boolTrue if the variant is in the collection.

Remarks