大约有 488 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0064 秒)
...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
...ces/Effects/Materials/Effect_yu_jinbi_xulie.lmat"); super(material); { let s = this.particleSystem; s.isPerformanceMode = true; s.duration = 20; ...
来源: Laya_社区 发布时间: 20170605
...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_文档 发布时间: 20250103
...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
...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
...用示例” 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_文档 发布时间: 20250103
...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
...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
...例 */ export default class TSDemo extends Laya.Script3D { constructor() { super(); } } 2D脚本与3D脚本不要混用,如果是用IDE创建的脚本模板,需要将继承的2D脚本类(Laya.Script)改为3D脚本类(Laya.Script3D), 添加物理脚本 只有为节点添加了我们自...
来源: Laya3.0_文档 发布时间: 20250103
...blic curpos: Laya.Vector3; private delatpos: Laya.Vector3; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 * 此方法为虚方法,使用时重写覆盖即可 */ onAwake(): void { this.curpos = new Laya.Vector3();...
来源: Laya3.0_文档 发布时间: 20240910