大约有 4,034 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0080 秒)
Laya_社区(3264) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(107) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...画播放模式 在下面的示例代码中有一段代码 ```typescript this.skeleton = this.templet.buildArmature(); ``` 与内置版Spine动画播放模式不同的地方在于内置版我们需要传一个参数来确认使用哪种模式(三种模式中,0:不支持换装,1,2支持换装)...
来源: Laya2.0_文档 发布时间: 20210715
...LLFILTER) { super(collisionGroup, canCollideWith); this._enableProcessCollisions = false; } _addToSimulation() { this._simulation._addPhysicsCollider(this, this._collisionGroup, this._canCollideWith); } _removeFromSimulation() { ...
来源: Laya_社区 发布时间: 20200505
...leMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } setup() { this.buildWorld(); this.createLogger(); } buildWorld() { const Event = Laya.Event; this.createCoralRect(); this.createDeepSkyblueRect(); this.createDarkOrchidRect(); // 设置舞台 Laya.stage.name =...
来源: Laya2.0_示例 发布时间: 20250223
...s/threeDimen/skinModel/PangZi/PangZi-doubipangzi.lm"], Laya.Handler.create(this, onComplete)); var sprite3d1; var sprite3d2; var sprite3d3; var sprite3d4; var sphereMesh; var str5 = "旁白 : 秀恩爱,死得快! (MeshCollider)"; function onComplete(){ //添加精灵到场景 sprite3d1 = scene.a...
来源: Laya_示例 发布时间: 20250223
...JS代码,的确有问题,data.unshift没有判断是否是数组 if (this.method==null)return null; var id=this._id; if (data==null) var result=this.method.apply(this.caller,this.args); else if (!this.args && !data.unshift)result=this.method.call(this.caller,data); else if (this.args)res...
来源: Laya_社区 发布时间: 20170215
...e */ __proto.onTargetMouseDown=function(e){ if ((this.isLockedFun)&& !this.isLockedFun(e))return; this.event(/*laya.events.Event.END*/"end"); this._clickOnly=true; this._lastOffset=0; this._checkElasti...
来源: Laya_社区 发布时间: 20201118
...开发更高效。class Physics_Physics_CollisionEvent { constructor() { this.count = 7; this.bodys = []; this.touching = []; Laya.Config.isAntialias = true; Laya.Laya.init(1200, 700, Laya.WebGL); Laya.Stat.show(); Laya.Physics.enable(); Laya.PhysicsDebugDraw.enable(); Laya.Laya.stage.alignV = Laya....
来源: Laya2.0_示例 发布时间: 20250223
...ake() { Shake.instance.start(5, 500); Shake.instance.on(Laya.Event.CHANGE, this, onShake); console.text = '开始接收设备摇动\n'; } function onShake() { shakeCount++; console.text += "设备摇晃了" + shakeCount + "次\n"; if (shakeCount >= 3) { Shake.instance.stop(); console.text += "停止...
来源: Laya_示例 发布时间: 20250223
...order时是调整不到的__proto.render=function(context,x,y){ var childs=this._childs; this._childs=this._showGridList; _super.prototype.render.call(this,context,x,y); this._childs=childs; }2.core中Sprite的zorder的set方法中 有一行代码有疑似bug,麻烦官方帮忙确认 /**z排序,...
来源: Laya_社区 发布时间: 20180412
求绘制遮罩会引起黑屏的解决办法 this.progressvalue = new Laya.Image("Game/bar_yuan.png"); this.progressvalue.anchorX = 0.5; this.progressvalue.anchorY = 0.5; this.progressvalue.pos(15, 15); //记录宽度 this.width_x = this.progress.width + 3; this.vmask = new Laya.Sprite(); this....
来源: Laya_社区 发布时间: 20180725