whats the most efficient way to write c# for unite so that i won't have to edit various other c# files within the entire engine lol is there a guide or something out there? because i do want to make unite install packages ready to install the cool things i have in mind but i don't want to end up packaging all the other code i have to touch and change. i kinda figured all i would need is to add them to a folder within add ons. but idk, im a bit confused. does anyone have clarity on it???
C# Efficiency for c#
RPG Maker UniteMy understanding is that there is an ExchangeFunctionPointer method built into Unite's codebase that allows for dynamic swapping C# script into the Unite runtime process via C# Reflection to obtain a more familiar "modular" programming to RM devs. It is accessed from the Runtime.Addon namespace:
This will supposedly disentangle possible modifications from the Unite codebase when you work with scripts from Addon folder and Addon namespace. This won't work in IL2CPP or IOS platform environments. This is a poorly documented area of Unite, so prepare for frustration.
You can read about it here (Japanese link) with some examples of usage: https://yakuentei.jp/article/gamedev/unity_rmu_addon/
Check the Unite channel on the Discord as well.
Code:
using RPGMaker.Codebase.Runtime.Addon;
AddonInstance.ExchangeFunctionPointer
This will supposedly disentangle possible modifications from the Unite codebase when you work with scripts from Addon folder and Addon namespace. This won't work in IL2CPP or IOS platform environments. This is a poorly documented area of Unite, so prepare for frustration.
You can read about it here (Japanese link) with some examples of usage: https://yakuentei.jp/article/gamedev/unity_rmu_addon/
Check the Unite channel on the Discord as well.
thank you and yes i learned that after a while since nobody was answering me lol, still learning it but i managed to make an enemy animation script and currently working on other scripts i will need for my reboot game.
Original thread: https://forums.rpgmakerweb.com/threads/efficiency-for-c.182775/