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.Extensions

Extensions.BuildRendererInfos(CharacterModel, GameObject) Method

Builds the renderer information data structure from scratch based on the given GameObject’s MeshRenderer components.
This overload uses a ShadowCastingMode of Off and IgnoreOverlays of value false.

public static RendererInfo[] BuildRendererInfos(this CharacterModel model, GameObject basisObject);

Parameters

model RoR2.CharacterModel
Model to apply the new RendererInfos

basisObject UnityEngine.GameObject
The object basis of where the MeshRenderers will be used to build off with

Returns

RoR2.RendererInfo[]
A new set of RendererInfos