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

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

1071. 如何预加载shader [ 49%]

...是否开启调试模式。 */         public static var debugMode:Boolean = false; 设置为true,           /**          * 通过宏定义预编译shader。          * @param   spriteIntToNameDic 精灵宏定义数组。          * @param   publicDef...

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

1072. 物理系统之约束(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 49%]

...- 设置当前约束可用或者不可用 ```typescript set enabled(value: boolean) ``` - 设置约束连接的第一个刚体 ```typescript set ownBody(value:Rigidbody3D) ``` - 设置约束连接的第二个刚体 ```typescript set connectedBody(value:Rigidbody3D) ``` - 设置最大承受力,当刚...

来源: Laya2.0_文档 发布时间: 20210715

1073. Animation 使用疑问 [ 49%]

...yChildren();          this.aniBody.clear();         let loopPlay: boolean = true;         let key: string = actionName + "_" + Math.abs(direction);         this.aniBody.play(0, loopPlay, key);         var bound: Laya.Rectangle = this.aniBody.getBounds();         this.aniBody...

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

1074. laya.d3.core.particleshuriken.module.shape.BoxShape_API3.0 [ 49%]

...创建一个 BoxShape 实例。 Returns BoxShape Properties enable enable: boolean = true Inherited from BaseShape.enable Defined in laya/d3/core/particleShuriKen/module/shape/BaseShape.ts:26 是否启用。 randomDirection randomDirection: number = 0 Inherited from BaseShape.randomDirection Defined...

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

1075. laya.d3.math.Native.ConchVector4 [ 49%]

...向量的点积。 ConchVector4  equals(a:ConchVector4, b:ConchVector4):Boolean[static] 判断两个四维向量是否相等。 ConchVector4  fromArray(array:Array, offset:int = 0):void 从Array数组拷贝值。 ConchVector4  length():Number 求四维向量的长度。 ConchVector4  lengthS...

来源: Laya2.0_api 发布时间: 20190513

1076. laya.d3.math.Vector4 [ 49%]

... 求两个四维向量的点积。 Vector4  equals(a:Vector4, b:Vector4):Boolean[static] 判断两个四维向量是否相等。 Vector4  forNativeElement(nativeElements:Float32Array = null):voidVector4  fromArray(array:Array, offset:int = 0):void 从Array数组拷贝值。 Vector4  length()...

来源: Laya2.0_api 发布时间: 20190513

1077. LAYA js 1.7.12 Tween 使用时回调时 core报错 [ 49%]

... ease:Function = null, complete:Handler = null, delay:int = 0, coverBefore:Boolean = false):Tween Tween.to(this.body, { x: (config[this.type].width / 2) + 10, y: (config[this.type].heightp / 2) + 45 }, 500,Laya.Handler.create(this, this.callback))   2017-11-14 0 0 分享 微博 QZONE 微信 为什...

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

1078. 请问Laya如何使用第三方物理库 [ 49%]

... public onCollisionCB: (s: Laya.Sprite3D) => void; public ignoreRotate: boolean = false; ...OnAwake里面创建CANNON.Body, OnEnable里面把CANNON.Body加入到CANNON.World, OnDisable则移除, onUpdate里面根据CANNONBody的信息更新(this.owner as Laya.MeshSprite).transfrom.(最好用插...

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

1079. laya.d3.core.material.WaterPrimaryMaterial [ 48%]

...operties Show Inherited Public Properties PropertyDefined By alphaTest : Boolean 获取是否透明裁剪。 BaseMaterial alphaTestValue : Number 获取透明测试模式裁剪值。 BaseMaterial  horizonColor : Vector4 获取地平线颜色。 WaterPrimaryMaterial  mainTexture : BaseTexture ...

来源: Laya2.0_api 发布时间: 20190513

1080. Layabox web 复制一段文字到剪贴板 [ 48%]

...ic static copy(str: string ,isAlertMsgId?:number ,isAlertMsgInfo?:string): boolean{         let re: boolean;         try {             let input = document.createElement("input");             input.value = str;             document.body.appendChild(input);            ...

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