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

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

481. 自定义shader-边缘光照shader [ 35%]

...import shaderModule.customMaterials.CustomMaterial; /** * ... * @author */ public class Shader_GlowingEdge { private var rotation:Vector3 = new Vector3(0, 0.01, 0); public function Shader_GlowingEdge() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.screenMode = Stage....

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

482. 2D性能优化 · LayaAir3.4 · 引擎文档 · LAYABOX [ 34%]

...vate function setPosition(value):void { this.position = value; update(); } public function update() { console.log('rotation: ' + this.rotation + '\tscale: ' + this.scale + '\tposition: ' + this.position); } 调用以下代码更改状态: setRotation(90); setScale(2); setPosition(30); 控制台的...

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

483. laya.ui.Dialog_API3.0 [ 32%]

...ring search index... The search index is not available layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/ui/Dialog" Dialog Class Dialog Dialog 组件是一个弹出对话框,实现对话框弹出,拖动,模式窗口功能。 可以通过UIConf...

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

484. 自定义shader-地形shader [ 31%]

...is, function (): void { this.setCustomMaterial(scene.getChildAt(2)); }); } public setCustomMaterial(spirit3D: Laya.Sprite3D): void { if (spirit3D instanceof Laya.MeshSprite3D) { var meshSprite3D: Laya.MeshSprite3D = spirit3D as Laya.MeshSprite3D; var customMaterial: CustomTerrainMaterial = new Custo...

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

485. 【简单跑酷--JS版】---Lv.2 类之间的引用以及背景滚动实现 [ 29%]

...API错误还是这样的用法已经过时了?API中的说明如下。 public function load(url:String, type:String = null, cache:Boolean = true, group:String = null, ignoreCache:Boolean = false):void2、关于图片加载问题。 官方的飞机大战案例中,加载地图用的是bg.loadImage...

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

486. 射线检测-射线检测 [ 29%]

...= new Vector3(0, -1, 1); private var label:Label; private var scene:Scene; public function RayPicking04() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.screenMode = Stage.SCREEN_NONE; Stat.show(); scene = Laya.stage.addChild(new Scene()) as Scene; //初始化照相...

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

487. laya.map.TileAniSprite_API3.0 [ 25%]

...ring search index... The search index is not available layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/map/TileAniSprite" TileAniSprite Class TileAniSprite TildMap的动画显示对象(一个动画(TileTexSet),可以绑定多个动画显...

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

488. laya.map.GridSprite_API3.0 [ 25%]

...ring search index... The search index is not available layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/map/GridSprite" GridSprite Class GridSprite 地图的每层都会分块渲染处理 本类就是地图的块数据 author ... Hierarchy Sprite G...

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

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

...ds Laya.Script { @property({ type : Laya.Node, inspector: "MyTestField" }) public node: Laya.Node; } 3、实际效果: 六、自定义面板 可以通过以下方式给编辑器增加一个面板 @IEditor.panel("test", { title: "Test", icon : "editorResources/20230710-161955.png" }) export class T...

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

490. [LayaNative3]2d示例程序构建发布打包后,在OpenHarmony运行闪退 [ 13%]

...APPSPAWN: [sandbox_utils.cpp:163]errno is: 2, bind mount /data/service/el1/public/themes/100/a/app to /mnt/sandbox/100/com.layabox.game/data/themes/a/app 01-06 17:34:41.549 23051 23051 I C02c11/APPSPAWN: [sandbox_utils.cpp:163]errno is: 2, bind mount /data/service/el1/public/themes/100/b/app to /mnt...

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