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

大约有 110 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0046 秒)

61. 环形进度条 [ 64%]

...麻烦帮看一下这种遮罩bar的进度条设了遮罩起作用 Laya.loader.create 进度回调函数执行两次 关于环形进度条,进度能重置问题 这种进度条怎么实现? 官方提供的进度条示例 只能设置progress.png的九宫, 里面的progress$bar.png 无法...

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

62. 图集动画(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 64%]

...n; import laya.display.Stage; import laya.maths.Rectangle; import laya.net.Loader; import laya.utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class HelloLayabox { private const AniConfPath:String = "../../../../res/role.atlas"; private var roleAni:Animation; public functio...

来源: Laya2.0_文档 发布时间: 20210715

63. Text类中竟然没有pos函数的api~ [ 63%]

...直在动,多久会执行一次,一帧吗?和frameLoop一样? Laya.loader.create 进度回调函数执行两次 问题状态 最新活动: 2018-04-12 10:13 浏览: 1624 关注: 3 人 lhb1990711 • 2018-04-12 22:12 找到pos函数了 是在基础类Sprite类下面的 Text继承Sprite 所以...

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

64. CPU优化方式(ActionScript-2D进阶篇(AS3)-性能优化) [ 62%]

...正确获取宽高。 3. **直接调用size设置:** ```javascript Laya.loader.load("res/apes/monkey2.png", Handler.create(this, function() {     var texture:Texture = Laya.loader.getRes("res/apes/monkey2.png");     var sp:Spirte = new Sprite();     sp.graphics.drawTexture(tex...

来源: Laya2.0_文档 发布时间: 20210715

65. CPU优化方式(JavaScript-2D进阶篇(JS)-性能优化) [ 62%]

...正确获取宽高。 1. **直接调用size设置:** ```javascript Laya.loader.load("res/apes/monkey2.png",Handler.create(this,function() { var texture=Laya.loader.getRes("res/apes/monkey2.png"); var sp=new Laya.Sprite(); sp.graphics.drawTexture(texture,0,0); sp.size(texture.width,texture.height);...

来源: Laya2.0_文档 发布时间: 20210715

66. timeline播放完成Bug [ 61%]

...32628"; const monkey1Path = "https://layaair2.ldc2.layabox. ... 3B%3B Laya.loader.load(monkey1Path, Laya.Handler.create(this, function() { let monkey = Laya.loader.getRes(monkey1Path); let ape = new Laya.Sprite(); Laya.stage.addChild(ape); ape.graphics.drawTexture(monkey, 0, 0); var tl = new Laya.Ti...

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

67. CPU优化方式(TypeScript-2D进阶篇(TS)-性能优化) [ 60%]

...正确获取宽高。 1. **直接调用size设置:** ```typescript Laya.loader.load("res/apes/monkey2.png",Laya.Handler.create(this,function() { var texture=Laya.loader.getRes("res/apes/monkey2.png"); var sp=new Laya.Sprite(); sp.graphics.drawTexture(texture,0,0); sp.size(texture.width,texture.hei...

来源: Laya2.0_文档 发布时间: 20210714

68. 进度条样式在减少过程中会慢慢突出容器 [ 60%]

...种进度条怎么实现? 希望能介绍下编译as的大致过程 Laya.loader.create 进度回调函数执行两次 问题状态 最新活动: 2017-10-12 19:34 浏览: 845 关注: 2 人 apeCom • 2017-10-12 19:39 谢谢

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

69. UI加载完成后无法获取控件的大小——超详细版问题 [ 60%]

... import Label = laya.ui.Label; import Handler = laya.utils.Handler; import Loader = laya.net.Loader; import Stage = laya.display.Stage; class TestUI extends ui.test.testwhUI { constructor() { super(); this.mypan.vScrollBarSkin = ""; Laya.stage.on(Laya.Event.RESIZE, this, this.fitDOMElements); this.m...

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

70. AS代码如何new一个js库中的类并且使用这个类 [ 59%]

...c.js 步骤1)加载JS 2)加载完回调 3)new需要的类   //加载 Laya.loader.load(getModuleJSPath("abc.js"), Handler.create(this,loadedHandler)); function loadedHandler(data:*):void{       //加载完回调       __JS__('window.eval(data + "//# sourceURL=" + "abc.js")');     //new需要...

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