大约有 443 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0054 秒)
...: 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
...onst TiledMapFlipConstHalf = TiledMapFlipConst / 2; class GridSprite extends Laya.Sprite { constructor() { super(...arguments); this.relativeX = 0; this.relativeY = 0; this.isAloneObject = false; ...
来源: Laya_社区 发布时间: 20220627
...ya不能是使用,是因为没有声明,在libs文件夹下面建立,extend.d.ts,加入下面的代码: interface Promise<T> { then<TResult1, TResult2>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) ...
来源: Laya_社区 发布时间: 20180604
...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
...和渲染函数以实现自定义的富文本类型) */ export class Label extends Laya.Text { constructor() { super(); } private typeList = {}; //取出文本里面的关键字 private typeIndexList = ; //关键字所在文本的位置 private typeLines = ; //利用关键字重新划分文本 priva...
来源: Laya_社区 发布时间: 20180417
...: 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
...ipt /** * TypeScript语言的3D脚本示例 */ export default class TSDemo extends Laya.Script3D { constructor() { super(); } } ``` > 2D脚本与3D脚本不要混用,如果是用IDE创建的脚本模板,需要将继承的2D脚本类(Laya.Script)改为3D脚本类(Laya.Script3D), ###### ...
来源: Laya2.0_文档 发布时间: 20210715
....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
... = Laya.Burst; export class JinBi extends ShuriKenParticle3D { constructor() { let material = ShurikenParticleMaterial.load("resources/Assets/ArtResources/Effects/Materials/Effect_yu_jinbi_xulie.lmat"); ...
来源: Laya_社区 发布时间: 20170605
....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