您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 
GitHub 84b67d9e Merge pull request #145 from Unity-Technologies/dev_1.17.5 4 年前
..
Editor Merge pull request #145 from Unity-Technologies/dev_1.17.5 4 年前
MaterialSample Merge pull request #145 from Unity-Technologies/dev_1.17.5 4 年前
Scene Merge pull request #110 from Unity-Technologies/zxw/dev_ios_update_engine 4 年前
Script Merge pull request #130 from Unity-Technologies/siyaoH/1.17/clean 4 年前
StreamingAssets Merge pull request #145 from Unity-Technologies/dev_1.17.5 4 年前
UIWidgetsGallery Merge pull request #145 from Unity-Technologies/dev_1.17.5 4 年前
WidgetsSample Merge pull request #130 from Unity-Technologies/siyaoH/1.17/clean 4 年前
.sample.json Prepare samples in the package. 4 年前
CountDemo.cs rename & clean 4 年前
CountDemo.cs.meta add renderanimatedopacitymixin 4 年前
CountDemo.unity update for lottie 4 年前
CountDemo.unity.meta gestures update 4 年前
Editor.meta Merge pull request #145 from Unity-Technologies/dev_1.17.5 4 年前
MaterialSample.meta Merge pull request #145 from Unity-Technologies/dev_1.17.5 4 年前
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 年前
Scene.meta pr fix 4 年前
Script.meta pr fix 4 年前
StreamingAssets.meta screenshot & config font 4 年前
UIWidgetsSample.asmdef minor bug fixes 4 年前
UIWidgetsSample.asmdef.meta Add samples from https://github.com/UIWidgets/UIWidgetsSamples. 4 年前
WidgetsSample.meta fix meterial (9) 4 年前

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.