Text changes from white to black at runtime
Posted: Wed Oct 16, 2019 9:41 am
I'm using the default quest machine prefabs but changes some images.
Didn't touch the components or anything.
It's all the text under the Quest machine canvas that is affected so also the quest in the hud which appears in black instead of white as well as all the text on buttons.
See screenshot...
I had this once before so I removed the quest machine prefab and added it again which solved the problem but it seems like as soon as I alter some things, it starts doing this.
What could cause this?
I'm only changing images for the background, positions and sizes. I'm not adding/removing/altering any of the quest machine specific components.
The weird thing is also that when I stop playing the game, the text in the editor also appears black but as soon as I open the quest machine machine prefab, it changes back to white. But when I play the game and open a quest, it changes back to black.
I also see a warning in my console that's coming from QM but not sure if it's related as I always get this warning...
Didn't touch the components or anything.
It's all the text under the Quest machine canvas that is affected so also the quest in the hud which appears in black instead of white as well as all the text on buttons.
See screenshot...
I had this once before so I removed the quest machine prefab and added it again which solved the problem but it seems like as soon as I alter some things, it starts doing this.
What could cause this?
I'm only changing images for the background, positions and sizes. I'm not adding/removing/altering any of the quest machine specific components.
The weird thing is also that when I stop playing the game, the text in the editor also appears black but as soon as I open the quest machine machine prefab, it changes back to white. But when I play the game and open a quest, it changes back to black.
I also see a warning in my console that's coming from QM but not sure if it's related as I always get this warning...
Code: Select all
QuestMachine: QuestSubasset.CloneList<QuestContent>: Element 0 is null.
UnityEngine.Debug:LogWarning(Object)
PixelCrushers.QuestMachine.QuestSubasset:CloneList(List`1) (at Assets/Plugins/Pixel Crushers/Quest Machine/Scripts/Quest/Quest Subasset/QuestSubasset.cs:145)
PixelCrushers.QuestMachine.QuestStateInfo:CloneSubassetsInto(QuestStateInfo) (at Assets/Plugins/Pixel Crushers/Quest Machine/Scripts/Quest/Quest State/QuestStateInfo.cs:126)
PixelCrushers.QuestMachine.QuestStateInfo:CloneSubassets(List`1, List`1) (at Assets/Plugins/Pixel Crushers/Quest Machine/Scripts/Quest/Quest State/QuestStateInfo.cs:205)
PixelCrushers.QuestMachine.Quest:Clone() (at Assets/Plugins/Pixel Crushers/Quest Machine/Scripts/Quest/Quest.cs:574)
PixelCrushers.QuestMachine.QuestListContainer:AddQuest(Quest) (at Assets/Plugins/Pixel Crushers/Quest Machine/Scripts/Quest MonoBehaviours/Quest List/QuestListContainer.cs:178)
PixelCrushers.QuestMachine.QuestGiver:AddQuest(Quest) (at Assets/Plugins/Pixel Crushers/Quest Machine/Scripts/Quest MonoBehaviours/Quest List/QuestGiver.cs:299)
PixelCrushers.QuestMachine.QuestListContainer:AddQuests(List`1) (at Assets/Plugins/Pixel Crushers/Quest Machine/Scripts/Quest MonoBehaviours/Quest List/QuestListContainer.cs:170)
PixelCrushers.QuestMachine.QuestListContainer:InstantiateQuestAssets() (at Assets/Plugins/Pixel Crushers/Quest Machine/Scripts/Quest MonoBehaviours/Quest List/QuestListContainer.cs:140)
PixelCrushers.QuestMachine.QuestListContainer:Awake() (at Assets/Plugins/Pixel Crushers/Quest Machine/Scripts/Quest MonoBehaviours/Quest List/QuestListContainer.cs:124)
PixelCrushers.QuestMachine.QuestGiver:Awake() (at Assets/Plugins/Pixel Crushers/Quest Machine/Scripts/Quest MonoBehaviours/Quest List/QuestGiver.cs:168)