大约有 550 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0038 秒)
Laya2.0_api(174) laya_api(132) Laya_示例(65) Laya_社区(56) Laya2.0_示例(51) Laya2.0_文档(36) Laya3.0_api(32) Laya3.0_文档(4)
...除。 EventDispatcher raycast(ray:Ray, hitInfo:RaycastHit, maxDistance:Number):BooleanColliderEvents Hide Inherited Events Show Inherited Events Event Summary Defined By enabledchanged在enable属性发生变化后调度。Component3DProperty DetailisSingletonpropertyisSingleton:Boolean [re...
来源: laya_api 发布时间: 20170929
...数据,按照服务器传递过来的数据,按照顺序读取 var a:number = this.byte.getByte(); var b:number = this.byte.getInt16(); var c:number = this.byte.getFloat32(); var d:string = this.byte.getString(); var e:string = this.byte.getUTFString(); } ```
来源: Laya2.0_文档 发布时间: 20210714
...ult class PoolManager { static _instance:any; public m_ObjectPoolDic:{[key:number]:QueueT<Laya.MeshSprite3D>}={} constructor() { } static getInstance() { return this._instance || (this._instance = new PoolManager()) } //初始化 //加载到内存中创建出来之后添加到这里面 publi...
来源: Laya_社区 发布时间: 20191206
...3/core/material/PBRMaterial.ts:638 Returns PBRMaterial Properties _id _id: number = 0 Inherited from Resource._id Defined in laya/resource/Resource.ts:97 destroyedImmediately destroyedImmediately: boolean Inherited from Resource.destroyedImmediately Defined in laya/resource/Resource.ts:112 是否在...
来源: Laya3.0_api 发布时间: 20231115
...onSpriteClick); } private onSpriteClick(e: Event): void { var randomAngle: number = Math.random() * 180; //发送自定义事件 this.sp.event(Interaction_CustomEvent.ROTATE, [randomAngle]); } // 触发自定义的rotate事件 private onRotate(newAngle: number): void { Tween.to(this.sp, { "rotation"...
来源: Laya_示例 发布时间: 20241118
...链接 提交 2 个回复 Laya_Aaron 赞同来自: rotation是带浮点的Number类型,和操作int整型变量 方式是不一样的,建议考虑按浮点类型操作,如果还是有问题,请及时反馈 2017-12-28 0 0 分享 微博 QZONE 微信 wufee 赞同来自: 我把 rotation设成...
来源: Laya_社区 发布时间: 20171228
...c var moveRanges: Array = []; public function onUpdate(): void { var seed: Number = Laya.timer.currTimer * 0.002; for (var i: int = 0, n: Number = this.lights.length; i 加载场景,并且添加多光源 ```typescript Scene3D.load("res/threeDimen/scene/MultiLightScene/InventoryScene_Forest.ls", Ha...
来源: Laya2.0_文档 发布时间: 20210714
... function updateScore():void{ var data:Object = {}; var temp:Number = this.score; for (var i:int = 5; i > 0; i-- ){ data["item" i] = {index:Math.floor(temp)}; temp = temp/10; } trace(this.score); this.scorebox.dataSource = data; } 2017-0...
来源: Laya_社区 发布时间: 20170221
...StandardMaterial 实例。 Returns PBRStandardMaterial Properties _id _id: number = 0 Inherited from Resource._id Defined in laya/resource/Resource.ts:97 destroyedImmediately destroyedImmediately: boolean Inherited from Resource.destroyedImmediately Defined in laya/resource/Resource.ts:112 是否在...
来源: Laya3.0_api 发布时间: 20231115
...onSpriteClick); } private onSpriteClick(e: Event): void { var randomAngle: number = Math.random() * 180; //发送自定义事件 this.sp.event(Interaction_CustomEvent.ROTATE, [randomAngle]); } // 触发自定义的rotate事件 private onRotate(newAngle: number): void { Tween.to(this.sp, { "rotation"...
来源: Laya2.0_示例 发布时间: 20241118