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

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

311. Tree属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 31%]

...png", "res/ui/vscroll$bar.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, this.onLoadComplete)); } private onLoadComplete(): void { // 组装tr...

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

312. 3D寻路 · LayaAir3.0文档 · LAYABOX [ 31%]

...径的调用: //设置鼠标弹起事件响应 Laya.stage.on(Event.MOUSE_UP, this, function (): void { //起始和目标点 var start = this.graph.grid[this.startPoint.x][this.startPoint.y]; var end = this.graph.grid[this.endPoint.x][this.endPoint.y]; //调用A* serach方法获得最短路径 this...

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

313. 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

314. 树状列表组件 · LayaAir3.4 · 引擎文档 · 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

315. 【简单跑酷--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

316. 【简单跑酷--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

317. 组件装饰器说明 · LayaAir3.4 · 引擎文档 · 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

318. 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

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

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

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

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

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

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