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

大约有 443 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0074 秒)

431. 使用3D精灵 · LayaAir3.0文档 · LAYABOX [ 27%]

...t { regClass, property } = Laya; @regClass() export class CameraMoveScript extends Laya.Script3D { /** @private */ protected _tempVector3: Laya.Vector3 = new Laya.Vector3(); protected lastMouseX: number = 0; protected lastMouseY: number = 0; protected yawPitchRoll: Laya.Vector3 = new Laya.Vector3();...

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

432. 3D灯光与阴影 · LayaAir3.0文档 · LAYABOX [ 26%]

...的代码 代码参考“引擎API使用示例” export class MultiLight extends BaseScript { constructor() { super(); } onAwake(): void { var moveScript: LightMoveScript = this.camera.addComponent(LightMoveScript); var moverLights: Laya.Sprite3D[] = moveScript.lights; var offsets: Vector3[] = move...

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

433. 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

434. 十几秒以后动画渲染时间变长,帧率变慢,是怎么回事? [ 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

435. 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

436. 使用3D摄像机 · LayaAir3.0文档 · 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_文档 发布时间: 20231214

437. 时间轴动画编辑详解 · LayaAir3.0文档 · LAYABOX [ 20%]

...: 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_文档 发布时间: 20230519

438. 网络通信 · LayaAir3.0文档 · 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_文档 发布时间: 20230719

439. 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_示例 发布时间: 20241002

440. 通用发布 · LayaAir3.0文档 · LAYABOX [ 17%]

...: const { regClass, property } = Laya; @regClass() export class Script extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Scene3D }) scene3d: Laya.Scene3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方...

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