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

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

1091. CheckBox属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 42%]

...成功后,执行onLoad回调方法 Laya.loader.load([skin1,skin2],Laya.Handler.create(this,onLoaded)); function onLoaded(){ //创建一个CheckBox实例cb1 var cb1 = new Laya.CheckBox(this.skin1); //添加到舞台上显示 Laya.stage.addChild(cb1); //设置checkbox的坐标位置 cb1.pos(300,200)...

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

1092. 请问,如何获得StandardMaterial,为什么transformUV始终是null [ 42%]

...x = 0;     Laya.loader.load(["../../res/threeDimen/ui/button.png"], Laya.Handler.create(null, function () {         var changeActionButton = Laya.stage.addChild(new Laya.Button("../../res/threeDimen/ui/button.png", "正常模式"));         changeActionButton.size(160, 40);         cha...

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

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

...sh({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{ constructor(){ super(); this._initVie...

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

1094. CheckBox属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 41%]

...执行onLoaded回调方法 Laya.loader.load([this.skin1,this.skin2],Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //创建一个CheckBox实例cb1 var cb1:Laya.CheckBox = new Laya.CheckBox(this.skin1); //添加到舞台上显示 Laya.stage.addChild(cb1); //设置checkbox的坐...

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

1095. 报无法找到资源,未升级ide之前不报错 [ 41%]

...load,同时可以加载2D,3D资源 Laya.loader.load(resArr, null, Laya.Handler.create(this, this.onLoading, null, false)).then(() => { // 加载完成后,处理逻辑 this.progress.value = 0.98; console.log("加载结束", this.progress.value); Laya.Scene.open("scenes/Index.ls&...

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

1096. 预制体模块 · LayaAir3文档 · LAYABOX [ 41%]

...load,同时可以加载2D,3D资源 Laya.loader.load(resArr, null, Laya.Handler.create(this, this.onLoading, null, false)).then(() => { // 加载完成后,处理逻辑 this.progress.value = 0.98; console.log("加载结束", this.progress.value); //预加载的东西太少,为了本地看效...

来源: Laya3.0_文档 发布时间: 20241014

1097. 预制体 · LayaAir3.3 · 引擎文档 · LAYABOX [ 41%]

...load,同时可以加载2D,3D资源 Laya.loader.load(resArr, null, Laya.Handler.create(this, this.onLoading, null, false)).then(() => { // 加载完成后,处理逻辑 this.progress.value = 0.98; console.log("加载结束", this.progress.value); //预加载的东西太少,为了本地看效...

来源: Laya3.0_文档 发布时间: 20251105

1098. 分包后, 资源加载问题 [ 41%]

... Example,并添加到舞台显示 Laya.loader.load("js/loading100.js", Handler.create(this, complete), null, Loader.TEXT); } private function complete(data:*):void { trace("ok3") __JS__("window.eval(data)"); //此行报错 var load:* = __JS__('new loading100()'); Laya.stage.addChild(load); trace("...

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

1099. 3d显示对象克隆体超出舞台不再显示的bug2.1.0.btea1 [ 41%]

....Vector3(1, -1, 0)); Laya.Sprite3D.load("h5/LayaMonkey/LayaMonkey.lh",Laya.Handler.create(this,this.ok)); } ok(sp:Laya.Sprite3D):void{ //得到原始Sprite3D this.sp = sp; this.scene3d.addChild(sp); //克隆Sprite3D this.sp2 = Laya.Sprite3D.instantiate(this.sp,null,false); //错开点位置 this.sp2...

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

1100. Laya.URL.basePath加载不到网络资源 [ 40%]

...und.png", type : Laya.Loader.IMAGE}, ];   Laya.loader.load(resArray, Laya.Handler.create(this, this.onLoaded2));   Laya.URL.basePath = "https://piggy.q1.com"; var resArray = [ { url: "res/atlas/images.atlas", type : Laya.Loader.ATLAS}, // { url: "res/swf/flash.json", type: Laya.Loader.JSON}, // { ...

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