大约有 2,740 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0073 秒)
Laya_社区(1925) Laya3.0_api(248) Laya2.0_api(162) laya_api(132) Laya_示例(81) Laya2.0_文档(81) Laya2.0_示例(65) Laya3.0_文档(46)
.../Game-SuperMary/SuperMary/release/web/res/atlas/option.atlas' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https. load(url) { var me = this; ...
来源: Laya_社区 发布时间: 20200107
...区域滚动效果,但scrollRect会保持0,0点位置不变。 default null Returns Rectangle Inherited from Text.viewport Defined in laya/display/Sprite.ts:1885 视口大小,视口外的子对象,将不被渲染(如果想实现裁剪效果,请使用srollRect),合理使用能提高渲染...
来源: Laya3.0_api 发布时间: 20231115
...yaMonkey.transform.position = _translate; Laya.stage.on(Laya.Event.RESIZE, null, function() { camera.convertScreenCoordToOrthographicCoord(pos, _translate); layaMonkey.transform.position = _translate; }); }); class OrthographicCamera { private pos: Laya.Vector3 = new Laya.Vector3(310, 500, 0); priva...
来源: Laya_示例 发布时间: 20251219
...ow.onblur = function() { console.log("onblur....?"); Laya.timer.once(2000, null, function() { Laya.Resource.destroyUnusedResources(); }); } 当触发了释放资源的函数,会报错如下: laya.webgl.js:5713 Uncaught TypeError: Cannot read property '_targets' of null at WebGLContext2D.__proto....
来源: Laya_社区 发布时间: 20181016
...form.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.clearColor = null; //添加方向光 var directionLight: Laya.DirectionLight = scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.direction = new Laya.V...
来源: Laya_社区 发布时间: 20180808
....linearVelocity = [this.preMovementX, this.preMovementY]; this.curTarget = null; } destoryJoint() { Laya.stage.off(Event.MOUSE_UP, this, this.destoryJoint); Laya.stage.off(Event.MOUSE_OUT, this, this.destoryJoint); let mouseJoint: MouseJoint = this.curTarget.getComponent(MouseJoint); mouseJoint.dest...
来源: Laya2.0_示例 发布时间: 20251219
...ch((urlPath, index) => { this.xxxx.loadAtlas(urlPath, null, lv + "_" + actionName + "_" + index); }); 播放时大概 playAniBody(actionName: string, direction: number, completeFun: Function = null): void { this.aniBody.destroyChildren(); ...
来源: Laya_社区 发布时间: 20170615
...子位置。 direction: Vector3 粒子方向。 Default value rand: Rand = null Default value randomSeeds: Uint32Array = null Returns void Globals "laya/d3/core/particleShuriKen/module/shape/BoxShape" BoxShape constructor enable randomDirection shapeType x y z clone cloneTo generatePositionAndDirect...
来源: Laya3.0_api 发布时间: 20231115
...olor = "#232628"; setup(); })(); function setup() { createLabel("#FFFFFF", null).pos(30, 50); createLabel("#00FFFF", null).pos(290, 50); createLabel("#FFFF00", "#FFFFFF").pos(30, 100); createLabel("#000000", "#FFFFFF").pos(290, 100); createLabel("#FFFFFF", "#00FFFF").pos(30, 150); createLabel("#0080...
来源: Laya2.0_文档 发布时间: 20210714
...LayaScene_game/game.ls") as Laya.Scene; Laya.stage.addChild(gameScene); }, null), Laya.Handler.create(this, (progress) => { console.log("当前进度:", progress) },null,false), Laya.Scene );07-11 16:53:45.923 30921-30972/? E/jswrapper: [ERROR] Failed to invoke _runtime_require, location: /home/g...
来源: Laya_社区 发布时间: 20190711