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

大约有 443 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0054 秒)

421. vivo小游戏 · LayaAir3.0文档 · LAYABOX [ 32%]

...: const { regClass, property } = Laya; @regClass() export class Script extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Scene3D }) scene3d: Laya.Scene3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方...

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

422. 引擎 TiledMap 居然不支持图块翻转 [ 32%]

...onst TiledMapFlipConstHalf = TiledMapFlipConst / 2;     class GridSprite extends Laya.Sprite {         constructor() {             super(...arguments);             this.relativeX = 0;             this.relativeY = 0;             this.isAloneObject = false;          ...

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

423. TS项目中怎么使用promise [ 31%]

...ya不能是使用,是因为没有声明,在libs文件夹下面建立,extend.d.ts,加入下面的代码: interface Promise<T> {     then<TResult1, TResult2>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) ...

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

424. LayaAir2.0(LayaBox)之小游戏开放域开发 [ 31%]

...aMaxUI"; import MyDialogUI = ui.game.MyDialogUI; ​ export class MyDialog extends MyDialogUI {    constructor() {        super();   } ​    onOpened(param: any): void {        console.log("mylog------:" + JSON.stringify("onOpened"));        this.openDataView.postMsg("test10086"); ...

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

425. 分享,扩展Laya.Text组件实现简单的富文本 [ 31%]

...和渲染函数以实现自定义的富文本类型) */ export class Label extends Laya.Text { constructor() { super(); } private typeList = {}; //取出文本里面的关键字 private typeIndexList = ; //关键字所在文本的位置 private typeLines = ; //利用关键字重新划分文本 priva...

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

426. 微信小游戏 · LayaAir3.0文档 · LAYABOX [ 30%]

...: const { regClass, property } = Laya; @regClass() export class Script extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Scene3D }) scene3d: Laya.Scene3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方...

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

427. 一篇上手LayaAir的3D物理引擎(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 29%]

...ipt /** * TypeScript语言的3D脚本示例 */ export default class TSDemo extends Laya.Script3D { constructor() { super(); } } ``` > 2D脚本与3D脚本不要混用,如果是用IDE创建的脚本模板,需要将继承的2D脚本类(Laya.Script)改为3D脚本类(Laya.Script3D), ###### ...

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

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

....AroundPos = plane.transform.position; */ export default class ModelViewer extends Laya.Script { // Text m_debugTip; public canRotation_X: boolean = true; public canRotation_Y: boolean = true; public canScale: boolean = true; /// <summary> /// Around center. /// </summary> //public targe...

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

429. 求ShuriKenParticle3D用法 [ 28%]

...                  = Laya.Burst;     export class JinBi extends ShuriKenParticle3D {         constructor() {             let material = ShurikenParticleMaterial.load("resources/Assets/ArtResources/Effects/Materials/Effect_yu_jinbi_xulie.lmat");          ...

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

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

....AroundPos = plane.transform.position; */ export default class ModelViewer extends Laya.Script { // Text m_debugTip; public canRotation_X: boolean = true; public canRotation_Y: boolean = true; public canScale: boolean = true; /// <summary> /// Around center. /// </summary> //public targe...

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