- 2
- 0
- 约9.67千字
- 约 8页
- 2019-07-14 发布于湖北
- 举报
JS脚本控制逐渐淡出的欢迎界面
Posted on 2013年06月14日 by U3d / \o 查看 Unity3D脚本/插件 中的全部文章 Unity3D脚本/插件/被围观 11 次
使用JS脚本控制开始界面的淡出并且最终显现出游戏界面。在游戏界面的设置中,开始界面的制作十分必要,是欢迎玩家并且简要介绍游戏背景的必备过程。
首先,先创建一个脚本文件,声明GUI必备的类:
001
import System.Collections.Generic;
002
003
004
// TextureGUI Class: create a basic class for creating and placing GUI elements
005
// texture = the texture to display
006
// offset = pixel offset from top left corner, can be modified for easy positioning
007
008
class TextureGUI {
009
var texture:Texture; //useful: texture.width, texture.height
010
v
原创力文档

文档评论(0)