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

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

411. Cannot read property 'toDefault' of undefined报错什么原因 [ 71%]

...r.call(state); //从屏幕空间生成射线 this.point.elements[0] = Laya.stage.mouseX; this.point.elements[1] = Laya.stage.mouseY; this.camera.viewportPointToRay(this.point, this.ray); //11111111111111就下面这句报错 Laya.Physics.rayCast(this.ray, this._outHitInfo, Number.MAX_VALUE, 10); ...

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

412. LayaAir下加载阿拉伯TTF字体,手机上显示时左右顺序反了。 [ 71%]

...unction LayaSample() { //初始化引擎 Laya.init(640, 1136, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.screenMode = Stage.SCREEN_VERTICAL; //Stage.SCREEN_HORIZONTAL,Stage.SCREEN_VERTICAL Laya.stage....

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

413. laya.display.AnimationBase_API3.0 [ 71%]

...s count customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea index interval is3D isPlaying mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY rotation scaleX scaleY s...

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

414. URL的代码修改建议 [ 71%]

...动生成的ui代码报错 移植了一个游戏 代码重新 写的 修改stage的scale后,会发生异常情况 编辑了图片 执行代码说加载不出来资源 这个怎么回事? 这样写的代码,Tween动画里面只有alpha有效果,scalex和scaley没有变化,怎么回事啊...

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

415. 射线检测-选取物体 [ 71%]

...言、LayaAirIDE让项目开发更高效。Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; var scene = Laya.stage.addChild(new Laya.Scene()); //初始化照相机 var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera....

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

416. 导出的3D资源加载报错 [ 71%]

...3;     import laya.utils.Handler;          import laya.display.Stage;     import laya.events.Event;     import laya.utils.Stat;          public class LayaSample {                  private var _stateMachine:StateMachine;         public function Laya...

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

417. laya.display.FrameAnimation_API3.0 [ 71%]

...s count customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea index interval is3D isPlaying mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY rotation scaleX scaleY s...

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

418. 分享问题解决,关键词:canvas不在左上角,鼠标点击位置偏移怎么办 [ 71%]

.../ this._point.setTo(e.pageX || e.clientX, e.pageY || e.clientY); if (this._stage._canvasTransform) { this._stage._canvasTransform.invertTransformPoint(this._point); _this.mouseX = this._point.x; _this.mouseY = this._point.y; } _this._event.touchId = e.identifier || 0; this._tTouchID = _this._event.t...

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

419. laya.display.Text_API3.0 [ 71%]

...() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 onInit(); } private function onInit():void { var text:Text = new Text();//创建一个 Text 类的实例对象 text 。 text.text = "这个一个 Text 文本示例...

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

420. 微信资源加载问题 [ 71%]

...dler.create(null, function () { var a = new Laya.Image('comp/bg.png') Laya.stage.addChild(a) }), Laya.Handler.create(null, function (value) { console.log('加载进度:' + value) }, null, false)) 项目微信小游戏 基本就laya默认的2d微信小游戏里子 我就试试加载 然后用...

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