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

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

201. Uncaught 无法实例class PhysicsCollider extends PhysicsTriggerComponent [ 96%]

...LLFILTER) {         super(collisionGroup, canCollideWith);         this._enableProcessCollisions = false;     }     _addToSimulation() {         this._simulation._addPhysicsCollider(this, this._collisionGroup, this._canCollideWith);     }     _removeFromSimulation() {        ...

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

202. 鼠标交互-修正交互区域 [ 96%]

...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_示例 发布时间: 20241002

203. 射线检测-射线检测 [ 96%]

...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_示例 发布时间: 20241002

204. BUG:Sprite.event() [ 96%]

...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

205. list 中的scrollbar [ 96%]

...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

206. 2D物理-碰撞事件与传感器 [ 96%]

...开发更高效。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_示例 发布时间: 20241002

207. 输入设备-摇一摇 [ 96%]

...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_示例 发布时间: 20241002

208. Laya api 中可能的bug [官方来看] [ 96%]

...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

209. 求绘制遮罩会引起黑屏的解决办法 [ 96%]

求绘制遮罩会引起黑屏的解决办法 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

210. 鼠标交互-双指旋转(多点触控) [ 96%]

...(); })(); function setup() { createSprite(); Laya.stage.on(Event.MOUSE_UP, this, onMouseUp); Laya.stage.on(Event.MOUSE_OUT, this, onMouseUp); } function createSprite() { sp = new Sprite(); var w = 200, h = 300; sp.graphics.drawRect(0, 0, w, h, "#FF7F50"); sp.size(w, h); sp.pivot(w / 2, h / 2); sp.po...

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