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

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

1081. 绘制曲线(TypeScript-LayaAir基础篇(TS)-矢量图) [ 61%]

...      this.sp = new Sprite();             Laya.stage.addChild(this.sp);             //画折线             this.sp.graphics.drawCurves(10, 58, [0, 0, 19, -100, 39, 0], "#ff0000", 3);       }     } } new laya.Sprite_DrawShapes(); ``` ...

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

1082. 关联shader的uniform(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 61%]

...andler.create(this, function(mesh) { //设置猴子 var layaMonkey = scene.addChild(new Laya.MeshSprite3D(mesh)); layaMonkey.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Laya.Quaternion(0.7071068, 0, 0, -0.7071067); //创建材质 var customMaterial = n...

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

1083. 3D粒子 · LayaAir3.3 · 引擎文档 · LAYABOX [ 61%]

...(child); this._shurikenParticleSystem.push(child.particleSystem); } } this.addChild(this._particle); this._isInited = true; } //粒子特效播放,由于一个复杂的粒子特效由多个粒子系统组成,此时遍历粒子特效所有粒子系统对象调用play() play(): void { for (var i =...

来源: Laya3.0_文档 发布时间: 20251010

1084. 3D粒子编辑模块 · LayaAir3文档 · LAYABOX [ 61%]

...(child); this._shurikenParticleSystem.push(child.particleSystem); } } this.addChild(this._particle); this._isInited = true; } //粒子特效播放,由于一个复杂的粒子特效由多个粒子系统组成,此时遍历粒子特效所有粒子系统对象调用play() play(): void { for (var i =...

来源: Laya3.0_文档 发布时间: 20250104

1085. Laya2.0绘制扇形遮罩,显示到部分角度时显示会有部分缺失(demo已上传) [ 61%]

...node: Laya.Image = new Laya.Image('c1.png'); node.pos(300, 300) Laya.stage.addChild(node); var sp: Laya.Sprite = new Laya.Sprite(); node.mask = sp; sp.pos(50, 50); var sp2: Laya.Sprite = new Laya.Sprite(); sp2.pos(300, 500); Laya.stage.addChild(sp2); let r: number = 0 Laya.timer.loop(100, this, () =...

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

1086. 分享一个Shader版的CoolDown实现 [ 61%]

...); this.spe.pos(300, 350); this.spe.setProgress(this.progress); Laya.stage.addChild(this.spe); ----------------------源码-------------------------- import Shader = laya.webgl.shader.Shader;     export class coolDownShader extends Shader {         /**          * 当前着色器的一个...

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

1087. 关联shader的uniform(TypeScript-3D基础(TS)-LayaAir3D之Shader) [ 61%]

...andler.create(this, function(mesh) { //设置猴子 var layaMonkey = scene.addChild(new Laya.MeshSprite3D(mesh)); layaMonkey.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Laya.Quaternion(0.7071068, 0, 0, -0.7071067); //创建材质 var customMaterial = n...

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

1088. 解析sk资源报错 [ 61%]

...         skeleton0 = _templet.buildArmature();             addChild(skeleton0);             skeleton0.play("walk_left",true);         }                  private function onError():void         {             console.log("parse error");     ...

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

1089. ViewStack属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 61%]

...his.comp = new ui.ComponentDemoUI(); //添加到舞台上显示 Laya.stage.addChild(this.comp); //点击Tab选择按钮的处理 this.comp.tab.selectHandler = new Laya.Handler(this,onSelecte); } /**根据选择Tab的索引切换页面**/ function onSelecte(index){ //切换ViewStack子页面 this.com...

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

1090. Panel使用文档(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 61%]

...ScrollBarSkin = "comp/vscroll.png"; //将panel添加到stage上 Laya.stage.addChild(panel); //实例化Image组件 var img:Image = new Image(); //给image添加皮肤 img.skin = "comp/image.png"; //将image添加到panel组件中 panel.addChild(img); } } } ```

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