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

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

161. Tree属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 47%]

...建出符合自己需要的文件夹。 **示例代码:** ```javascript (function() { var Box = Laya.Box; var Clip = Laya.Clip; var Label = Laya.Label; var Utils = Laya.Utils; // 此类对应的json对象: // {"child": [{"type": "Clip", "props": {"x": "13", "y": "0", "left": "12", "height": "24"...

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

162. LayaAir2.0(LayaBox)之小游戏开放域开发 [ 45%]

...ar mark = 0; if(Laya.Browser.onMiniGame){ Laya.Browser.window.wx.onMessage(function(data){//微信接受信息 if(data.url == "res/atlas/test.atlas" || data.url == "test/1.png" ||data.url == "test/2.png"||data.url == "test/3.png"){ mark ++; console.log("------data.url:" + JSON.stringify(data.url)); ...

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

163. 引擎 TiledMap 居然不支持图块翻转 [ 45%]

...------------------------------------------------------------------------- (function (exports, Laya) {     'use strict';     const TiledMapFlipConst = 1073741824;     const TiledMapFlipConstHalf = TiledMapFlipConst / 2;     class GridSprite extends Laya.Sprite {         constructor() {  ...

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

164. 3D粒子 · LayaAir3.4 · 引擎文档 · LAYABOX [ 44%]

...ath = ""; } Pool.getInstance().ClearGroup("Particle3D@" + root_path, this, function(particle_3d:Particle3D) { particle_3d.Clean(); }); } } 5.2 自定义对象池类 export class Pool { private _poolDic:{[key: string]: any;} = {}; private InPoolSign: string = "__InPool"; constructor() { } private sta...

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

165. 3D粒子编辑模块 · LayaAir3文档 · LAYABOX [ 44%]

...ath = ""; } Pool.getInstance().ClearGroup("Particle3D@" + root_path, this, function(particle_3d:Particle3D) { particle_3d.Clean(); }); } } 5.2 自定义对象池类 export class Pool { private _poolDic:{[key: string]: any;} = {}; private InPoolSign: string = "__InPool"; constructor() { } private sta...

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

166. 求ShuriKenParticle3D用法 [ 38%]

...let self = this;                 Laya.timer.loop(300, null, function () {                     console.log('8: ' + self.particleSystem.aliveParticleCount);                 });             }         }     } } 执行结果一直为0,...

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

167. 一篇上手LayaAir的3D物理引擎(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 33%]

...Laya.Scene3D.load("Conventional/SampleScene.ls", Laya.Handler.create(null, function (_Scene3D: Laya.Scene3D) { //添加3D场景到舞台 Laya.stage.addChild(_Scene3D); let _camera = _Scene3D.getChildByName("Main Camera") as Laya.Camera; _camera.clearFlag = Laya.CameraClearFlags.Sky; //从场景中...

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

168. 3D物理系统 · LayaAir3.4 · 引擎文档 · LAYABOX [ 29%]

...aya.Mesh.load("res/threeDimen/Physics/table.lm", Laya.Handler.create(this, function(mesh:Laya.Mesh) { //读取桌子模型节点对象,添加到3D场景节点下, var table: Sprite3D = this.scene.addChild(new Laya.Sprite3D(res)); //给桌子节点对象添加刚体碰撞器 var rigidBody = table...

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