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

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

11. 3D寻路 · LayaAir3.0文档 · LAYABOX [ 95%]

...径的调用: //设置鼠标弹起事件响应 Laya.stage.on(Event.MOUSE_UP, this, function (): void { //起始和目标点 var start = this.graph.grid[this.startPoint.x][this.startPoint.y]; var end = this.graph.grid[this.endPoint.x][this.endPoint.y]; //调用A* serach方法获得最短路径 this...

来源: Laya3.0_文档 发布时间: 20230303

12. html5发布iOS编译报错 [ 95%]

...d/Products/Debug-iphonesimulator/wangpainiuniu.app/wangpainiuniu normal x86_64     cd /Users/poss/Desktop/release/iOS/wangpainiuniu/wangpainiuniu     export IPHONEOS_DEPLOYMENT_TARGET=7.0     export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/u...

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

13. 引擎 TiledMap 居然不支持图块翻转 [ 95%]

...奢侈的浪费啊。 附上翻转算法贴:Tiled 读取翻转(Filpping)_猫哓胖的博客-CSDN博客 以下我修改后支持反转的版本,有需要的朋友拿去不谢!!! -----------------------------------------------------------------------------------------------------------------------...

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

14. 加载.lh文件 运行后黑屏 无法显示 [ 95%]

...rivate scene:Laya.Scene3D;     private text:Laya.Text;     private _upVector3:Laya.Vector3 = new Laya.Vector3(0, 1, 0);     constructor() {         this._upVector3 = new Laya.Vector3(0, 1, 0);         Laya3D.init(0, 0); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.s...

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

15. 分享一个自己做的游戏公告功能,跑马灯效果 [ 95%]

....width = 1200 this.height = 55 this.visible = false this.pos(565,150) this._createHorn() this._createBg() this._createView() this.on(Laya.Event.UNDISPLAY,this,this.stop) this.on(Laya.Event.DISPLAY,this,this.play) } /** 创建滚动区域 */ _createView() { this.hornBox = new Box() let _rectangle = n...

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

16. (实现手指控制模型的缩放旋转)触控可以识别 但是导入的模型没有根据触控反应 [ 95%]

... 多谢 class MultiTouch{     private text:Laya.Text;     private _upVector3:Laya.Vector3 = new Laya.Vector3(0, 1, 0); constructor(){         Laya.alertGlobalError = true; this._upVector3 = new Laya.Vector3(0, 1, 0); //初始化引擎         Laya3D.init(0, 0);        ...

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

17. laya项目打包as项目后,as项目目录中缺少库x86_64 [ 95%]

laya项目打包as项目后,as项目目录中缺少库x86_64 laya项目打包as项目后,as项目目录中缺少库x86_64,这个问题是as那边的问题还是laya项目打包时的问题? 附件 : --> 2019-08-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...

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

18. normalizedViewport修改问题 [ 95%]

... /** *获取裁剪空间的视口。 *@return 裁剪空间的视口。 */ __getset(0,__proto,'normalizedViewport',function(){ if (!this._viewportExpressedInClipSpace){ var vp=this._viewport; var size=this.renderTargetSize; var sizeW=size.width; var sizeH=size.height; this._normalizedViewport.x=vp.x ...

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

19. Cannon物理设置了ColliderShape的localOffset属性 并 isKinematic=true时模型会匀速移动 [ 95%]

...重现的项目代码,   目测bug原因是 laya.cannonPhysics.js 内的_innerDerivePhysicsTransformation 方法中,错误的将 colliderShape.localOffset 的世界坐标,设置成了 transform.position 。导致物体会一直匀速移动。 _innerDerivePhysicsTransformation(physicTransform...

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

20. 多点触控的使用(ActionScript-3D基础(AS3)-LayaAir3D之鼠标交互) [ 94%]

...date方法 override public function onUpdate():void { var touchCount:int = _scene.input.touchCount(); if (1 === touchCount){ //判断是否为两指触控,撤去一根手指后引发的touchCount===1 if (isTwoTouch){ return; } _text.text = "触控点为1"; //获取当前的触控点,数量为1 v...

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