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

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

301. canvas下资源清理的问题 [ 63%]

...           //初始化引擎             Laya.init(1334, 750);                          Laya.stage.alignH=Stage.ALIGN_MIDDLE;             Laya.stage.alignV=Stage.ALIGN_CENTER;                          btn1 = new Button(null,"显示");  ...

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

302. 鼠标交互-修正交互区域 [ 63%]

...ect.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height / 2, "#FF7F50"); //设置名称 coralRect.name = "珊瑚色容器"; coralRect.size(Laya.stage.width, Laya.stage.height / 2); Laya.stage.addChild(coralRect); coralRect.on(Event.MOUSE_DOWN, this, this.onDown); } createDeepSkyblueRect() { ...

来源: Laya2.0_示例 发布时间: 20251209

303. Config_API3.0 [ 62%]

...fined in Config.ts:16 Static animationInterval animationInterval: number = 50 Defined in Config.ts:26 2D动画 Animation 的默认播放时间间隔,单位为毫秒。 Static defaultFont defaultFont: string = "Arial" Defined in Config.ts:40 Static defaultFontSize defaultFontSize: number = 12 Defin...

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

304. vivo 的激励视频无法播放 app启动的时候报错 [ 62%]

... (no filename):8 ### App VBuiltIn ### Version: 1.10.3 Build 7/22/2020, 7:50:52 PM (no filename):8 Enable batch GL commands optimization! (no filename):8 running const: 22.53557300567627ms (no filename):8 ### App VNative ### Version: 1.10.3 Build 7/22/2020, 7:50:52 PM (no filename):8 running const: 3...

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

305. 加载TiledMap 不显示 [ 61%]

...Math.PI * 30) * radiusX;         var color: string = "#FF7F50";          this.sprite = new Sprite();         this.sprite.graphics.drawLine(0, 0, -radiusX, radiusY, color);         this.sprite.graphics.drawLine(0, 0, radiusX, radiusY, color);    ...

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

306. DialogManager设置弹出效果后,第一次能打开,第二次就打不开了。 [ 61%]

...                 Laya.Tween.to(dialog,{y:Laya.stage.height+50},500,Laya.Ease.backOut,Handler.create(this,(e)=>{                     e.close(false);                 },[dialog]));             },[],false); 设置完closeEffectHandler ...

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

307. 在Laya中使用Matter.js的最简示例 (JS) [ 61%]

...ar boxA = Bodies.rectangle(400, 200, 80, 80); var boxB = Bodies.rectangle(450, 50, 80, 80); var ground = Bodies.rectangle(400, 500, 810, 60, { isStatic: true }); // add all of the bodies to the world World.add(engine.world, [boxA, boxB, ground]); // run the engine Engine.run(engine); // run the rend...

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

308. laya绘制图形进行缩放的时候有问题 [ 61%]

...错。。才能进去 问题状态 最新活动: 2018-02-11 15:32 浏览: 650 关注: 2 人 a1748004424 • 2018-02-11 15:44 public static SymbolRoot(sp: Laya.Sprite, cfg: any) { sp.graphics.drawCircle(0, 0, 20, "#ffffff", "#000000", 3); sp.graphics.drawLine(-20, -20, 20, 20, &qu...

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

309. 2D物理-桥 [ 61%]

...reateBridge(); this.eventListener(); } createBridge() { const startPosX = 250, startPosY = 450; let ground = new Laya.Sprite(); Laya.Laya.stage.addChild(ground); let groundBody = new Laya.RigidBody(); groundBody.type = "static"; ground.addComponentIntance(groundBody); let chainCollider = ground.addC...

来源: Laya2.0_示例 发布时间: 20251209

310. 怎么对graphics画出来的图片进行鼠标点击拖动??? [ 61%]

....stage.height / 2; //这里是我加的代码 this.ape.graphics.drawCircle(50, 50, 30, "#ff0000"); this.ape.on(Event.MOUSE_DOWN, this, this.onStartDrag); } private showDragRegion(): void { //拖动限制区域 var dragWidthLimit: number = 350; var dragHeightLimit: number = 200; this.dragRegion = new...

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