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

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

561. 问下关于websocket的问题 [ 67%]

...ayaAir技术手册里面的代码建了一个服务端的程序,为啥用node运行的时候弹出" Cannot find module 'ws'"? C:\Users\Administrator\Desktop>node jjj.js module.js:472 throw err; ^ Error: Cannot find module 'ws' at Function.Module._resolveFilename (module.js:470:15) at Function.M...

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

562. laya3.0中jszip使用异常 [ 67%]

...录下,改为jszip.d.ts,导入代码为: import * as JSZip from "../node_modules/jszip/dist/jszip"使用代码为: let zipUrl = "resources/files/config.zip";         Laya.loader.load([{ url: zipUrl, type: Laya.Loader.BUFFER }], null, Laya.Handler.create(this, this.onLoadCfg, null, false)...

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

563. laya.d3.core.scene.SceneRenderManager_API3.0 [ 67%]

...r): void Defined in laya/d3/core/scene/SceneRenderManager.ts:35 add Render Node Parameters object: BaseRender Returns void destroy destroy(): void Defined in laya/d3/core/scene/SceneRenderManager.ts:73 destroy Returns void removeMotionObject removeMotionObject(object: BaseRender): void Defined in la...

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

564. laya.physics.PolygonCollider [ 67%]

...单实例组件。 ColliderBase label : String标签ColliderBase owner : Node [只读]获取所属Node节点。 Component  points : String用逗号隔开的点的集合,格式:x,y,x,y ...PolygonCollider restitution : Number弹性系数,取值范围0-1,值越大,弹性越大,默认...

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

565. 2.1以后的IDE版本如何开启F5调试(TypeScript-IDE篇(TS)-代码模式基础) [ 67%]

...ourceMap": true }, "references": [ {"path":"../libs"}, ], "exclude": [ "../node_modules" ] } ``` ### 二、bundle模式TS项目,如何开启F5调试 #### 1、修改 `.laya/compile.js` 找到`sourceMap: false` 修改为 `sourcemap: true` 一共有两个`sourcemap`的地方,都要修改设置为`t...

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

566. laya.physics.RigidBody_API3.0 [ 67%]

...冲突位掩码碰撞的类别,category位操作的结果 owner owner: Node Inherited from Component.owner Defined in laya/components/Component.ts:24 获取所属Node节点。 Optional runInEditor runInEditor: boolean Inherited from Component.runInEditor Defined in laya/components/Component.ts:34 ...

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

567. laya.physics.ChainCollider [ 67%]

...相交的链接形状,它可能不能正常工作ChainCollider owner : Node [只读]获取所属Node节点。 Component  points : String用逗号隔开的点的集合,格式:x,y,x,y ...ChainCollider restitution : Number弹性系数,取值范围0-1,值越大,弹性越大,默认值...

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

568. 3d对象使用addChild后localPosition没有变化 [ 67%]

...对象 * @param owner * @param child */ static addChildHelper(owner: Laya.Node, child: Laya.Sprite3D) { let position = child.transform.position.clone() let rotation = child.transform.rotation.clone() let scale = child.transform.getWorldLossyScale().clone() owner.addChild(child) child.transform.posit...

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

569. laya.components.CommonScript [ 67%]

...rride] [read-only] 获取是否为单实例组件。 CommonScript owner : Node [只读]获取所属Node节点。 ComponentPublic Methods Hide Inherited Public Methods Show Inherited Public Methods MethodDefined By  CommonScript()CommonScript destroy():void 销毁组件 Component  onAwake():vo...

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

570. 深入理解LayaAir引擎架构和实现原理(一)跨平台引擎源码编译 [ 67%]

..., "buildDoc": "cd src/generateDoc&&cmd /k run.bat", "crossBuild": "node src/publishTool/publish.js && cd src && gulp build" }, 复制代码[/code] src/publishTool路径下创建publish.js。编译工具public.bat中做了什么事情,在publish.js脚本中也做同样的事...

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