大约有 140 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0689 秒)
...rt({ duration: data.duration }); //监听录屏开始事件 this._recorder.onStart((res)=>{ console.log("录屏开始 res:" + JSON.stringify(res)); }); //监听录屏错误事件 this._recorder.onError((errMsg)=>{ console.log("录屏错误 errMsg:" + errMsg); }); } } /** * 停止录屏, * 开发...
来源: Laya2.0_文档 发布时间: 20210715
...cript { private ChatMessage: any; private socket: WebSocket | null = null; onStart() { console.log("Game start"); // 初始化 protobuf this.initializeProtobuf(); // 初始化 WebSocket 连接 this.initializeWebSocket(); } // 初始化 protobuf 并加载消息定义 private initializeProtobuf() { //...
来源: Laya3.0_文档 发布时间: 20251010
...: void { this.txt.text = "第{n=1}页"; //显示文本的初始化内容 } onStart(): void { let page: number = 1; Laya.timer.frameLoop(10, this, () => { page += 1; //在定时器中让变量page每次自增1 this.txt.setVar("n", page); //使用setVar方法,让text文本中变量n的值动态...
来源: Laya3.0_文档 发布时间: 20251010
...ra: 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.targetAngles = new Vector3(-this.transform...
来源: Laya_社区 发布时间: 20170714
...ra: 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.targetAngles = new Vector3(-this.transform...
来源: Laya_社区 发布时间: 20190224
...nds Laya.Script { //粒子特效的路径 private filePath = "FireEffect"; onStart() { console.log("Game start"); //加载粒子特效资源 Laya.loader.load(this.filePath, Handler.create(this, () => { })); } //每次鼠标点下屏幕后,会创建一个特效 mouseDown(e: Event): void { var pa...
来源: Laya3.0_文档 发布时间: 20251010
...nds Laya.Script { //粒子特效的路径 private filePath = "FireEffect"; onStart() { console.log("Game start"); //加载粒子特效资源 Laya.loader.load(this.filePath, Handler.create(this, () => { })); } //每次鼠标点下屏幕后,会创建一个特效 mouseDown(e: Event): void { var pa...
来源: Laya3.0_文档 发布时间: 20250104
...ite3D } ) private target: Laya.Sprite3D; private animator : Laya.Animator; onStart() { this.label.on( Laya.Event.CLICK, this, this.test ); //获得状态机 this.animator = this.target.getComponent<Laya.Animator>(Laya.Animator); } //运行状态机的跑动画,可使用动作融合方式 tes...
来源: Laya3.0_文档 发布时间: 20251010
...录的结构,或者进行必要的检查和安装等。 * @param task */ onStart?(task: IBuildTask): Promise<void>; /** * 正在收集需要发布的资源。assets集合是系统根据依赖、resources目录规则等所有有效的规则收集的所有需要发布的资源对象,你可...
来源: Laya3.0_文档 发布时间: 20251010
...ification()0|0|10000 08-14 10:57:51.464 5115-5115/? I/HwLauncher: Launcher onStart() Launcher dynamicIconsRegister DynamicUpdater registerReceiver 08-14 10:57:51.464 3526-5072/? I/HwActivityManagerService: ProcessRecord ProcessRecord{1a72829 9944:com.huawei.health:DaemonService/u0a106} i...
来源: Laya_社区 发布时间: 20180814