MaterialVariantGroup Class

Summary

[Editor-Only] A utility for automatically swapping materials based on supported shaders.
Assembly
Animancer.dll
Namespace
Animancer.Editor
Base Types
  • ScriptableObject
graph BT Type-->Base0["ScriptableObject"] Type["MaterialVariantGroup"] class Type type-node

Syntax

public class MaterialVariantGroup : ScriptableObject

Remarks

This system is used to allow materials to be used in any render pipeline.

Properties

Name Value Summary
Material Material
The target material.
Variants Material[]
The variants to try applying to the target material.

Methods

Name Value Summary
OnEnable() void
Applies the first variant that successfully loaded its shader.