The objective of this project is to facilitate the prototyping of user interfaces for the metaverse, thus facilitating and assisting in the development of software and systems for it.
- Prerequisites
- Common Errors
- Technologies
- Documentations
- Additional Information
- Changelog
- Contributing
Before you start, you need to have an account on Figma and install Unity (2022.3) on your computer.
The following steps have been tested with Meta's VR Quest 2 glasses. If you haven't downloaded the software for your VR, install it so that you can connect your computer to the VR.
- Installation link: Meta VR Setup
After installation, open the Oculus software and go to Settings -> General -> OpenXR runtime.
Then turn on the VR, allow access to the files and activate the VR's "Quest Link" or "Rift" setting.
Now in Uniy Hub, create a new project using the VR option as a template, that way everything will be configured. Now just press play in Unity.
1. First open your Unity project, then install it Unity UI-Rounded Corners following the documentation.
2. Then download Plugin.Unity.unitypackage on GitHub.
3. Then import the plugin into Unity:
- Open Unity.
- In the top menu, click on Asset -> Import Package -> Custom Package.
- Select the Plugin.Unity.unitypackage file.
- When the import window appears, click on import. Import all selected items
4. Now, to use the plugin open figma:
- Open a project in Figma.
- Click the Figma icon to open the menu.
- Go to Plugins, search for plugins, search for Figma To Unity For Virtual Reality (FUVR) then select.
To use Figma Convert first draw one or more interfaces (it is important that precision interfaces are components).
Then, to position the components the way you want them to be positioned in Unity:
- Select the components you want to export.
- Click the Figma icon to open the menu.
- Go to plugin and Figma To Unity For Virtual Reality (FUVR).
In the plugin you can position each component in the place you want, just select the component with double click and place it in the position you want.
Now go to Unity click on tools, Figma Convert. With the window of Figma Convert click on Login Browser so that the token can be obtained automatically or enter the token manually. Then copy the url of the Figma Document and finally click on Download Project.
Nesta seção, listaremos alguns dos erros mais comuns que os usuários podem encontrar ao usar este projeto.
-
Error:
error CS0246: The type or namespace name 'Nobi' could not be found (are you missing a using directive or as assembly reference?)
-
Description: Not having installed the UI Rounded Corners
-
Solutions: Install the UI Rounded Corners
-
Error:
NullReferenceException: Object referece not set to an instance of an object Core.Start (System.Int32 escala) (at Assets/Figma Convert/Editor//Core.cs:9)
-
Description: No ter colocado a url do Figma Document na ferramenta do Unity
-
Solutions: Go to Figma, enter a document then copy the url of the project.
The following tools and technologies were used in the construction of the project:
Some of the documentation used in the project:
- Access Postman
- Tested on Unity 2021 release
Detailed changes for each release are documented in the release notes.
Developers interested in contributing should read the Contribution Guide. We also have a list of issues you might want to check out.