• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 481 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0081 秒)

471. lib/arm/liblayaair.so 总是崩溃 [ 26%]

...ei.pgmng.PGAction@3a09166 actionId =10010 pkg =com.huawei.android.launcher extend1 =19752 extend2 = flag =3 type =1 08-14 10:57:51.320 5024-6106/? W/PGMiddleWare: in handleAction method, action = 10010     in handleAction, invoke client = com.huawei.pgmng.middleware.AudioEffectLowPowerImpl@ef6459e...

来源: Laya_社区 发布时间: 20180814

472. 十几秒以后动画渲染时间变长,帧率变慢,是怎么回事? [ 26%]

...*******************************************************/ class DollGunRole extends GunRole{  public _box: GunBox; // toset: /** 飞行的范围, 用于计算飞行路径 */ private _fly_site:Site = new SiteEntity( 10, 10, -1, 400 );  public static _ani_cached:boolean = false;  // toset: /** 飞...

来源: Laya_社区 发布时间: 20180515

473. LAYABOX游戏实时语音之APP版本 [ 25%]

...arAt(Math.floor(Math.random() * maxPos)); } return str;; } class LoginView extends ui.LoginUI { constructor() { super(); this.login.on(Laya.Event.CLICK, this, this.Loginyim); this.joinroom.on(Laya.Event.CLICK, this, this.JoinRoom); this.RecordAudio.on(Laya.Event.MOUSE_DOWN, this, this.StartRecordAud...

来源: Laya_社区 发布时间: 20170722

474. 屏幕适配 · LayaAir3.3 · 引擎文档 · LAYABOX [ 24%]

...ated"; const { regClass } = Laya; @regClass() export default class IndexRT extends IndexRTBase { onAwake(): void { //设置舞台设计宽高 Laya.stage.designWidth = 1080; Laya.stage.designHeight = 1920; //在引擎初始化之后改变舞台设置的话,必须要手动调用一次updateCanvasSiz...

来源: Laya3.0_文档 发布时间: 20251010

475. 使用3D摄像机 · LayaAir3.3 · 引擎文档 · LAYABOX [ 22%]

...gClass, property } = Laya; @regClass() export default class CameraControll extends Laya.Script { @property( { type: Laya.Sprite3D } ) public target: Laya.Sprite3D; private camera: Laya.Camera; public distanceUp: number = 0.5;//相机与目标的竖直高度参数 public distanceAway: number = 10;//...

来源: Laya3.0_文档 发布时间: 20251010

476. 时间轴动画 · LayaAir3.3 · 引擎文档 · LAYABOX [ 21%]

...: const { regClass, property } = Laya; @regClass() export class Script extends Laya.Script { //declare owner : Laya.Sprite3D; constructor() { super(); } event1(p1:any, p2:any): void { console.log("event1",p1,p2); } } 在脚本中创建event1的方法和接收两个参数,最后我们来运行动...

来源: Laya3.0_文档 发布时间: 20251118

477. 网络通信 · LayaAir3文档 · LAYABOX [ 17%]

...。下面是一个简单的继承的示范: class HttpRequestExtension extends Laya.HttpRequest { constructor() { super(); } public send(url:string,data:any=null,method:string="get", responseType:string="text", headers:any=null):void{ super.send(url,data,method,responseType,headers); this._http.up...

来源: Laya3.0_文档 发布时间: 20250104

478. UI-RefreshList [ 17%]

..."visible": false } }; } this.msgIdNow += i; return _arr; } } class ItemBox extends Box{ public var msgBG; public var selectBox; public var avatar; public var redHot; public var redHotText; public var LmsgTitle; public var LmsgTime; public var LmsgText; public var flag; public var flagText; public va...

来源: Laya2.0_示例 发布时间: 20251130

479. laya.ui.Dialog_API3.0 [ 15%]

...Button; import laya.ui.Dialog; import laya.ui.Image; class Dialog_Instance extends Dialog { function Dialog_Instance():void { var bg:Image = new Image("resource/ui/bg.png"); bg.sizeGrid = "40,10,5,10"; bg.width = 150; bg.height = 250; addChild(bg); var image:Image = new Image("resource/ui/image.png"...

来源: Laya3.0_api 发布时间: 20231115

480. laya.ui.List_API3.0 [ 15%]

...dex= ", index); } } } import laya.ui.Box; import laya.ui.Label; class Item extends Box { public function Item() { graphics.drawRect(0, 0, 100, 20,null, "#ff0000"); var label:Label = new Label(); label.text = "100000"; label.name = "label";//设置 label 的name属性值。 label.size(100, 20); addCh...

来源: Laya3.0_api 发布时间: 20231115