public GUISkin MySkin;
public float x1, x2, x3, x4;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
void OnGUI()
{
GUI.skin = MySkin;
GUI.Button(new Rect(1400.0f / 1627.0f * Screen.width, 60.0f / 915.0f * Screen.height, 150.0f / 1627.0f * Screen.width, 50.0f / 915.0f * Screen.height), "测试" );
GUI.Button(new Rect(x1 / 1627.0f * Screen.width, x2 / 915.0f * Screen.height, 250.0f / 1627.0f * Screen.width, 150.0f / 915.0f * Screen.height), "", "xin2");
}
分享到:
相关推荐
高通AR 最新版 vuforia-unity-6-2-10 vuforia-unity-6-2-10
vuforia-unity-6-0-112.unitypackage
第一人称射击游戏----FPSGame.zip------------------------unity4.3.4f1----------源代码 第一人称射击游戏----FPSGame.zip------------------------unity4.3.4f1----------源代码
vuforia-samples-advanced-android-ios-unity-4-2-3.zip官网下载太慢了,放在网盘方便大家下载
Unity日志输出插件,在手机和pc上均有用,能很清晰的看到日志打印,非常好用。 使用这个工具,你可以很容易地在游戏内部检查你的编辑器控制台日志!在移动端同样有效! 支持unity2017.4.29 or 更高版本
Unity和C#-游戏开发-官方超好画质的射击游戏源码+源代码工程
Unity和C#-游戏开发-超级马里奥+源代码工程
Unity 免ADB真机日志查看插件分享Unity Logs Viewe。详情参看https://blog.csdn.net/wuming2016/article/details/90609787
unity-webview-integration-master unity-webview-integration-master unity-webview-integration-master
vuforia-unity-android-modeltargetstest-10-5-5
Unity和C#-游戏开发-3d农场模拟+源代码工程
Unity和C#-游戏开发-保卫萝卜+源代码工程
Unity和C#-游戏开发-2d推箱子+源代码工程
Unity和C#-游戏开发-AR博物馆解密+源代码工程
Unity和C#-游戏开发-贪吃蛇+源代码工程
Unity和C#-游戏开发-vr教室+源代码工程
Unity和C#-游戏开发- 街机捕鱼+源代码工程
vuforia-samples-core-unity-6-2-6 These samples show how to build apps using the following core features of Vuforia. Image Targets VuMark Object Recognition Cylinder Targets Multi Targets User ...
Unity和C#-游戏开发-狩猎+源代码工程
Unity和C#-游戏开发-国王卡牌游戏+源代码工程