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

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

561. graphics 问题 [ 68%]

... = Laya.Stage; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = ...

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

562. 我二进制资源load之后,为什么通过getRes获取不到。 [ 68%]

...config/data.txt", type: Laya.Loader.BUFFER }]; Laya.loader.load(resources, Handler.create(this, this.onComplete), Handler.create(this, this.onProcess), null, 1, false); } onComplete(e,a,b) { console.log('资源加载完成!!',e,a,b); var cfg = Laya.Loader.getRes("config/data.txt"); console.log('...

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

563. 网络和格式-XML [ 68%]

... = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.S...

来源: Laya2.0_示例 发布时间: 20260820

564. view和panel关于mouseThrough的区别 [ 68%]

...次方图集区别在哪? var 与 name 的详细区别是什么? Laya.Handler.create和new Laya.Handler有啥区别 Dialog和View用destroy和Laya.stage.removeChild有什么区别? 求解:2D项目中加载View,Laya.Scene.load应该如何使用? 关于打包图集时的图片默认属性与...

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

565. Laya.loader.create 不会反馈失败状态跟描述不符合 [ 68%]

...g> = ["scene/Conventional/scene2.ls"] Laya.loader.create(resource, Laya.Handler.create(this, (success:boolean) => { console.log("3d加载完毕:" + success); }),Laya.Handler.create(this, (progress: number) => { })); 这是个数组。。但是场景文件不存在,失败参数都是空的...

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

566. [LayaAir2]Laya.loader.create 字节跳动苹果抖音扫码调用出现卡死现象 [ 68%]

...ya.loader.create("res/Scene/Conventional/Model.lh",             Laya.Handler.create(this, function () {                 GameManager.models = Laya.loader.getRes("res/Scene/Conventional/Model.lh");                 this.refreshProgressBar(1);                 this.destroy()...

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

567. laya.ui.Tree [ 68%]

...如果父节点手动设置为false,则不会更改)。 Sprite  mouseHandler : Handler 单元格鼠标事件处理器。 默认返回参数(e:Event,index:int)。 Tree mouseThrough : Boolean = false 鼠标事件与此对象的碰撞检测是否可穿透。碰撞检测发生在鼠标事件...

来源: laya_api 发布时间: 20170929

568. Animation的createFrames为何加载不了有的图集资源 [ 68%]

...Animation; import laya.net.Loader; import laya.ui.Image; import laya.utils.Handler; import view.TestView; public class LayaUISample { public function LayaUISample() { //初始化引擎 Laya.init(600, 400); //Laya.loader.load([{url: "res/atlas/char_wudang01.json", type: Loader.ATLAS}], Handler.create...

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

569. 加载预制体json,返回值不统一 [ 68%]

...返回Prefab; 解决方式: Laya.loader.load("prefab/hero.json", Laya.Handler.create(this, function (obj) {             console.log('hero',obj);         }), null, Laya.Loader.PREFAB);         Laya.loader.create("prefab/WeiTiao.json", Laya.Handler.create(this, ...

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

570. 预加载结束之后还是报lose skin [ 68%]

...kin private loadRes():void{ Laya.loader.load("./res/atlas/comp.atlas",Laya.Handler.create(this, this.onAssetLoaded),Laya.Handler.create(this, this.onLoading, null, false)); } private onLoading(progress: number): void { console.log("加载进度: " + progress); } private onAssetLoaded(texture:Laya.Te...

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