大约有 447 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0047 秒)
...2.0 在构造函数中获取基类的组件,报错说未定义。 export default class GameLoading extends ui.gamoloadingUI{ constructor(){ super(); this.PB.changeHandler = new Laya.Handler(this,this.onChange); } } 基类中明确有PB变量,是进度条。此处构造函数中设置事件报错...
来源: Laya_社区 发布时间: 20181225
...rs method: Function 要执行的函数的名称。例如,functionName。 Default value args: any[] = null 传递给 method 函数的可选参数列表。 Returns void clearTimer clearTimer(caller: any, method: Function): void Inherited from Node.clearTimer Defined in laya/display/Node.ts:609 清...
来源: Laya3.0_api 发布时间: 20231115
...D.constructor Defined in laya/d3/core/trail/TrailSprite3D.ts:36 Parameters Default value name: string = null Returns TrailSprite3D Properties Optional _extra _extra: INodeExtra Inherited from Node._extra Defined in laya/display/Node.ts:56 _scene _scene: Node Inherited from Node._scene Defined in lay...
来源: Laya3.0_api 发布时间: 20231115
....create时候提示onTxtLoad is undfine.请教应该怎么定义? export default class LocalTxt{ constructor() { LocalTxt.Instance = this; } onTxtLoad(aText){ console.info("dfasd"); } initTxt(){ Laya.loader.load("res/localtxt.txt",Laya.Handler.create(this, onTxtLoad),null,Loader.TEXT); } } 2019-01...
来源: Laya_社区 发布时间: 20190130
...robe:true, shaderType:2, uniformMap:{ u_gradientDirection: {type: Vector2, default:[1,1]}, // 渐变方向 u_gradientStartColor: {type:Vector4, default:[1,1,1,1]}, // 渐变起始颜色 u_gradientEndColor: {type:Vector4, default:[1,1,1,1]} // 渐变结束颜色 }, attributeMap: { a_position: Vector4...
来源: Laya3.0_文档 发布时间: 20251120
...名的无头像者 • 2018-10-25 14:56 写一个ts文件,写上 export default class Move extends Laya.Script{ /** @prop {name:target,tips:"目标容器",type:Prefab}*/ targetPrefab:Laya.Prefab; } 将文件在编辑模式下赋给点添加组件=》code=》move 然后创建一个box拖...
来源: Laya_社区 发布时间: 20181025
...renceCounter IClone Index Constructors constructor Properties blendingMode defaultWeight name playOnWake BLENDINGMODE_ADDTIVE BLENDINGMODE_OVERRIDE Accessors avatarMask defaultState Methods _addReference _clearReference _getReferenceCount _removeReference addState clone cloneTo destroy getAnimatorSt...
来源: Laya3.0_api 发布时间: 20231102
...3/math/Native/ConchVector4.ts:93 创建一个 Vector4 实例。 Parameters Default value x: number = 0 X轴坐标。 Default value y: number = 0 Y轴坐标。 Default value z: number = 0 Z轴坐标。 Default value w: number = 0 W轴坐标。 Returns ConchVector4 Properties elements elements: Float3...
来源: Laya3.0_api 发布时间: 20231102
... src/gameconfig.ts(6,8): Error TS1192: Module '"src/page/loadpage"' has no default export. 还有就是,图1,获取不到wx.loadSubpackage 附件 : --> 2019-04-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复...
来源: Laya_社区 发布时间: 20190401
...且给4个猴都添加了脚本。 > **脚本类**: ```typescript export default class MouseScript extends Laya.Script3D{ private meshsp:Laya.MeshSprite3D; constructor(){super();} /** * 覆写3D对象组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一...
来源: Laya2.0_文档 发布时间: 20210715