Theme Style Sheet
field.Reference DPI
to 160. This is the recommended DPI for the AppKit, but feel free
to adjust it to your needs.Reown AppKit
prefab instance in your scene or prefab find Modal
child object and assign the
newly created Panel Settings Asset
to the Panel Settings
field of UI Document
component.Network
and Disconnect
. Because in the future this list will include more buttons, some of which will depend
on project configuration, the list is built dynamically inside of AccountPresenter
. In this example we will be
adding a custom button that opens OpenSea profile page of connected account.
Let’s create a custom presenter and override the method that creates the bottom buttons list.
CreateOpenSeaButton
method from CreateButtons
method. The final presenter should look like this:
modal view
. The class that
is responsible for storing, hiding, and showing the modal views is RouterController
. To replace a modal view implementation
with a custom one, you need to create a custom presenter and pass it to the RegisterModalView
method of RouterController
.
RouterController
will dispose of the previous
presenter and replace it with the new one.
If you find that some parts of the presenter can’t be customized, please open a GitHub issue.
CustomAccountPresenter
class we made in the previous example to use a custom UXML layout file.
To do so, override CreateViewInstance
method and return a new instance of AccountView
with a custom UXML layout path.