大约有 427 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0040 秒)
Laya2.0 OC调用js export default class Test { public static onClick():void{ alert("456") } } [[conchRuntime GetIOSConchRuntime] runJS:@"Test.onClick()"]; error: ReferenceError: Can't find variable: Test p.p1 {margin: 0.0px 0.0px 0.0px 0.0px...
来源: Laya_社区 发布时间: 20190313
...sOptions: object Defined in laya/d3/WebXR/core/WebXRExperienceHelper.ts:34 default WebLayer option XRWebGLLayerInit alpha alpha: boolean = true Defined in laya/d3/WebXR/core/WebXRExperienceHelper.ts:38 antialias antialias: boolean = true Defined in laya/d3/WebXR/core/WebXRExperienceHelper.ts:35 dept...
来源: Laya3.0_api 发布时间: 20231115
天空穹不显示 export default class GameUI extends Laya.Scene { constructor() { super(); //加载场景文件 this.loadScene("test/TestScene.scene"); //添加3D场景 var scene = Laya.stage.addChild(new Laya.Scene3D()); //添加照相机 var camera = (scene.addChild(new Laya.Camera(0, 0.1, 100)...
来源: Laya_社区 发布时间: 20200728
...rStateScript import AnimationDefine from "../AnimationDefine"; export default class AttackState extends Laya.AnimatorStateScript { animator:Laya.Animator; onStateEnter(): void { } onStateExit(): void { if(this.animator) { this.animator.crossFade(AnimationDefine.IDLE,0.5,0,0); } } onSt...
来源: Laya_社区 发布时间: 20181109
...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
...rs method: Function 要执行的函数的名称。例如,functionName。 Default value args: any[] = null 传递给 method 函数的可选参数列表。 Returns void clearTimer clearTimer(caller: any, method: Function): void Defined in laya/display/Node.ts:609 清理定时器。功能同Laya.time...
来源: Laya3.0_api 发布时间: 20231115
...idth,但是实际显示是以文本宽度来显示的 示例代码export default class HtmlTest extends Laya.Sprite { constructor() { super(); this.init(); } init() { this.bg = new Laya.Sprite(); this.bg.graphics.drawRect(0, 0, 200, 200, '#ccc'); this.addChild(this.bg); this.htmlTxt = new Laya.HTM...
来源: Laya_社区 发布时间: 20210107
...2.0 在构造函数中获取基类的组件,报错说未定义。 export default class GameLoading extends ui.gamoloadingUI{ constructor(){ super(); this.PB.changeHandler = new Laya.Handler(this,this.onChange); } } 基类中明确有PB变量,是进度条。此处构造函数中设置事件报错...
来源: Laya_社区 发布时间: 20181225
... } protected onShown() { (this.contentPane as IEditor.InspectorPanel).resetDefault(); this.setSize(500, 250); this.contentPane.on("click_start_gen", this.startGen, this); this.contentPane.on("click_cancel_gen", () => { this.hide(); }, this); // 获取配置创建的组件 todo } protected onHide(...
来源: Laya_社区 发布时间: 20250731
....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