> For the complete documentation index, see [llms.txt](https://docs.nice1.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nice1.dev/nice1-plugin/unity/play-characterselector.md).

# Play CharacterSelector!!!!

Once the dependencies are configured, open the scene and run it to see the demo in action.

<figure><img src="/files/0M78LKGNq64VXxmzhJxB" alt=""><figcaption></figcaption></figure>

As you can see, initially, it is the same as the Login scene.

The same web view is opened after clicking the Login button.

<figure><img src="/files/dk3rLNTPW6bMqUN3jBT2" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/hXTvqELD7iDWtsAQPzHU" alt=""><figcaption></figcaption></figure>

If the query didn't find the specified license, we'll get a "No License" text.

<figure><img src="/files/LEdgyj76jSbUACxLXBXR" alt=""><figcaption></figcaption></figure>

Otherwise, a character selection panel will appear for us.

<figure><img src="https://lh5.googleusercontent.com/Bf3SsTgVxhIx-IES7yI4HybFynALsTALODoc-oKTemhRzrm76B-kOJW1WdNfeWTCwbe2zot2s0QN-LDEqtMvmNJUNPttFqIM1zpjE1yLjGVZmCqbYcFZCSxFARKvzO_aqr8R2bRmnZxhgZDY_s2BS6M" alt=""><figcaption></figcaption></figure>

The character licenses are configured from the CharacterSelector in the scene.

<figure><img src="https://lh3.googleusercontent.com/tO2tLsunf2oVUJNWYo9shxOi2g6OtlIO1qE1QhvoWvgalWDfRNoNDE7UrZB8C6jwstZK7uRBduxu33FVIQhHuQWgTwI063o7_iUe8iuR6XNZdKjrl_sfUHkXb48ZEf_yw8SEAOwMvTfPSpk5kPpH-0o" alt=""><figcaption></figcaption></figure>

Its default data is as follows.

<figure><img src="https://lh5.googleusercontent.com/70ENmn125UYWGMVx6d3-5vyjiaxBhQB188NTXWRDpOG6x-ACvThLOK6OJSDmPe-ncBVJs88riur7gEDtvTdFVzKl0RAzoRSxKJQ6tXGbRUBorAj3wJs7x4HGpWs65crq78Ias78fLWxBeFJl-S2ezTM" alt=""><figcaption></figcaption></figure>

If we click on the green button on the panel in the scene, the licenses will be reloaded. So, for example, if we change the last license to free and update.

<figure><img src="https://lh5.googleusercontent.com/WMZwqE--SlU79P0sMZIrt7Mg8zguSiShKlezM1ElTqSnQmHgiBtkfkF0DaVVBvqpAzETYQv1bzz8Yy_-oBWMjZ2aP8rSr9lD-PTtDmhN-poEON3gFVK1OskRQvjJ81Ajqkmh6owGrVTmkXX-OpR8cfE" alt=""><figcaption></figcaption></figure>

Now, we will be able to click the "Capsule" character.

<figure><img src="https://lh3.googleusercontent.com/zq1PaM92D6GH1QEO0M-bNDVo0qB1C2q5rmOHeW7C_Lk6XBcdhvdiwUi9TzXMVlWWsbNamIOgcoEAOIe60peMcScfaEONWqWczuy_PO6yehCS0oByi1U7s6EYgXH-2E7qyLj2-iL9ITGaol1SyyFWpR0" alt=""><figcaption></figcaption></figure>

If we click on a button,for example, *Circle*, a message will appear in the console:

<figure><img src="/files/3lZpnUooVyOCyPBG4Y3z" alt=""><figcaption></figcaption></figure>

Note: To configure the behaviour of each button after clicking on one of them, while the scene is not running from the inspector, you should click on it an add a function in the *OnClick()* method.

<figure><img src="/files/UYKfXBeFyS29ubG8x9mS" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.nice1.dev/nice1-plugin/unity/play-characterselector.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
