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