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

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

1131. 出错啦,请把此信息截图给研发商Uncaught Can not find class Laya.HTMLDivElementdetail.stack is null [ 49%]

...Object' of null 微信关系链开发,如果在开放域那边使用Laya.loader.load加载就会出错 官网文档真的太垃圾了了,错误百出,真想知道你们真的认真运行过那些例子了吗?很多连截图给文字都对不上 问题状态 最新活动: 2021-11-02 15:17 浏...

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

1132. Sprite用graphics绘制图形后,mouse_over触发scale显示有问题 [ 49%]

... Laya.WebGL); let res:any = []; res.push({url:"res/atlas/comp.atlas", type:Loader.ATLAS}); Laya.loader.load(res, Handler.create(null, this.__onLoaded)); } private __onLoaded(): void { Laya.stage.addChild(new Test()); } } new Entry();   Test.ts import Sprite = Laya.Sprite; class Test extends Sprite{...

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

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

...正确获取宽高。 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

1134. dialog的lock属性没出现 [ 49%]

...提前设置 assets = ["res/ui/dialog (1).png", "res/ui/close.png"]; Laya.loader.load(assets, Handler.create(this, onSkinLoadComplete)); } private function onSkinLoadComplete(e:*=null):void { var dialog:Dialog = new Dialog(); var bg:Image = new Image(assets[0]); dialog.addChild(bg); var button:Butto...

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

1135. 环形进度条 [ 49%]

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

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

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

...正确获取宽高。 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

1137. 红米K20pro 多个手指同时按下就会报这个错 object has in SimpleSingletonList [ 49%]

...性会被覆盖 微信关系链开发,如果在开放域那边使用Laya.loader.load加载就会出错 Tween移动多个坐标 列如沿着正方形边线移动 问题状态 最新活动: 2020-03-28 11:29 浏览: 6852 关注: 6 人 峯 • 2020-02-07 12:50 引擎版本2.3.1 峯 • 2020-02-07 12:5...

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

1138. 时间轴动画(JavaScript-LayaAir基础篇(JS)-动画基础) [ 49%]

... ```javascript //加载图集成功后,执行onLoaded回调方法 Laya.loader.load("res/atlas/ui.atlas", Laya.Handler.create(this, onLoaded)); ``` 第二步:创建Animation实例,加载动画文件 ```javascript //创建一个Animation实例 var tl = new Laya.Animation(); //加载动画文件 ...

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

1139. ProgressBar属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 49%]

...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(["res/ui/progressBar.png", "res/ui/progressBar$bar.png"], Handler.create(this, this.onLoadComplete)); } private onLoadComplete(): void { this.progressBar = new ProgressBar("res/ui/progressBar.png"); this.progressB...

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

1140. Panel使用文档(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 49%]

...est() { //初始化引擎 Laya.init(800,600); //预加载所需资源 Laya.loader.load("res/atlas/comp.atlas",Handler.create(this,onLoaded)); } private function onLoaded():void { //实例化Panel组件 var panel:Panel = new Panel(); //给panel添加背景色 panel.graphics.drawRect(0,0,100,100,"#ffc...

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