2 years ago
#56776

Alexander Tukanov
UIFakeStoreWindow error: Can't add component 'Transform' to UIFakeStoreWindow
I have IAP version 4.1.2 and simple 2D project.
I get the error Can't add component 'Transform' to because such a component is already added to the game object
when I click on IAP button, but the script still works anyway.
I have only one IAP button, in a success case it should print to the console the text Works
otherwise Error
.
ScriptObject
is a just empty game object with attached c# script Test, which contains only two methods:
class Test : MonoBehaviour
{
public void PrintOk()
{
Debug.Log("Works!");
}
public void PrintError()
{
Debug.Log("Error!");
}
}
ButtonIAP
is a simple IAP button which should print to the console simple text (Works or Error) depends on was the click action completed successfully.
So when I click the IAP button the program output to the console
Can't add component 'Transform' to UIFakeStoreWindow because such a component is already added to the game object!
UnityEngine.EventSystems.EventSystem:Update ()
After it UI fake store window appears and if I click YES option PrintOk
method is invoked and the program output the the console Works
So the problems are:
- what does the error mean?
- why does it appear?
- how to fix it?
unity-game-engine
in-app-purchase
0 Answers
Your Answer