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, ShadowCastingMode, bool) Method

Builds the renderer information data structure from scratch based on the given GameObject’s MeshRenderer components.

public static RendererInfo[] BuildRendererInfos(this CharacterModel model, GameObject basisObject, ShadowCastingMode mode, bool ignoreOverlays);

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

mode UnityEngine.Rendering.ShadowCastingMode
Mode of shadow casting for each mesh

ignoreOverlays System.Boolean
Determines whether to display effects over the mesh, such as elite prefixes

Returns

RoR2.RendererInfo[]
A new set of RendererInfos