大约有 350 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0053 秒)
Laya_社区(97) Laya_示例(78) Laya2.0_示例(68) Laya3.0_api(55) Laya2.0_文档(35) Laya3.0_文档(6) laya_api(6) Laya2.0_api(5)
...URL, id, data) { // private completeHandler(data: Object, URL: string, id: number): void { //加载完成返回的data是arraybuffer; //......这里处理我们加密的图片数据,假设我们的图片加密数据是在图片的前面写入了四个字节的数据 //......解密逻辑开始处...
来源: Laya_社区 发布时间: 20180629
...ath.random()); let tex:Laya.Texture = Laya.Loader.getRes(this.bUrl); let x:number = this._testStatus == true ? 0:50;//Math.random()>0.5 ? 50 : 0; this._testStatus = !this._testStatus; // let canvasInfo = this.getCanvasWidthHeight(); let ctx = new Laya.Context(); // let w = canvasInfo.w//tex.width...
来源: Laya_社区 发布时间: 20230328
...刷新几次就变大了。 class GameMain{ public static pxTimes: number = Laya.Browser.height / Laya.Browser.clientHeight; constructor() { console.log('ch=' + Laya.Browser.clientHeight + ', h=' + Laya.Browser.height + ', pxTimes=' + GameMain.pxTimes); Laya...
来源: Laya_社区 发布时间: 20170403
...全覆盖下,不能只处理get或set,如: class A { protected _id:number = 1; public get id():number { return this._id } public set id(value:number){ this._id = vaule; } } class B extends A { public set id(value:number){ this._id = value + 1; } } class C extends A {...
来源: Laya_社区 发布时间: 20161109
...bVV(p6, p4)).concat(B2Math.SubVV(p5, p4)).join(","); } const dampingRatio: number = 0.5; const frequencyHz: number = 10.0; let distanceJoint1: DistanceJoint = new DistanceJoint(); distanceJoint1.otherBody = legBody2; distanceJoint1.selfAnchor = p2; distanceJoint1.otherAnchor = B2Math.SubVV(p5, p4); ...
来源: Laya2.0_示例 发布时间: 20241118
... private var mesh1:MeshSprite3D; private var camera2:Camera; private var x:Number = 0; private var y:Number = 0; public function D3Base_TargetTexture() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.screenMode = Stage.SCREEN_NONE; Stat.show(); loadUI(); var scene:Scen...
来源: Laya_社区 发布时间: 20170209
...templet:SpineTempletBinary; private skeleton:SpineSkeleton; private index: number = -1; constructor() { Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.scaleMode = Stage.SCALE_NOSCALE; Laya.stage.bgColor = "#232628"; Stat.show(); this.startFun(); } private startFun(): void { //创建动...
来源: Laya2.0_文档 发布时间: 20210715
...加缓动的函数 private function addTime(timeLine:TimeLine,sp:Sprite,yy:Number):void { timeLine=new TimeLine(); timeLine.to(sp, {y: yy}, 3000, Ease.linearIn); timeLine.once(Event.COMPLETE,this, complete,[sp,timeLine]); timeLine.play(0,false); } //清理缓动的函数 private function clearTime(t...
来源: Laya_社区 发布时间: 20161207
...用于处理单元格上的点击事件等 */ onListMouse(e: Event, index: number): void { console.log(e.target.name); if (e.type == Event.MOUSE_DOWN) { this.mouseDown = true; //如果单元格已经展开,则先恢复 if (this.itemIsOpen) { this.itemIsOpen = false; this.itemOpenId = -1; Tween.to(...
来源: Laya2.0_示例 发布时间: 20241118
...2-7562/com.dihong.testdcc I/LibraryLoader: Expected native library version number "",actual native library version number "" 05-16 15:59:48.899 7562-7562/com.dihong.testdcc I/chromium: [INFO:library_loader_hooks.cc(116)] Chromium logging enabled: level = 0, default verbosity = 0 05-16 15:59:48.899 7...
来源: Laya_社区 发布时间: 20190516