RoR2-ChensHelpers

Contains simple and useful helpers for RoR2 mod creators to use. Mainly caters to Chen's mods.

View on GitHub

ChensHelpers

Chen.Helpers.GeneralHelpers

MaterialController Class

A controller for materials so that properties can be inspected and modified.
Attach this component to a Game Object and let it do its magic.
It will attempt to find the correct shader controller from the Renderer’s material, attach the said shader controller if found.
After the proper shader controller is found, this component will destroy itself.

public class MaterialController

Inheritance UnityEngine.MonoBehaviour 🡒 MaterialController