大约有 1,828 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0061 秒)
Laya_社区(1468) Laya3.0_api(102) Laya2.0_文档(77) Laya2.0_api(64) Laya2.0_示例(37) Laya_示例(36) Laya3.0_文档(35) laya_api(9)
... //初始化引擎 Laya.init(1334, 750); Laya.stage.alignH=Stage.ALIGN_MIDDLE; Laya.stage.alignV=Stage.ALIGN_CENTER; btn1 = new Button(null,"显示"); ...
来源: Laya_社区 发布时间: 20180425
...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
...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
... (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
...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
... 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
...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
...错。。才能进去 问题状态 最新活动: 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
...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
....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