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

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

2211. 想做天空盒但是camera上没有sky这个属性 [ 51%]

...L; Laya.stage.screenMode = Stage.SCREEN_NONE; Stat.show(); //Laya.stage.on(Event.RIGHT_MOUSE_DOWN, this, Destruction); scene = Main.box3D.addChild(new Scene3D()) as Scene3D; camera = scene.addChild(new Camera(0, 0.1, 100)) as Camera; camera.transform.rotate(new Vector3(10, 0, 0), true, false); camer...

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

2212. clip里的WeakObject.I缓存的数据有问题 [ 51%]

...ebGL); Laya.stage.scaleMode = Stage.SCALE_FULL; Stat.show(); Laya.stage.on(Event.CLICK,this,clickFun); } private function clickFun():void { if( clip == null ){ clip = new Clip("1.png",6,6); Laya.stage.addChild(clip); clip.play(); }else{ clip.dispose(); clip = null; } }   2017-11-28 0 0 分享 微...

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

2213. android旋转屏幕 半边黑屏 [ 51%]

... "内容测试"; spr.addChild(te); Laya.stage.addChild(spr); Laya.stage.on(Event.CLICK, this, function():void { if (Laya.stage.screenMode == Stage.SCREEN_HORIZONTAL) { if (Browser.window.conchConfig) { Browser.window.conchConfig.setScreenOrientation(1); } Laya.stage.screenMode = Stage.SCREEN_VERTICA...

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

2214. layair-cmd 命令执行说没有发现目录 [ 51%]

...时候IDE不会自动拷贝到bin目录下吗 layaair2.0)请问js的Laya.Event.FRAME怎么用,看api中有,但写了不执行。 请问Laya.loader.load资源缓存在哪里?能不能把这个缓存目录里的资源加入NativeFile白名单? HttpRequest在firefox里面执行正常在ios出...

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

2215. 材质-BlinnPhong-高光贴图 [ 51%]

...mport laya.d3.resource.models.Mesh; import laya.display.Stage; import laya.events.Event; import laya.utils.Handler; import laya.utils.Stat; import common.CameraMoveScript; /** * ... * @author */ public class BlinnPhong_SpecularMap { private var scene:Scene; private var rotation:Vector3 = new Vector3...

来源: Laya_示例 发布时间: 20251223

2216. ProgressBar 代码问题 [ 51%]

...popup并且模拟进度条加载 按钮代码: this.testLoadingBar_anim.on(Event.CLICK,this,()=>{     var loading : Onloading = new Onloading();     loading.popup(true);     Laya.timer.loop(100, this, loading.changeValue); }); 进度条代码: import Handler = Laya.Handler; export class Onl...

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

2217. XMLRequest在layaNative下请求崩溃,请求官方协助! [ 51%]

...id {         let hr = new Laya.HttpRequest();         hr.once(Laya.Event.COMPLETE, this, (e: any): void => {             callback(JSON.parse(hr.data));         });       hr.send(url, JSON.stringify(data), 'post', 'text', ['content-type', 'application/json;charset=UTF-8', "ses...

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

2218. tiledMap场景切换问题 [ 51%]

...troy() 150*****745 • 2018-06-05 12:06 我用的是Laya.stage.on(Laya.Event.CLICK, this, function (e) {}),请问怎么销毁,销毁以后到下一个页面要重新绑定事件吗? Laya_Aaron • 2018-06-05 14:56 @150*****745:你的代码不给我讲我很难找到你说的这段,stage ...

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

2219. index.html里面的<!--jsfile--startTag-->标签中重复添加同一个js的问题有结果吗? [ 51%]

...分的颜色问题 IDE1.7.8 json图集加载问题 ios原生回调问题 event自定义事件的问题 写了个边缘光的自定义shader,有很多问题,帮忙看一下 我这样载入场景问题出现在哪呢?? lh文件内meshSprite添加阴影属性无效 问题状态 最新活动: 20...

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

2220. 刮刮卡效果实现 [ 51%]

...guaSpr.addChild(ape); ape.loadImage("WBSign/img_guakaituceng.png"); ape.on(Event.MOUSE_MOVE, this, onMouseMove); interactionArea = new Sprite(); interactionArea.blendMode = "destination-out"; ape.addChild(interactionArea); interactionArea.graphics.clear(); } function onMouseMove(e) { if(mouseX!=0){ ...

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