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

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

471. 微信关系链:LayaAir引擎针对微信小游戏好友关系链实现方案 [ 26%]

...edresize"; private static var _i:MsgMgr = null; public function MsgMgr() { super(); } public static function get instance():MsgMgr { return _i ||= new MsgMgr(); } /**初始化消息监听**/ public function init():void { //接收主域透传的数据 if(MiniAdpter.isZiYu && MiniAdpter.isPosM...

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

472. 3D中摄像机绕物体旋转该如何实现? [ 26%]

...d targetDistance: number; //protected camera: 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....

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

473. 求ShuriKenParticle3D用法 [ 26%]

...ces/Effects/Materials/Effect_yu_jinbi_xulie.lmat");             super(material);             {                 let s = this.particleSystem;                 s.isPerformanceMode = true;                 s.duration = 20;         ...

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

474. 使用3D精灵 · LayaAir3.3 · 引擎文档 · LAYABOX [ 25%]

...ne: Laya.Scene3D = new Laya.Scene3D; speed: number = 0.01; constructor() { super(); } /** * @private */ protected _updateRotation(): void { if (Math.abs(this.yawPitchRoll.y) < 1.50) { Laya.Quaternion.createFromYawPitchRoll(this.yawPitchRoll.x, this.yawPitchRoll.y, this.yawPitchRoll.z, this.tempRo...

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

475. laya.ui.Tree_API3.0 [ 24%]

...aya.stage.addChild(tree);//将 tree 添加到显示列表。 } (function (_super) { function Item() { Item.__super.call(this);//初始化父类。 this.right = 0; this.left = 0; var selectBox = new laya.ui.Clip("resource/ui/clip_selectBox.png", 1, 2); selectBox.name = "selectBox";//设置 selectBox ...

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

476. 微信小游戏提审后,提示说代码侵权 [ 24%]

...continue; if(arr2[i].indexOf("class ") !=-1) continue; if(arr2[i].indexOf("super(") !=-1) continue; if(arr2[i].indexOf("public constructor") !=-1) continue; if(arr2[i].indexOf("else") !=-1) continue; if(arr2[i].indexOf("else if") !=-1) continue; if(arr2[i].indexOf("//") !=-1) continue; if(arr2[i].in...

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

477. 3D灯光与阴影 · LayaAir3.3 · 引擎文档 · LAYABOX [ 24%]

...用示例” 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[] = moveScript.offsets; var moveRanges: Vecto...

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

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

...number;  /** 是否移除 */ public _to_remove: number;   constructor(){ super(GunRoleType.LIVE_DOLL); }  init( box: GunBox, doll_item: DollItem, doll_area: Area ):void { // if(!this._body_ani) // { // this._body_ani = new Laya.Animation(); // this.addChild(this._body_ani); // } // this._body_ani...

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

479. LAYABOX游戏实时语音之APP版本 [ 23%]

...s)); } 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.StartRecordAudio); this.RecordAudio.on(Laya.Event.M...

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

480. 组件脚本的内置方法 · LayaAir3.3 · 引擎文档 · LAYABOX [ 23%]

...ext: Laya.Text; /**盒子等级 */ private _level: number; constructor() { super(); } //组件被启用后执行 onEnable(): void { this._level = Math.round(Math.random() * 5) + 1; this._text = this.owner.getChildByName("levelTxt") as Laya.Text; this._text.text = this._level + ""; } //每帧更新...

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