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

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

321. 正交相机要怎么控制啊,坐标什么的全部懵!看了这个官方示例表示不懂,为什么还要转化为2D坐标? [ 46%]

...ord(translate, translate); layaMonkey.transform.position = translate; Laya.timer.frameLoop(1, this, function () { layaMonkey.transform.rotate(rotation); }); }); Laya.stage.on(Laya.Event.RESIZE, null, function () { camera.orthographicVerticalSize = Laya.RenderState.clientHeight; }); 2017-08-08 0 0 ...

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

322. Laya.loader.create中的progress回调好像不准确? [ 46%]

...缓存文件 2.0好像去掉了合并批次 怎么停止正在运行Laya.timer.frameLoop的回调函数 Skeleton 类播放完成一遍后有没事件或者回调 执行回调函数时报is not a function 问题状态 最新活动: 2018-03-21 10:33 浏览: 811 关注: 2 人 jinfawu • 2018-03-21 10:...

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

323. ScrollRect设置会引起其他的UI资源无法正在显示 [ 46%]

...id { trace("[TestView.StartMove]") // TODO Auto Generated method stub Laya.timer.loop(100,this,UpdatePath,[len]); } private function UpdatePath(len:int):void { // TODO Auto Generated method stub var show:int = len -1; for(var i=0;i<len;i++){ if(arr[i]){ arr[i].x+= speed; if(arr[i].x>= show* PA...

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

324. laya.device.media.Video [ 46%]

...支持"lighter"。Sprite  buffered : *[read-only] buffered 属性返回 TimeRanges(JS)对象。TimeRanges 对象表示用户的音视频缓冲范围。缓冲范围指的是已缓冲音视频的时间范围。如果用户在音视频中跳跃播放,会得到多个缓冲范围。 buffered.length...

来源: Laya2.0_api 发布时间: 20190513

325. 修改position与修改localPosition结果不一致(同处于3d场景下的两个节点) [ 46%]

...e3D.instantiate(box);  scene.addChild(res1); scene.addChild(res2);  Laya.timer.frameLoop(1, this, () => { res1.transform.localPositionX += 0.016; res2.transform.position.x += 0.016;  console.log("本地坐标1:", res1.transform.localPosition); console.log("世界坐标1:", res1.transform.posit...

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

326. laya.ui.AdvImage_API3.0 [ 45%]

... scrollRect sizeGrid skewX skewY skin source stage staticCache tag texture timer toolTip top transform url viewport visible width x y zOrder Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance addInputChild callLater clearTimer contains customRender d...

来源: Laya3.0_api 发布时间: 20231102

327. discard property,please use transform's property instead [ 45%]

...e));         var _quaternion = new Laya.Quaternion();         Laya.timer.frameLoop(1, null, function () {             Laya.Quaternion.createFromYawPitchRoll(0.025, 0, 0, _quaternion);             var _direction = directionLight.direction;             Laya.Vector3.transformQ...

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

328. Cannot read property 'rayCast' of undefined [ 45%]

...nish(layaMonkey){ this.layaMonkey=this.scene.addChild(layaMonkey); // Laya.timer.frameLoop(1, this, this.onFrameLoop); } onFrameLoop(){ this.layaMonkey.transform.rotate(this.rotation, false); } mouseDown(){ this.point.x = Laya.MouseManager.instance.mouseX; this.point.y = Laya.MouseManager.instance.m...

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

329. LayaAir下TTF字体的使用方式? [ 44%]

...哈哈"; text.font="hu" text.pos(600,600); Laya.stage.addChild(text); Laya.timer.once(1000,this,onLoop); } private function onLoop():void { var text:Text=new Text(); text.fontSize=40; text.color="#FF00FF"; text.text="嘻嘻嘻嘻嘻"; text.font="hu" Laya.stage.addChild(text); } } }  注意:  首...

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

330. [LayaAir2]在使用videoDom创建视频元素后iPad跟iPhone中位置不一样 [ 44%]

...LayaAir3.0引擎,那边实现videoTexture不用自己手动刷新 Laya.timer.frameLoop(1, this, this.updateVideo, [texture2D]); },true); } updateVideo(tempTexture:Laya.Texture2D){ if(this.htmlvideo.video.readyState === this.htmlvideo.video.HAVE_ENOUGH_DATA) { //更新视频纹理 tempTexture.loadI...

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