Characters

Ensure character objects are in a folder called Resources.

Characters cannot be created at runtime.

The QTCharacter class is just for the purpose of telling QT which characters are relevant to which quests. This is mostly handled without coding.

Getting a Character

// The first parameter is the name of QTCharacter scriptable object
// The second parameter is it's path in the resources folder
var character = QT.GetCharacter("character object name", "path/in/resources");

If you've placed your items in the recommended folder (Assets/StylishEsper/QuestTree/Resources/CharacterData), then it may not be necessary to specify a folder path unless the item is inside a subfolder within the CharacterData folder.

Last updated