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

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

291. 高级应用-渲染纹理 [ 51%]

...meshSprite: Laya.MeshSprite3D = spirit3D as Laya.MeshSprite3D; for (var i: number = 0; i < meshSprite.meshRender.sharedMaterials.length; i++) { var mat: Laya.StandardMaterial = meshSprite.meshRender.sharedMaterials[i] as Laya.StandardMaterial; mat.disableLight(); } } for (var i: number = 0; i < spir...

来源: Laya_示例 发布时间: 20260303

292. 其他引擎的Demo-Example_21 [ 51%]

..."#5D0776", "#EC8A49", "#AF3666", "#F6C84C", "#4C779A"]; private colorCount:number = 0; private isDown:Boolean = false; private path:Array = []; private color:String = this.colors[0]; private liveGraphics:Graphics; private canvasGraphics:Graphics; constructor() { Laya.init(Browser.width, Browser.heig...

来源: Laya2.0_示例 发布时间: 20260303

293. 更新到1.7.6beta之后,HBox有bug [ 51%]

...nLoaded(): void { var hbox: laya.ui.HBox = new laya.ui.HBox(); for (var i: number = 0; i &lt; 10; i++) { var skin: string; switch (i) { case 0: skin = "comp/bg.png"; break; case 1: skin = "comp/blank.png"; break; case 2: skin = "comp/btn_close.png"; break; case 3: skin = "comp/button.png"; break; ca...

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

294. 2D物理-碰撞过滤器 [ 51%]

...则会穿透house private var curTarget: Sprite; private var preMovementX: Number = 0; private var preMovementY: Number = 0; public function Physics_Physics_CollisionFiltering() { Laya.Config.isAntialias = true; Laya.init(1200, 700, WebGL); Stat.show(); Physics.enable(); PhysicsDebugDraw.enable(); L...

来源: Laya2.0_示例 发布时间: 20260303

295. ProgressBar属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 51%]

...ssBar.value = 0; this.progressBar.value += 0.05; } private onChange(value: number): void { console.log("进度:" + Math.floor(value * 100) + "%"); } } } new laya.UI_ProgressBar(); ```

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

296. 2D物理-仿生机器人 [ 51%]

...bVV(p6, p4)).concat(B2Math.SubVV(p5, p4)).join(","); } const dampingRatio: number = 0.5; const frequencyHz: number = 10.0; let distanceJoint1: DistanceJoint = new DistanceJoint(); distanceJoint1.otherBody = legBody2; distanceJoint1.selfAnchor = p2; distanceJoint1.otherAnchor = B2Math.SubVV(p5, p4); ...

来源: Laya2.0_示例 发布时间: 20260303

297. SCALE_FIXED_WIDTH适配屏幕的问题 [ 50%]

...s Main {         private _roomId = 0;         constructor(roomId?: number) {             this._roomId = roomId;             Laya.init(750, 1218, Laya.WebGL);             Laya.Browser.document.title = 'GG游戏;             if (Laya.Browser.onPC) {              ...

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

298. 缓存工具-layadcc · LayaAir3.4 · 引擎文档 · LAYABOX [ 50%]

...现这一步在init的时候就完成了 * */ async updateAll(progress:(p:number)=&gt;void); /** * 根据指定的zip文件更新本地缓存。 * 这个zip文件可以通过DCC插件的补丁生成工具来生成。 * * 这个会修改本地保存的root * @param zipfile 打补丁的zip文件,注...

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

299. 设置适配SCALE_FIXED_WIDTH,结果少部分andriod机型不能正确适配屏幕 [ 50%]

...s Main {         private _roomId = 0;         constructor(roomId?: number) {             this._roomId = roomId;             Laya.init(750, 1218, Laya.WebGL);             Laya.Browser.document.title = 'GG游戏;             if (Laya.Browser.onPC) {              ...

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

300. Cannot read property 'toDefault' of undefined报错是什么原因 [ 50%]

...1就是下面这句报错 Laya.Physics.rayCast(this.ray, this._outHitInfo, Number.MAX_VALUE, 10); if (this._outHitInfo.sprite3D.name === "tlj"){ isRotate = !isRotate; } // this.phasorSpriter3D.begin(Laya.WebGLContext.LINES, state); // //绘出射线 // this.phasorSpriter3D.line(this.ray.origin.x, th...

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