Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Decompiled source of HunterSkinChanger test v0.0.1
TextureReplacer.dll
Decompiled a year agousing System.Diagnostics; using System.IO; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using BepInEx; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] [assembly: AssemblyCompany("TextureReplacer")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("TextureReplacer")] [assembly: AssemblyTitle("TextureReplacer")] [assembly: AssemblyVersion("1.0.0.0")] [BepInPlugin("com.yourname.texturereplacer", "Texture Replacer", "1.0.0")] public class TextureReplacer : BaseUnityPlugin { private void Start() { ((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin is start!"); GameObject val = GameObject.Find("Hunter Material Albedo"); if ((Object)(object)val != (Object)null) { Renderer component = val.GetComponent<Renderer>(); if ((Object)(object)component != (Object)null) { Texture2D mainTexture = LoadTexture("Hunter Material Albedo_new.png"); component.material.mainTexture = (Texture)(object)mainTexture; } } } private Texture2D LoadTexture(string path) { //IL_000a: Unknown result type (might be due to invalid IL or missing references) //IL_0010: Expected O, but got Unknown byte[] array = File.ReadAllBytes(path); Texture2D val = new Texture2D(2, 2); ImageConversion.LoadImage(val, array); return val; } }