gui

lyj19810816 的头像

Unity3D中创建可以拖动的GUI窗体

利用GUI.DragWindow()方法
 

lyj19810816 的头像

Unity3D说明帮助GUI的制作(可以开关图片或视频)

GUI.Toggle()
 

lh99998888 的头像

滑动条的样式问题

var Sli:GUIStyle;
var SliTh:GUIStyle;
var sliderValue:float;
function OnGUI()
{
    sliderValue=GUI.VerticalSlider(Rect(20,20,20,Screen.height-40),sliderValue,0.0,100.0,Sli,SliTh);
}

我给Sli的Normal状态设了一张图片,又给SliTh的Normal状态设了一张图片,但是只能看见滑动条,看不见滑块,哪位高人指点一下,谢谢。

xrtc 的头像

GUI基础

 

xrtc 的头像

UnityGUI的拓展

UnityGUI的拓展

lazyducker 的头像

BitList的一个测试例子

 using System;

using System.Collections.Generic;

using UnityEngine;

using Random=UnityEngine.Random;

 

[ExecuteInEditMode]

public class ListTestPopulator : MonoBehaviour

{

 

    public int ItemCount = 10;

    private bool _randomItems = true;

    public bool RandomItems = true;

 

    private BitStage stage;

    public BitList list;

quanshengjie 的头像

Makes a GUIText label follow an object in 3D space. Useful for things like having name tags over players' heads.

Description

Makes a GUIText label follow an object in 3D space. Useful for things like having name tags over players' heads.

quanshengjie 的头像

Draw lines in Unity GUI

Description

This script allows you to draw a line between two points in the GUI system.

 

 Usage

Render a line in the GUI system by calling DrawLine and passing it a set of Vector2's for point A and point B of the line.

Optionally, you can pass DrawLine a color and width for the line, as well as using a Rect instead of Vector2's. If you do not pass a width, the line will have a width of 1. If you do not pass a color, the line will be rendered with the GUI.contentColor.

tttt01 的头像

Controls手册,GUI控制

控制类型

Planet 的头像

GUI改造计划

 各位大叔大婶大哥大姐,我用U3D时间不久,发现GUI是它最弱的地方,很让人抓狂,不好用。过去用ogre时用Flash做GUI,直接通过C++把ocx贴在Viewport上,Load SWF文件即可。现在很想写个Flash Control插件,求教U3D插件资料,如果可行的话马上建群开工,首先发布在U8上,希望懂U3D底层的C++大虾们给点支持和帮助。