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

大约有 2,033 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0059 秒)

1061. 绘制三角形、多边形及根据数据绘制图案(TypeScript-LayaAir基础篇(TS)-矢量图) [ 71%]

... {             Laya.init(500, 300);             this.drawSomething();         }            private drawSomething(): void {             this.sp = new Sprite();             Laya.stage.addChild(this.sp);             /...

来源: Laya2.0_文档 发布时间: 20210714

1062. 如何使用graphics绘画虚线 [ 71%]

...ite = new Laya.Sprite(); sp.loadImage(data, 0, 0, 1280, 720,Handler.create(this,()=>{ sp.graphics.getBoundPoints().forEach(e=>{ console.log("_getBoundPointsM:",e); }); })); sp.x=0; sp.y=0; this._sptse=sp; Laya.stage.addChild(sp);

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

1063. 在Laya2上 getGraphicBounds获取失败 [ 71%]

...8-11-19 10:53 浏览: 1979 关注: 2 人 忽啊忽啊 • 2018-11-21 13:59 this.sp = new Laya.Sprite(); this.sp.loadImage("Attack_0_0002.png", Laya.Handler.create(this, (data)=>{ this.sp.graphics.drawTexture(this.sp.texture); var bounds = this.sp.getGraphicBounds(true); })); 这样绘...

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

1064. [LayaAir3]微信小游戏 高性能+模式文字显示不全 [ 71%]

...用getImageData了         //TextRender.isWan1Wan = true;         this.charRender = new CharRender_Canvas(2048, 2048, TextRender.scaleFontWithCtx, !TextRender.isWan1Wan, false);         TextRender.textRenderInst = this;         ILaya.Laya['textRender'] = this;   必须修改bugIOS ...

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

1065. ui设计模式下属性中var,name有何区别? [ 71%]

...var命名为c,那么a组件的运行时代码里就可以直接用a.c或this.c访问到b组件; name是给显示节点对象的命名,请查看API手册里Node部分。同上面的例子,要在a组件的运行时里通过name访问b,要使用getChildByName(c) 2021-01-23 0 0 分享 微博 Q...

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

1066. Clip属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 71%]

...Laya.loader.load([buttonSkin, clipSkin, bgSkin], laya.utils.Handler.create(this,onSkinLoaded)); } /***加载资源完成***/ private function onSkinLoaded(e:*=null):void { //显示背景图 showBg(); //创建计数器 createCounter(); //显示总数 showTotal(); //创建控制按钮 createController...

来源: Laya2.0_文档 发布时间: 20210714

1067. 动画挂点(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 71%]

...3D.load("LayaScene_SceneMonkey/Conventional/SceneMonkey.ls",Handler.create(this,function(res:Scene3D):void{ Laya.stage.addChild(res); //用于挂点的精灵 var box: MeshSprite3D = new MeshSprite3D(PrimitiveMesh.createBox(1,1,1)); var material: BlinnPhongMaterial = new BlinnPhongMaterial(); Texture...

来源: Laya2.0_文档 发布时间: 20210714

1068. 缓动动画(JavaScript-LayaAir基础篇(JS)-动画基础) [ 71%]

...Tween.to(letterText, { y : 300 }, 1000, Laya.Ease.bounceIn, Handler.create(this,changeColor,[letterText]), i * 100); ``` 由于需要增加新的引用,这次贴出全部的示例代码。 TweenDemo.js: ```javascript //初始化舞台 Laya.init(1334,750,Laya.WebGL); //背景颜色 Laya.stage.bgC...

来源: Laya2.0_文档 发布时间: 20210715

1069. UI-ProgressBar [ 71%]

...d(["res/ui/progressBar.png", "res/ui/progressBar$bar.png"], Handler.create(this, this.onLoadComplete)); } onLoadComplete() { const ProgressBar = Laya.ProgressBar, Handler = Laya.Handler; this.progressBar = new ProgressBar("res/ui/progressBar.png"); Laya.stage.addChild(this.progressBar); this.progres...

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

1070. 获取的ui页面里下on事件无法触发 [ 71%]

... 类代码如下: var GameStartView = function () { GameStartView.super(this); this.Start.on(Laya.Event.CLICK, this, this.open); console.log(this.Start); GameStartView.prototype.open = function(){ console.log("Open is ok"); } }; Laya.class(GameStartView,"GameStartView", GameStartUI); 输出:Butt...

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