There needs to be a connection for the Graphic element to understand that the Document you selected in the List is the one it should show the Texture for.
You can use the Document: Open Action to open a specific Document, but the Auto-open Document when clicked? option is intended to make this easier when selecting Documents from a list. What is the issue you're having with this option?
You shouldn't have to modify the Document menu - that shows up automatically only because its Appear type is set to On Document.
If you want to use a different Menu with a different Appear type, e.g. Manual, you should just need to open it with the Menu: Change state Action, which can be run in the InventoryBox element's ActionList when click asset, which will run after auto-opening the Document.
Oh, sorry, I've solved it.
The mistake was setting "Auto-Open Document When Clicked" to False.
Setting "Auto-Open Document When Clicked" to True on both ListUIs fixed the problem.
Thank you!
May I ask one more question?
You previously showed me "KickStarter.runtimeDocuments.GetCollectedDocumentIDs," but I realized that this retrieves documents obtained by the Player.
How can I access all documents within the game?
Comments
**Auto-open Document when clicked? **is False.
The original Document UI is not being used, and another UI is being opened from the ActionList using ActionListWhenClick.
Set Auto-open Document when clicked? to true and use the original Document UI. ...
If Auto-open Document when clicked? is unchecked, how are you connecting the new Document UI to the Document that is clicked in the list?
Currently, I'm simply opening it from the ActionList.
I think I don't know how to establish a connection.
There needs to be a connection for the Graphic element to understand that the Document you selected in the List is the one it should show the Texture for.
You can use the Document: Open Action to open a specific Document, but the Auto-open Document when clicked? option is intended to make this easier when selecting Documents from a list. What is the issue you're having with this option?
Thank you.
Auto-open Document when clicked?
I'll try using this to modify the original DocumentUI.
You shouldn't have to modify the Document menu - that shows up automatically only because its Appear type is set to On Document.
If you want to use a different Menu with a different Appear type, e.g. Manual, you should just need to open it with the Menu: Change state Action, which can be run in the InventoryBox element's ActionList when click asset, which will run after auto-opening the Document.
Sorry for the long exchange.
Run in the InventoryBox element's ActionList when click asset
If I use this format, will it look like the attached image?
https://imgur.com/a/lnAYjFI
Incidentally, in this case, the area where I want to display the Document's MainTexture appears white.
The ActionList looks correct, but you need to check Auto-open Document when clicked?.
Setting AppearType:OnViewDocument solved the problem.
It was such a simple thing, but I didn't realize it.
Thank you for your support!
@ChrisIceBox
I have another question.
I have set two categories for a document.
I've created a ListUI that displays only documents within each category.
When opening a document from a different category, I want to open a different DocumentUI for each category.
Do you have any ideas?
Try avoiding the use of On View Document, as this will cause the same Menu to open each time.
Instead, run the Menu: Change state Action to open the intended Menu.
Thank you for your reply.
On View Document
If this is not used, the problem of the document's textures and text not being reflected in the UI seems to recur...
Is that the case even when using the Menu: Change state Action to manually turn on the intended Menu?
Oh, sorry, I've solved it.
The mistake was setting "Auto-Open Document When Clicked" to False.
Setting "Auto-Open Document When Clicked" to True on both ListUIs fixed the problem.
Thank you!
May I ask one more question?
You previously showed me "KickStarter.runtimeDocuments.GetCollectedDocumentIDs," but I realized that this retrieves documents obtained by the Player.
How can I access all documents within the game?
The raw list of Documents defined within the Inventory Manager:
The Scripting Guide's entry on this can be found here.
Thank you so much as always!
It worked!