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

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

311. Tree属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 30%]

...r.png", "../../../../res/ui/vscroll$down.png", "../../../../res/ui/vscroll$up.png", "../../../../res/ui/tree/clip_selectBox.png", "../../../../res/ui/tree/clip_tree_folder.png", "../../../../res/ui/tree/clip_tree_arrow.png" ]; //加载资源 Laya.loader.load(res, new Handler(this, onLoadComplete)); ...

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

312. 树状列表组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 29%]

...a; @regClass() export class UI_Tree extends Laya.Script { constructor() { super(); } // 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { var res: any[] = ["atlas/comp/vscroll.png", "atlas/comp/vscroll$bar.png", "atlas/comp/vscroll$...

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

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

.../背景 this.bg = null; //背景右边补丁 this.rightBg = null; Floor.__super.call(this); } //事件名称 //超过屏幕一定值出发新的floor事件 Floor.OUT_COMPLETE = "floor_out_complete"; //整个地板都不在屏幕里面事件 Floor.OUT_DIE = "floor_out_die"; //Floor 是一个显示对...

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

314. 【简单跑酷--JS版】---Lv.6 终篇 [ 28%]

...VALUE = 0; //最大值 this.MAX_VALUE = 100; //值 this.value = 100; Hp.__super.call(this); this.init(type); } //能量类型 Hp.HP_TYPE_ENERGY = "hp_type_energy"; //速度类型 Hp.HP_TYPE_SPEED = "hp_type_speed"; //Hp Laya.class(Hp,"Hp", laya.display.Sprite); var _proto = Hp.prototype; _proto.init...

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

315. 组件装饰器说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 27%]

...举 enum TestEnum { A, B, C }; //字符串形式的枚举 enum Direction { Up = 'UP', Down = 'DOWN', Left = 'LEFT', Right = 'RIGHT' }; @regClass() export class Script extends Laya.Script { @property(Number)//数字类型,等价于{ type : "number" } num : number; @property(String)//单行字符串...

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

316. 3D中摄像机绕物体旋转该如何实现? [ 26%]

... targetDistance: number; //protected camera: Laya.Camera; constructor() { super(); } public transform: Transform3D; onStart(): void { this.transform = (this.owner as Laya.Sprite3D).transform; this.CurrentAngles = new Vector3(-this.transform.rotationEuler.x, this.transform.rotationEuler.y, 0); this.t...

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

317. 官方案例里摄像机绕物体旋转脚本的问题 [ 26%]

...下有很多接口,属性不存在。比如this.camera.moveForward、 super._initialize(owner)、super._update(state)等,放在1.7版本里是有的。是不是LayaAir.d.ts有修改。现在有别的接口,方法替代吗,我在官方文档里找了好久都没找到。或者哪位大神能...

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

318. UI运行时 · LayaAir3.3 · 引擎文档 · LAYABOX [ 25%]

...节点还是2D预制体的根节点,它们的Runtime是没有onStart、onUpdate、onLateUpdate方法的。 注意2:onOpened、onClosed方法是只有Scene2D节点的Runtime有,其它情况是没有的。 3.3 不同的使用UI组件方式 相比自定义的组件脚本,UI组件脚本可以直...

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

319. laya.d3.core.Camera [ 25%]

...Node transform : Transform3D[read-only] 获取精灵变换。 Sprite3D up : Vector3[read-only] 获取上向量。 BaseCamera url : String 获取资源的URL地址。 Sprite3D useOcclusionCulling : Boolean 渲染时是否用遮挡剔除。 BaseCamera  viewMatrix : Matrix4x4[read-only] 获取视...

来源: laya_api 发布时间: 20170929

320. TiledMap地图 · LayaAir3.3 · 引擎文档 · LAYABOX [ 25%]

...ya.Event.MOUSE_DOWN, this, this.mouseDown); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.mouseUp); this.resize(); } //地图加载完成的回调 private completeHandler(e: any = null): void { this.onLoaded(); } /** * 移动地图视口 */ private mouseMove():void{ var moveX:number = this.MapX - (L...

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