大约有 123 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0043 秒)
...:Laya.Text):void{ var c:number = Math.floor(Math.random()*3); switch (c) { case 0: txt.color = "#eee000"; break; case 1: txt.color = "#ffffff"; break; case 2: txt.color = "#ff0000"; break; default: txt.color = "#eee000"; break; } } /** * 缓动完成后的回调方法 * txt 缓动对象 */ private c...
来源: Laya2.0_文档 发布时间: 20210715
...ture1 = Laya.loader.getRes("res/hp_bg.png"); var texture2; switch (type) { case Hp.HP_TYPE_ENERGY: texture2 = Laya.loader.getRes("res/en_bar.png"); break; case Hp.HP_TYPE_SPEED: texture2 = Laya.loader.getRes("res/hp_bar.png"); break; } this.bg = new Sprite(); this.bar = new Sprite(); this.bar.x = 15...
来源: Laya_社区 发布时间: 20160803
...:Event) { this._castType++; this._castType %= 2; switch (this._castType) { case 0: (e.target as Button).label = "释放显存"; this.loadScene(); break; case 1: (e.target as Button).label = "加载场景"; if (this._scene)//_scene不为空表示场景已加载完成 this.garbageCollection(); break; ...
来源: Laya2.0_文档 发布时间: 20210715
...eColor(txt:Text):void { var c:int = parseInt(Math.random()*3); switch(c) { case 0: { txt.color="#EEE000"; break; } case 1: { txt.color="#FFFFFF"; break; } case 2: { txt.color="#FF0000"; break; } default: { txt.color="#EEE000"; break; } } } /** * 缓动完成后的回调方法 * @param txt 缓动对...
来源: Laya2.0_文档 发布时间: 20210715
...键值对的值确认是Scene,可是这里报错后我看了下,switch case语句进入了sprite3D里边。。。这我很纳闷。而且导出过程都是按照技术文档里做的,导出后却没有贴图文件。这又是怎么回事。是不是我使用的工具版本太旧。 ymsdandan ...
来源: Laya_社区 发布时间: 20171107
能否对适配方案进行修改 case SCALE_SHOWALL: canvasWidth = realWidth = Math.round(desginWidth * scaleX); canvasHeight = realHeight = Math.round(desginHeight * scaleY); var minScale:Number= Math.min(scaleX...
来源: Laya_社区 发布时间: 20170222
...损坏了,如果在遇到类似的问题,建议提交出问题的demo case。我们定位下具体原因. 2020-09-09 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 腊笔小新 相关问题 Layaair IDE的帧属性面板不见了 ide ...
来源: Laya_社区 发布时间: 20200908
...function(e:Event):void { _castType++; _castType %= 2; switch (_castType) { case 0: (e.target as Button).label = "释放显存"; loadScene(); break; case 1: (e.target as Button).label = "加载场景"; if (_scene)//_scene不为空表示场景已加载完成 garbageCollection(); break; } /** * @privat...
来源: Laya2.0_文档 发布时间: 20210715
...ge:any):void{ switch(message.cmd){ case 1: var testUI: ui.test.TestPageUI = new ui.test.TestPageUI(); testUI.x = 100; testUI.y = 20; ...
来源: Laya_社区 发布时间: 20180529
...his is a problem related to network connectivity. npm ERR! network In most cases you are behind a proxy or have bad network settings. npm ERR! network npm ERR! network If you are behind a proxy, please make sure that the npm ERR! network 'proxy' config is set properly. See: 'npm help config' npm ERR...
来源: Laya_社区 发布时间: 20180117