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

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

211. position -position应该怎么写?? [ 56%]

...?? 我这样写报错, viewDir显示是 NaN var viewDir; Laya.timer.frameLoop(1, this, viewDirLoop); function viewDirLoop() { cameraPos = camera.position; viewDir = camera.position - lineMesh.transform.position; console.log(viewDir); lineMesh.transform.lookAt(new Laya.Vector3(3, 3, 3), viewDir...

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

212. laya.display.Sprite.graphics对象的旋转问题 [ 56%]

...); sp.graphics.drawLine(0,0,200,200,'#FF00000'); sp.pivot(0,0); Laya.timer.frameLoop(1,this,onTimer,[sp]); } private function onTimer(sp:Sprite):void { sp.rotation+=1; } 2017-04-24 0 0 分享 微博 QZONE 微信 wqt542434707 赞同来自: 谢谢~ 2017-04-24 0 0 分享 微博 QZONE 微信 为什么...

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

213. 射线一直无法获取物体 [ 55%]

...mponent(Laya.SphereCollider);     });   设置射线:    Laya.timer.frameLoop(1, null, checkHit);     var hit = new Laya.RaycastHit();     var point = new Laya.Vector2();     var ray = new Laya.Ray(new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0));     function checkHit() {     ...

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

214. 2D图片在3D场景中定位问题 [ 55%]

...ya.stage.addChild(new Laya.Image("res/layabox.png")); Laya.timer.frameLoop(1, this, functionname); function functionname() { camera.viewport.project(warehouse1.transform.position, camera.projectionViewMatrix, _outPos); 2dname.pos(_outPos.x / Laya.stage.clientScaleX, _outPos.y / Laya.stage....

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

215. laya.ui.FrameClip [ 55%]

...event(type:String, data:* = null):Boolean 派发事件。 EventDispatcher frameLoop(delay:int, caller:*, method:Function, args:Array = null, coverBefore:Boolean = true):void 定时重复执行某函数(基于帧率)。功能同Laya.timer.frameLoop()。 Node frameOnce(delay:int, caller:*, method:Fu...

来源: laya_api 发布时间: 20170422

216. Laya.loader Progress回调形同虚设 [ 55%]

...的回调时间 ios原生回调问题 怎么停止正在运行Laya.timer.frameLoop的回调函数 load 加载完图集 回调函数可以传形参吗? Laya.Handler.create 加载图片回调参数问题 Laya.loader.create 进度回调函数执行两次 本人想做个批量加载json文件,然后...

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

217. laya.d3.webxr.core.WebXRCamera_API3.0 [ 55%]

...ntains convertScreenCoordToOrthographicCoord destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf normalizedViewportPointToRay off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisabl...

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

218. 射线检测-点击行走 [ 55%]

...hreeDimen/texture/layabox.png"); box.meshRender.material = mat; Laya.timer.frameLoop(1, this, checkHit); var ray = new Laya.Ray(new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); var point = new Laya.Vector2(); var _position = new Laya.Vector3(0, 0.25, 0); var _quaternion = new Laya.Quaternion()...

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

219. 分享:LayaAir实现曲线运动 [ 55%]

...,"#FF00FF"); Laya.stage.addChild(ball); ball.x=275; ball.y=200; Laya.timer.frameLoop(1,this,onFrame); } private function onFrame():void { // TODO Auto Generated method stub if (ball.x>540||ball.x<10) { xflag=! xflag; } if (xflag) { ball.x+=v; ball.y=200+d*Math.sin(v*ball.x*Math.PI/180); } else...

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

220. 在Unity中导出拖尾系统(JavaScript-3D基础(JS)-LayaAir3D之拖尾系统) [ 55%]

...为了体现效果,我们移动盒子和摄影机观察效果 Laya.timer.frameLoop(1,this,function(){ //使用差速来体现移动 box.transform.translate(new Laya.Vector3(0,0.05,0),false); camera.transform.translate(new Laya.Vector3(0,04,0),false); }); })); ``` ![](img/3.gif)(图3)

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