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

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

381. 圆环不跟随 sprite 一起缩放? [ 79%]

...otSp = new Laya.Sprite();  this.firstSp = new Laya.Sprite(); this.firstSp.graphics.drawRect(0, -100, 200, 200, null, "#ffffff"); this.firstSp.graphics.drawLine(0, 0, 100, 100, "#ffffff", 5); this.firstSp.graphics.drawCircle(100, 100, 20, null, "ffffff"); Laya.stage.on(Laya.Event.MOUSE_WHEEL, this, ...

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

382. laya.d3.renderobjs.nativeobj.NativeVertexBuffer3D_API3.0 [ 78%]

...anRead(): boolean Inherited from VertexBuffer3D.canRead Defined in laya/d3/graphics/VertexBuffer3D.ts:33 是否可读。 Returns boolean instanceBuffer get instanceBuffer(): boolean set instanceBuffer(value: boolean): void Overrides VertexBuffer.instanceBuffer Defined in laya/d3/RenderObjs/NativeOBJ...

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

383. 关于fillText问题 [ 78%]

...问题 private label_image:Laya.Sprite=new Laya.Sprite(); this.label_image.graphics.fillText(xxx, xxx,"15px Arial","#000000","center"); this.label_image.pos(0,0) Laya.stage.addChild(this.label_image); 这样写为什么CurMem会增加接近16M,这不就是在精灵上绘制嘛,简单来说就...

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

384. 引擎示例中的新手引导自己写了一次,不知道为什么无法实现点击。 [ 78%]

...; var maskArea = new Sprite(); guideContainer.addChild(maskArea); maskArea.graphics.drawRect(0, 0, width, height, "#000000"); maskArea.alpha = 0.5; var interactionArea = new Sprite(); guideContainer.addChild(interactionArea); interactionArea.blendMode = "destination-out"; var tipContainer = new Spri...

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

385. 为什么Laya.Panel的子节点在(0,0)位置会不显示呢? [ 78%]

... = 0; // 用下面这组数据是可显示的 // sp.y = 1; // sp.x = 1; sp.graphics.drawRect(0, 0, 200, 200, "#00FF00"); Laya.stage.addChild(panel);   这个是我的代码,sp是一个精灵,放在panel的0,0点后确实是不显示,往右下移一个像素后就能显示出来了 2017-02-20 0 0 ...

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

386. 混合模式-Lighter [ 78%]

...tion onTweenComplete() { evalBgColor(); } function renderBg() { Laya.stage.graphics.clear(); Laya.stage.graphics.drawRect( 0, 0, phoenixWidth, phoenixHeight, getHexColorString()); } function getHexColorString() { bgColorChannels.r = Math.floor(bgColorChannels.r); // 绿色通道使用0 bgColorChanne...

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

387. poly组件是各种坑 [ 78%]

...child数量居然是0,我这张image下有17个poly,然后去image下的graphic下看只发现有一个为cmd的数组里面存的都是坐标不知道是不是记录的poly也刚好是17个,然后完全没有记录这些poly我给它的命名这叫人怎么知道点击的是哪一个poly? 附...

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

388. 屏幕适配-缩放-No Border [ 78%]

...alRect() { const Sprite = Laya.Sprite; this.rect = new Sprite(); this.rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(this.rect); this.updateRectPos(); } updateRectPos() { this.rect.x = Laya.stage.width / 2; this.rect.y = Laya.stage.height / 2; } } new SmartScale_Scale_NOBO...

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

389. 屏幕适配-缩放-No Scale [ 78%]

...alRect() { const Sprite = Laya.Sprite; this.rect = new Sprite(); this.rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(this.rect); this.updateRectPos(); } updateRectPos() { this.rect.x = Laya.stage.width / 2; this.rect.y = Laya.stage.height / 2; } } new SmartScale_Scale_NOSC...

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

390. 混合模式-Lighter [ 78%]

...esult; } onTweenComplete() { this.evalBgColor(); } renderBg() { Laya.stage.graphics.clear(); Laya.stage.graphics.drawRect( 0, 0, phoenixWidth, phoenixHeight, this.getHexColorString()); } getHexColorString() { bgColorChannels.r = Math.floor(bgColorChannels.r); // 绿色通道使用0 bgColorChannels.g...

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