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

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

441. laya.d3.component.physics.Collider [ 62%]

...除。 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

442. WebSocket发送与接收数据(TypeScript-LayaAir基础篇(TS)-数据与通信) [ 62%]

...数据,按照服务器传递过来的数据,按照顺序读取 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

443. Ts简单对象池 [ 62%]

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

444. laya.d3.core.material.PBRMaterial_API3.0 [ 62%]

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

445. 鼠标交互-自定义事件 [ 62%]

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

446. mc.rotation=0的问题 [ 61%]

...链接 提交 2 个回复 Laya_Aaron 赞同来自: rotation是带浮点的Number类型,和操作int整型变量  方式是不一样的,建议考虑按浮点类型操作,如果还是有问题,请及时反馈 2017-12-28 0 0 分享 微博 QZONE 微信 wufee 赞同来自: 我把 rotation设成...

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

447. 多光源渲染(ActionScript-3D基础(AS3)-LayaAir3D之灯光) [ 61%]

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

448. 读取大块材质中的图片并图片切割 [ 61%]

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

449. laya.d3.core.material.PBRStandardMaterial_API3.0 [ 61%]

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

450. 鼠标交互-自定义事件 [ 61%]

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