I have a pretty complex thing I'm trying to make here. When loot is dropped on the ground, I have a text that floats above the gameobject displaying it's name. But I'm having trouble showing that name properly.
The first problem I have is actually getting the name of the item that was dropped. What I'm doing right now is:
string name = parent.GetComponent<InteractionForwarder> ().baseInteraction.gameObject.name;
string cutName = name.Replace ("_ItemDrop:", "");
Because for some reason this:
baseInteraction.dropItem.id always returns item ID 0. Even if the dropped item is ID 50 for example.
Now the second problem is parsing text codes. Is there a method that automatically parses the text codes for me into a string? My item names have text codes like colors, but also variables.
Or better, is it some how possible to use the ORK flying text for this?