I have to change the name of combatant at runtime. I searched the tuts and API document, but I couldn't find anything. I'm a newbie, so please help me. Thank you so much.
You can do that for an instance of a combatant using the event system (Set Combatant Name step).
Otherwise, for a combatant instance, you can change it like this: combatant.SetName(string name); The name is obviously the name you want to set, combatant is the combatant instance you want to set the name on. You can get the combatant of a game object like this.
Changing the name of the combatant data in-game wont be saved. You can change it like this: ORK.Combatants.Get(int index).languageInfo[int languageID].name = "whatever"; The index is the ID/index of the combatant, the languageID is the ID/index of the language.
Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found. If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Otherwise, for a combatant instance, you can change it like this:
combatant.SetName(string name);
The name is obviously the name you want to set, combatant is the combatant instance you want to set the name on. You can get the combatant of a game object like this.
Changing the name of the combatant data in-game wont be saved. You can change it like this:
ORK.Combatants.Get(int index).languageInfo[int languageID].name = "whatever";
The index is the ID/index of the combatant, the languageID is the ID/index of the language.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!