您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 
GitHub 59703709 Merge pull request #9 from Unity-Technologies/1.17.4/localPosition 4 年前
..
Editor Merge pull request #7 from Unity-Technologies/siyao 4 年前
MaterialSample Add samples from https://github.com/UIWidgets/UIWidgetsSamples. 4 年前
RaycastableSample Add samples from https://github.com/UIWidgets/UIWidgetsSamples. 4 年前
ReduxSample Merge pull request #9 from Unity-Technologies/1.17.4/localPosition 4 年前
Resources Update meta for 2019.4. 4 年前
Scenes Merge pull request #9 from Unity-Technologies/1.17.4/localPosition 4 年前
UIWidgetsGallery Merge pull request #7 from Unity-Technologies/siyao 4 年前
UIWidgetsSample Remove wrong sample json files. 4 年前
UIWidgetsTheatre Add samples from https://github.com/UIWidgets/UIWidgetsSamples. 4 年前
.sample.json Prepare samples in the package. 4 年前
Editor.meta [Fix] Isolate the D&D EditorWindow Sample 5 年前
MaterialSample.meta fix yuncong's commits 6 年前
README-ZH.md Add samples from https://github.com/UIWidgets/UIWidgetsSamples. 4 年前
README-ZH.md.meta Add samples from https://github.com/UIWidgets/UIWidgetsSamples. 4 年前
README.md Add samples from https://github.com/UIWidgets/UIWidgetsSamples. 4 年前
README.md.meta Add samples from https://github.com/UIWidgets/UIWidgetsSamples. 4 年前
RaycastableSample.meta Add samples from https://github.com/UIWidgets/UIWidgetsSamples. 4 年前
ReduxSample.meta redux sample 6 年前
Resources.meta add texture sample. 6 年前
Scenes.meta Add samples from https://github.com/UIWidgets/UIWidgetsSamples. 4 年前
UIWidgetsGallery.meta some changes. 6 年前
UIWidgetsSample.asmdef fix sample 6 年前
UIWidgetsSample.asmdef.meta Add samples from https://github.com/UIWidgets/UIWidgetsSamples. 4 年前
UIWidgetsSample.meta Add samples from https://github.com/UIWidgets/UIWidgetsSamples. 4 年前
UIWidgetsTheatre.meta material theatre scene 6 年前

README.md

UIWidgets Samples

中文

Introduction

This project provides standard samples for UIWidgets.

UIWidgets is an open-source, standalone and novel UI framework for Unity. You can find various UIWidgets-based UI panels in this Repository which illustrates different features of the corresponding framework. Please feel free to run and test these demos. You are also encouraged to modify them to meet your own requirements and see the outcomes.

Requirements

Unity

Install Unity 2018.4.10f1 (LTS) or Unity 2019.1.14f1 and above. You can download the latest Unity on https://unity3d.com/get-unity/download.

UIWidgets Package

Visit the Github repository https://github.com/UnityTech/UIWidgets to download the latest UIWidgets package.

Move the downloaded package folder into the Package folder of your Unity project.

Generally, you can make it using a console (or terminal) application by just a few commands as below:

 cd <YourProjectPath>/Packages
 git clone https://github.com/UnityTech/UIWidgets.git com.unity.uiwidgets

Install

Create an empty project using Unity and copy the latest UIWidgets package into it. Then clone this Repository to the Asset folder of your project.

Guide

Runtime UIs

In the Scenes folder you can find all the demo scenes which illustrate different features of UIWidgets. More specifically, the UIWidgetsGallery scene contains a Gallery demo of UIWidgets. It is mainly derived from the flutter Gallery demo and will provides you a big picture about "What UIWidgets can do".

In the UIWidgetsTheatre scene you can switch between some deliberately chosen UIWidgets Panels, each focusing on one specific feature of UIWidgets.

The implementations of all the demo UI widgets are located in different folders. In short:

  • MaterialSample contains sample codes of material scheme widgets
  • ReduxSample contains samples codes for the redux framework used in UIWidgets
  • UIWidgetGallery contains codes of the Gallery demo
  • UIWidgetsSample contains samples codes for basic widgets
  • UIWidgetsTheatre contains codes of the UIWidgetsTheatre

EditorWindow UIs

UIWidgets can also be used to create EditorWindows in Unity. Please click the new UIWidgetsTests tab on the main menu and open one of the dropdown samples to see the corresponding EditorWindow example.

All the codes of the EditorWindow samples are located in the Editor folder.