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

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

1101. 给Dictionary添加个长度 [ 47%]

...对象。 * @return 是否成功移除。 */ public function remove(key:*):Boolean { var index:int = indexOf(key); if (index >= 0) { _keys.splice(index, 1); _values.splice(index, 1); _lenght != 0 && --_lenght; return true; } return false; } /** * 清除此对象的键名列表和键值列...

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

1102. 在加载3d人物的时候,Laya.timer.loop会卡顿,由于又需要每隔一段时间执行一个方法,暂时想到了用Laya.timer.loop,这个有什么好的解决方案替代吗? [ 47%]

...eLoop(delay:int, caller:*, method:Function, args:Array = null, coverBefore:Boolean = true):void {             _create(true, true, delay, caller, method, args, coverBefore);         } 2018-04-09 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请...

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

1103. laya.d3.core.particleshuriken.module.shape.ConeShape_API3.0 [ 47%]

...类型,0为Base,1为BaseShell,2为Volume,3为VolumeShell。 enable enable: boolean = true Inherited from BaseShape.enable Defined in laya/d3/core/particleShuriKen/module/shape/BaseShape.ts:26 是否启用。 length length: number Defined in laya/d3/core/particleShuriKen/module/shape/ConeShape.ts:22 ...

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

1104. laya.d3.math.native.ConchVector4_API3.0 [ 47%]

...s number 点积。 Static equals equals(a: ConchVector4, b: ConchVector4): boolean Defined in laya/d3/math/Native/ConchVector4.ts:194 判断两个四维向量是否相等。 Parameters a: ConchVector4 四维向量。 b: ConchVector4 四维向量。 Returns boolean 是否相等。 Static lerp lerp(a:...

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

1105. laya.d3.core.material.SkyProceduralMaterial [ 47%]

...operties Show Inherited Public Properties PropertyDefined By alphaTest : Boolean 获取是否透明裁剪。 BaseMaterial alphaTestValue : Number 获取透明测试模式裁剪值。 BaseMaterial  atmosphereThickness : Number 获取大气厚度,范围是0到5。 SkyProceduralMaterial  exposur...

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

1106. laya.d3.math.Quaternion_API3.0 [ 46%]

...rs destObject: any 克隆源。 Returns void equals equals(b: Quaternion): boolean Defined in laya/d3/math/Quaternion.ts:494 Parameters b: Quaternion Returns boolean forNativeElement forNativeElement(nativeElements?: Float32Array): void Defined in laya/d3/math/Quaternion.ts:617 Parameters Default va...

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

1107. laya.sprite精灵无缝拼接地图,会出现黑线跟白线,使用laya的2.0.1beta版本 [ 46%]

...地图的。   export default class MapSprite extends Laya.Image{ isShow:boolean = false; name:string = ""; constructor() { super(); }  loadImageAndPos(name:string,posX:number,posY:number):void { this.name = name; this.anchorX = 0; this.anchorY = 0; this.x = posX; //这里是256*整数倍的叠加...

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

1108. ipad 声音管理无法暂停继续播放,只能从头开始,pc端正常,代码如下 [ 46%]

...个回复 Laya_Aaron 赞同来自: 1987c private static var _useAudioMusic:Boolean = true; /**      * <code>SoundManager</code> 是一个声音管理类。提供了对背景音乐、音效的播放控制方法。      * 引擎默认有两套声音方案:WebAudio和H5Audio   ...

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

1109. 图片像素精准点击问题! [ 46%]

...hitTest(this.down)) return; this.onMouseUp(false); } private onMouseUp(up: boolean) { if (!this.down) return; this.scaleBig(this.down); if (up) { if (this.down === this.racingB) { // do click } else if (this.down === this.marketB) { // do click } else if (this.down === this.breedB) { // do click } e...

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

1110. 两个问题都关于LayaAir的ios真机 [ 46%]

...ype]); } public static function addDark(target:laya.display.Sprite, isDark:Boolean = true):void { if (isDark) { // laya.ui.UIUtils.addFilter(target, DARK); target.filters=[ new ColorFilter([0.7, 0, 0, 0, 0, 0, 0.7, 0, 0, 0, 0, 0, 0.7, 0, 0, 0, 0, 0, 1, 0])]; } else { // laya.ui.UIUtils.clearFilter(t...

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