Add(ShaderVariant)
Adds a new shader variant to the collection.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public bool Add(ShaderVariantCollection.ShaderVariant variant)
Parameters
Shader variant to add.
Returns
Type | Description |
|---|---|
| bool | False if already in the collection. |
Remarks
Additional Resources: ShaderVariantCollection.Remove, ShaderVariantCollection.Contains.