Search Unity

Question Can I Customize UI Fake Store?

Discussion in 'Unity IAP' started by doseon, Mar 28, 2023.

  1. doseon

    doseon

    Joined:
    Mar 17, 2021
    Posts:
    39
    I'm using version 4.7.0, and the GUI looks too small depending on the resolution when using the Fake Store.

    So I'm wondering if I can increase or customize this GUI size.

    Please let me know if there is a way. Thank you.
     

    Attached Files:

  2. SamOYUnity3D

    SamOYUnity3D

    Unity Technologies

    Joined:
    May 12, 2019
    Posts:
    626
    You can find the related code in UIFakeStoreWindow.cs file, but it may not support external modification, you can have a try.
    upload_2023-3-29_17-8-57.png
     
  3. doseon

    doseon

    Joined:
    Mar 17, 2021
    Posts:
    39
    Thank you for replay.

    Yes, I already tried, but it hasn't been modified.

    Is there any other way?
     
  4. SamOYUnity3D

    SamOYUnity3D

    Unity Technologies

    Joined:
    May 12, 2019
    Posts:
    626
    You can import the demo through the package manager, which doesn't have such a fake store UI, and you can create a new fake store UI base on that demo.
     
  5. doseon

    doseon

    Joined:
    Mar 17, 2021
    Posts:
    39
    But I couldn't find it.
    Can you give me a sample example for version 4.7.0 and how to create a new fake store UI base?
     
  6. SamOYUnity3D

    SamOYUnity3D

    Unity Technologies

    Joined:
    May 12, 2019
    Posts:
    626
    You can import the samples through the package manager. The fake store UI is not necessary, but if you want, you can create a new one, based on the UIFakeStoreWindow.cs.

    upload_2023-4-3_14-56-18.png
     
  7. doseon

    doseon

    Joined:
    Mar 17, 2021
    Posts:
    39
    I know that the package manager imports samples.

    But as far as I know, UIFakeStoreWindow.cs is implemented inside the IAP Package and uses it, so even if I make a new one based on UIFakeStoreWindow.cs , IAP will probably use the internal UIFakeStoreWindow.cs .

    As far as I know, if I make a new one based on UIFakeStoreWIndow.cs , it will not be applicable unless I modify the source code of the IAP package.

    Am I not quite understanding?