Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/halomakes/vrc-world-avipicker
Udon Avatar Picker
https://github.com/halomakes/vrc-world-avipicker
Last synced: 6 days ago
JSON representation
Udon Avatar Picker
- Host: GitHub
- URL: https://github.com/halomakes/vrc-world-avipicker
- Owner: halomakes
- Created: 2023-09-06T22:43:21.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-06T23:59:53.000Z (over 1 year ago)
- Last Synced: 2023-09-07T00:57:42.043Z (over 1 year ago)
- Language: C#
- Size: 353 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Udon Avatar Picker
Paginated avatar picker to show off your and your friends' avatars!![VRChat_2023-09-06_19-29-45 565_7680x4320](https://github.com/halomakes/vrc-world-avipicker/assets/5904472/708278ff-9bd7-4756-84ce-6c456129f3b5)
## Usage
On the Avatar Picker component put your list of avatars in this format:
```json
{
"author": [
"id1234567890",
"id0987654321"
]
}
```
![image](https://github.com/halomakes/vrc-world-avipicker/assets/5904472/ede1c346-a273-43ca-8b0e-4c045242cac5)Place as many pedestals as you want throughout your scene and link them to the Pedestals array on that component. Page sizes will be determined by how many pedestals you pass in here.
![image](https://github.com/halomakes/vrc-world-avipicker/assets/5904472/c59a98af-1437-46d8-a66c-f2cefd8a0ee6)
The component does not currently generate toggle buttons dynamically (can't instantiate since Text does not derive from GameObject). Create these yourself and place an AuthorButton script on them with the same author name you specified in your JSON. The button component should call `OnButtonClicked` on your Udon Behavior.
![image](https://github.com/halomakes/vrc-world-avipicker/assets/5904472/2df75900-502b-4e87-aa16-a0313e6e0c0f)
Any Author or Pagination buttons must be under the Picker component as they look for a parent when communicating.
![image](https://github.com/halomakes/vrc-world-avipicker/assets/5904472/ccc69ebf-80d7-4568-9459-3adc172d0762)
Any elements or materials can be styled to your heart's content afterward. :D