• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 123 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0043 秒)

81. 缓动动画(TypeScript-LayaAir基础篇(TS)-动画基础) [ 55%]

...: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

82. 【简单跑酷--JS版】---Lv.6 终篇 [ 55%]

...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

83. 批量销毁释放内存(JavaScript-3D基础(JS)-LayaAir3D的内存管理) [ 55%]

...: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

84. 缓动动画(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 55%]

...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

85. unity导出 [ 55%]

...键值对的值确认是Scene,可是这里报错后我看了下,switch case语句进入了sprite3D里边。。。这我很纳闷。而且导出过程都是按照技术文档里做的,导出后却没有贴图文件。这又是怎么回事。是不是我使用的工具版本太旧。 ymsdandan ...

来源: Laya_社区 发布时间: 20171107

86. 能否对适配方案进行修改 [ 55%]

能否对适配方案进行修改 case SCALE_SHOWALL:                  canvasWidth = realWidth = Math.round(desginWidth * scaleX);                 canvasHeight = realHeight = Math.round(desginHeight * scaleY);                 var minScale:Number= Math.min(scaleX...

来源: Laya_社区 发布时间: 20170222

87. 2.8的IDE转换成Box莫名删除元件!! [ 55%]

...损坏了,如果在遇到类似的问题,建议提交出问题的demo case。我们定位下具体原因. 2020-09-09 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 腊笔小新 相关问题 Layaair IDE的帧属性面板不见了 ide ...

来源: Laya_社区 发布时间: 20200908

88. 批量销毁释放内存(ActionScript-3D基础(AS3)-LayaAir3D的内存管理) [ 54%]

...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

89. 微信小游戏利用开放域好友关系链做排行榜 [ 54%]

...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

90. mac安装layanative失败!!! [ 54%]

...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