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

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

3521. laya.resource.Texture [ 35%]

...。 Parameters forceDispose:Boolean (default = false) — (default = false)true为强制销毁主纹理,false是通过计数销毁纹理。 getPixels()method  public function getPixels(x:Number, y:Number, width:Number, height:Number):Array 获取Texture上的某个区域的像素点 Parameters x:...

来源: laya_api 发布时间: 20170929

3522. 单选框组容器组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 35%]

...labelColors = "#787878,#d3d3d3,#FFFFFF"; rg.labelSize = 20; rg.labelBold = true; rg.selectHandler = new Laya.Handler(this, this.onSelectChange); this.owner.addChild(rg); return rg; } private onSelectChange(index: number): void { console.log("你选择了第 " + (index + 1) + " 项"); } } 效果如...

来源: Laya3.0_文档 发布时间: 20251016

3523. laya.physics.joint.PulleyJoint_API3.0 [ 35%]

... laya/components/Component.ts:36 Optional _singleton _singleton: boolean = true Inherited from Component._singleton Defined in laya/components/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 collideConnected collideConnected: boolean = false Defined in laya/phys...

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

3524. laya微信小游戏加载外部素材失败 急急急 [ 35%]

...小游戏 Laya.MiniAdpter.init(); //初始化引擎 Laya3D.init(750, 1334, true); //适配模式 Laya.stage.scaleMode = 'fixedwidth'; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; //开启统计信息 Laya.Stat.show(); loadRes(); } function loadRes(){ Laya.URL.rootPath = Laya.URL.basePath = 'https...

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

3525. Laya 安卓端 在服务端运行指令layadcc ./ 后进不去,提示 assetId is old 和 init dcc fail。然后过五六个小时后才不会报这个错。。才能进去 [ 34%]

...yield asyncs.downloadSync(urlpath + 'update/filetable.bin?' + assetsidStr, true, null);if (!bindcc)再执行,或者加个delay  如果是安卓项目,index.js文件在layaconch.jar里,可以把这个layaconch.jar改名为layaconch.zip。把index.js解压出来,修改后,再拖回到压...

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

3526. 引擎插件使用说明(TypeScript-小游戏适配文档-微信小游戏) [ 34%]

...ompile.js` ,搜一下`asconfig.json;`在其后增加配置参数`outlaya=true;`如下图所示。 ![图](img/10.png) 编译配置信息保存好之后,再次编译,引擎与项目的JS就会分离了。 ### 3、如何使用引擎插件 #### 3.1 下载支持引擎插件的IDE版本 LayaAir IDE ...

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

3527. laya.physics.joint.WeldJoint_API3.0 [ 34%]

... laya/components/Component.ts:36 Optional _singleton _singleton: boolean = true Inherited from Component._singleton Defined in laya/components/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 anchor anchor: any[] = [0, 0] Defined in laya/physics/joint/WeldJoint.t...

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

3528. 二进制图片(JavaScript-2D进阶篇(JS)-游戏加载策略) [ 34%]

...ript var xhr = new XMLHttpRequest(); xhr.open("get", "res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = function (e) { w...

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

3529. laya.d3.math.Matrix3x3_API3.0 [ 34%]

...个 Matrix3x3 实例。 Parameters Default value createElement: boolean = true Returns Matrix3x3 Properties elements elements: Float32Array Defined in laya/d3/math/Matrix3x3.ts:166 矩阵元素数组 Static Readonly DEFAULT DEFAULT: Readonly<Matrix3x3> = new Matrix3x3() Defined in laya/d3/math...

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

3530. 对象池 · LayaAir3.4 · 引擎文档 · LAYABOX [ 34%]

... item: any): void { if (item[Pool.POOLSIGN]) return; item[Pool.POOLSIGN] = true; Pool.getPoolBySign(sign).push(item); } 比如在游戏的一场战斗过程中,从对象池中拿出的子弹已经结束了它的生命周期时,我们可以通过代码来回收这个子弹对象到对象池中:...

来源: Laya3.0_文档 发布时间: 20251010