このページは英語からの機械翻訳を使用しており、誤りや不明瞭な表現が含まれている可能性があります。最も正確な情報については、オリジナルの英語版をご覧ください。頻繁な更新のため、一部のコンテンツはオリジナルの英語になっている可能性があります。Crowdinでの取り組みに参加して、このページの翻訳改善にご協力ください。 (Crowdin translation page, Contributing guide)
Creating UI for dApp
In this section, we will build our dApp's user interface! We'll create a structured UI system with three main panels for status updates, actions, and minting functionality.
Setting Up the Main Canvas
First, let's create our base canvas:
- In the Hierarchy window, right-click on "Sample Scene".
- Navigate to GameObject → UI → Canvas.
Creating the Web3UI Container
- Right-click on your new Canvas.
- Select "Create Empty".
- Rename it to "Web3UI".
Setting Up Main Panels
Inside Web3UI, create three panel objects:
- Right-click on Web3UI and select "Create Empty".
- Create and rename these panels:
- StatusPanel - Your dApp's information display
- ButtonPanel - For user interactions
- MintPanel - For token minting features