大约有 1,499 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0063 秒)
...e; btn_start.on(Laya.Event.CLICK,this,()=>{ // 加载资源足以播放 if(videoElement.readyState == 4){ videoElement.play(); } }); 附件 : --> demo.zip 2020-07-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回...
来源: Laya_社区 发布时间: 20200722
...是3d显示对象列表里添加2d显示对象,我看3d的addChild源码 if (!((node instanceof laya.d3.core.Sprite3D ))) throw new Error("Sprite3D:Node type must Sprite3D."); 是不支持的,请问有其他方式么? 麟。 • 2018-09-12 18:44 我的目的是想2d的ui可以有3d...
来源: Laya_社区 发布时间: 20180912
...; htmlCanvas.toBase64("image/png", 0.9, function(base64){ //trace(base64); if (!testTf){ __JS__('setWork(base64)'); } }); 2018-10-29 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 ohkei as3、as2、h5 相关问题 关于微信小游戏...
来源: Laya_社区 发布时间: 20180730
...),该如何解决? // 获取地理位置 function getCurPosition() { if (Laya.Geolocation.supported) { Laya.Geolocation.enableHighAccuracy = true; Laya.Geolocation.getCurrentPosition( Laya.Handler.create(null, cb_onGeoPositionSuccess), Laya.Handler.create(null, cb_onGeoPositionFail)); } else {...
来源: Laya_社区 发布时间: 20161102
...); _p2 = new UI2(); ShowHide(); } private function ShowHide():void { if (c % 2 == 0) { _con3.addChild(_p); _con3.addChild(_p2); } else { _p.removeSelf(); _p2.removeSelf(); } c++; Laya.timer.once(2000, this, ShowHide); } 【native2.0中】stage上加几个平级container,然后再同一con...
来源: Laya_社区 发布时间: 20181025
...ler(e:laya.events.Event):void { var touches: Array<any> = e.touches; if (touches) { for(let i=0;i<touches.length;i++){ let t =touches[i]; let nameIndex =e.touchId + "_" + i; console.log(nameIndex+":"+e.type); } } } 之能收到down和move! 2018-11-02 添加评论 免费帖 --> 分享 ...
来源: Laya_社区 发布时间: 20181102
...ate onMessageReceived(msg: any): void { console.log("接收到消息:"); if (typeof msg === "string") { console.log("文本数据:", msg); } else { console.log("接收到非字符串数据", msg); } // 清除输入缓存,避免残留数据 this.socket.input.clear(); } /** 连接关闭回调 */...
来源: Laya3.0_文档 发布时间: 20251010
...76*****233 • 2017-08-28 11:51 private get IndexOfShieldName(): Boolean { if (this.shieldArray.indexOf(this.roleName) != -1) { var index:number=this.shieldArray.indexOf(this.roleName); console.log("找到了,位置在"+index); return true; } console.log("没找到"); return fals...
来源: Laya_社区 发布时间: 20170828
...nerWidth; //获取窗口显示区的高度。 desHeight=window.innerHeight if(desHeight!=this.sourceHeight) { this.bg.y = 180; } else { this.bg.y = 540; } } 代码就这么写的 点击输入框监听不到 哪里用错了吗 2017-03-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...
来源: Laya_社区 发布时间: 20170322
...3(posX, posY, posZ); var material = new Laya.StandardMaterial(); material.diffuseTexture = Laya.Texture2D.load(textureUrl); instance.meshRender.material = material; instance.meshRender.castShadow = true; instance.meshRender.receiveShadow = true; instance.volume = { 'x': x, 'y': y, 'z': z } prevBox =...
来源: Laya_社区 发布时间: 20180402