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

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

1071. 3D粒子 · LayaAir3.4 · 引擎文档 · LAYABOX [ 41%]

...用预制体,在Assets下创建预制体,双击打开预制体后,在Sprite3D节点下通过鼠标右键来创建3D粒子 (图2.1.2) 三、3D粒子的使用 3D粒子的使用由三部分构成 粒子系统组件 粒子渲染模块 粒子着色器 (图3.0)从图3.0中看到,当创建...

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

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

...用预制体,在Assets下创建预制体,双击打开预制体后,在Sprite3D节点下通过鼠标右键来创建3D粒子 (图2.1.2) 三、3D粒子的使用 3D粒子的使用由三部分构成 粒子系统组件 粒子渲染模块 粒子着色器 (图3.0)从图3.0中看到,当创建...

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

1073. [LayaNative2.2.0beta4] 无论是否删除或者替换layabox.ttf 都会直接crash 【有demo】 [ 40%]

...ayaAir引擎)TS》的视频教程是否有配到代码下载? new Laya.Sprite();绘制图形以后,怎么删除释放资源? 怎么删除元素 删除场景中的模型,scene.removeChildAt()有问题(已解决) Laya API video / laya.device.media 是否支持 WebRTC 影音直播 问题...

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

1074. 分享一个Shader版的CoolDown实现 [ 40%]

... Laya.Texture = Laya.Loader.getRes("progress.png"); this.spe = new coolDownSprite(); this.spe.init(texture); //this.spe.initWithoutTexture(128, 128); this.spe.pos(300, 350); this.spe.setProgress(this.progress); Laya.stage.addChild(this.spe); ----------------------源码-------------------------- imp...

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

1075. 组件脚本的内置方法 · LayaAir3.4 · 引擎文档 · LAYABOX [ 39%]

...时执行 onUpdate(): void { //让持续盒子旋转 (this.owner as Laya.Sprite).rotation++; } //开始碰撞时执行 onTriggerEnter(other: any): void { var owner: Laya.Sprite = this.owner as Laya.Sprite; if (other.label === "buttle") { //碰撞到子弹后,增加积分,播放声音特效 if (t...

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

1076. 显示文本组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 39%]

...s() export class LabelControl extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type : Laya.Label } ) public lab: Laya.Label; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { th...

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

1077. 插件开发说明 · LayaAir3.4 · 引擎文档 · LAYABOX [ 39%]

...regClass() export class Script1 extends Laya.Script { declare owner : Laya.Sprite3D; } //TestCustomEditor.ts @IEditorEnv.customEditor(Script1) export class TestCustomEditor extends IEditorEnv.CustomEditor { declare owner: Laya.Sprite3D; onSceneGUI(): void { IEditorEnv.Handles.drawHemiSphere(this.own...

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

1078. 【简单跑酷--JS版】---Lv.5 玩家踩地板 [ 39%]

... Floor.OUT_DIE = "floor_out_die"; //Floor 是一个显示对象 继承此 Sprite Laya.class(Floor, "Floor", laya.display.Sprite); var _proto = Floor.prototype; /** * type int 1->地板默认宽度 other->随机宽度 */ _proto.init = function(type){ this.maxRight = 0; //如果不开启autoSize...

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

1079. LayaAir和原生DOM交互(JavaScript-2D进阶篇(JS)-扩展模块) [ 38%]

...'' + '' + '' + 'I like ' + '' + 'cheese' + '' + '' + ''; var sp = new Laya.Sprite(); sp.loadImage(data, 0, 0, 200, 200); Laya.stage.addChild(sp); ``` 通过data来当做url传递给loadImage这个方法引擎就会帮我们加载并解码显示出来。loadImage这个方法中的参数不仅仅有...

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

1080. 输入文本组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 37%]

...export class TextInputControl extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type : Laya.TextInput } ) public txtin: Laya.TextInput; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake():...

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