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

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

171. laya3d物体碰撞与触发检测的问题 [ 76%]

...Move extends Laya.Script {  constructor() { super(); } onTriggerEnter() { console.log("111"); } onTriggerStay() { console.log("111"); } onTriggerExit() { console.log("111"); } onEnable() { }  onDisable() { } } //这是两个类,直接可以就不会发生触发效果,什么都不输出,还...

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

172. list中加的button不能接收点击事件 求一个list中加button的demo [ 76%]

...}     updateListItem(cell: BagItem, index: number):void{         console.log("3333333333333");         if (cell.useBtn.clickHandler == undefined) {             cell.useBtn.on("click", this, this.onItemUse, [index]);         }     }     onItemUse(index):void{ ...

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

173. CommandBuffer_Outline 每次 addCommandBuffer都会永久增加10Gpu,removed掉相机事件也不会减少 [ 76%]

...MeshSprite3D) == null || !this.isUseOuline){            // console.log('spreite3D node meshSprite3D is null');            return;         }         var unlitMaterial = new Laya.UnlitMaterial();         unlitMaterial.albedoColor = new Laya...

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

174. hitTestPoint对象父容器rotation旋转之后检测不了碰撞 [ 76%]

...ish.y = 200 this.addChild(_fish); Laya.timer.loop(100, this, function () { console.log(_fish.x, _fish.y, _fish.width, _fish.height, _fish.rotation); if (_fish.hitTestPoint(_fish.x, _fish.y)) { console.log("hittttttt"); } }); } } //程序入口 Laya.init(600, 400); this.onLoaded() function onLoaded()...

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

175. 小米登录失败 [ 76%]

...ow["qg"].login({ success: function (res) { var data = JSON.stringify(res); console.log("OPPO登录:" + data); callBack(res); }, fail: function (res) { LogicManager.instance.toLoginSucc(); console.log("登陆失败:" + JSON.stringify(res)); } });  登陆失败:{"code":7605,"msg":"没有 数据","d...

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

176. 鼠标出屏事件 [ 75%]

...           Laya.stage.on(Laya.Event.MOUSE_OUT, this, function(){console.log("mouseout")});         Laya.stage.on(Laya.Event.MOUSE_UP, this, function(){console.log("mouseup")});     mouseup能正常监听到,stage上加的MOUSE_OUT事件,当鼠标移出屏幕时,在浏览...

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

177. Sprite3D添加组件或脚本(JavaScript-3D基础(JS)-LayaAir3D之精灵) [ 75%]

...or(){ super(); this.rotation = new Laya.Vector3(0, 0.01, 0); } onAwake() { console.log("onAwake"); } onStart() { console.log("onStart"); } onUpdate() { this.owner.transform.rotate(this.rotation, false); } onLateUpdate() { console.log("onLateUpdate"); } } ``` 这样脚本就添加完成了,我们...

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

178. Laya.Tween.to 有没有监听值的变化的方法? [ 75%]

...10 }, 1000, Laya.Ease.linearNone, Laya.Handler.create(this, function (p) { console.log(1) }), Laya.Handler.create(this, function (p) { console.log(p) })); 阿琴 • 2018-06-21 17:36 这样写吗?不对呀连console.log(1)都不输出了 阿琴 • 2018-06-21 11:31 static to(target: any, props: an...

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

179. 截屏文件没有保存 [ 75%]

...程是:https://ldc.layabox.com/doc/?nav=zh-js-7-2-7 if( window.conch ) { console.log("i'm here 1"); window.conch.captureScreen(function(arrayBuff,width,height){ conch.saveAsPng(arrayBuff,width,height,conch.getCachePath()+"/test.png" ); console.log("i'm here 2:" + arrayBuff.byteLength + " " + width +...

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

180. Sprite3D添加组件或脚本(TypeScript-3D基础(TS)-LayaAir3D之精灵) [ 75%]

...tor3 = new Laya.Vector3(0, 0.01, 0); constructor(){ super(); } onAwake() { console.log("onAwake"); } onStart() { console.log("onStart"); } onUpdate() { (this.owner as Laya.Sprite3D).transform.rotate(this.rotation, false); } onLateUpdate() { console.log("onLateUpdate"); } } ``` 这样脚本就添加...

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