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

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

1281. laya.physics.BoxCollider_API3.0 [ 31%]

...s/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 fixture fixture: any Inherited from ColliderBase.fixture Defined in laya/physics/ColliderBase.ts:25 [只读]b2Fixture对象 label label: string Inherited from ColliderBase.label Defined in laya/physics/ColliderBa...

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

1282. laya.physics.PolygonCollider_API3.0 [ 31%]

...s/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 fixture fixture: any Inherited from ColliderBase.fixture Defined in laya/physics/ColliderBase.ts:25 [只读]b2Fixture对象 label label: string Inherited from ColliderBase.label Defined in laya/physics/ColliderBa...

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

1283. 资源加载(JavaScript-3D基础(JS)-LayaAir3D之资源加载) [ 31%]

...ate(new Laya.Vector3(0, 180, 0), false, false); //相机视角控制组件(脚本) camera.addComponent(CameraMoveScript); //添加光照 var directionLight = _scene.addChild(new Laya.DirectionLight()); //光照颜色 directionLight.color = new Laya.Vector3(1, 1, 1); directionLight.transform.rotate(n...

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

1284. 资源加载(TypeScript-3D基础(TS)-LayaAir3D之资源加载) [ 31%]

...ate(new Laya.Vector3(0, 180, 0), false, false); //相机视角控制组件(脚本) camera.addComponent(CameraMoveScript); //添加光照 var directionLight = _scene.addChild(new Laya.DirectionLight()); //光照颜色 directionLight.color = new Laya.Vector3(1, 1, 1); directionLight.transform.rotate(n...

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

1285. laya.d3.physics.PhysicsComponent_API3.0 [ 31%]

...s/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 canScaleShape canScaleShape: boolean = true Defined in laya/d3/physics/PhysicsComponent.ts:206 是否可以缩放Shape。 owner owner: Node Inherited from Component.owner Defined in laya/components/Component.ts:2...

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

1286. laya.physics.ChainCollider_API3.0 [ 31%]

...s/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 fixture fixture: any Inherited from ColliderBase.fixture Defined in laya/physics/ColliderBase.ts:25 [只读]b2Fixture对象 label label: string Inherited from ColliderBase.label Defined in laya/physics/ColliderBa...

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

1287. LayaAir和原生DOM交互(JavaScript-2D进阶篇(JS)-扩展模块) [ 31%]

...我们来借助css样式来展示这种效果。下面我们看下简单的脚本怎么实现这种效果。 ```javascript var data = '' + '' + '' + 'I like ' + '' + 'cheese' + '' + '' + ''; var DOMURL = window.URL || window.webkitURL || window; var img = new Image(); var svg = new Blob([data], {typ...

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

1288. LayaAirIDE的可视化2D物理编辑入门(TypeScript-IDE篇(TS)-使用2d物理系统) [ 30%]

...,不需要写一行代码。 从这个章节里,我们就了解一下脚本中有哪些物理生命周期方法。 > 如果有对生命周期也不理解的新手,请先去Layabox官网文档的组件化开发相关文档去补一下基础。 ### 3.1 onTriggerEnter `onTriggerEnter`是在发生...

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

1289. 事件管理 · LayaAir3.3 · 引擎文档 · LAYABOX [ 30%]

...中,新建一个2D空项目,在Scene2D下新建一个自定义的组件脚本,并添加如下代码: onAwake(): void { //侦听自定义的事件"Click" this.owner.on("Click",this,()=>{ console.log("侦听到自定义的“Click”事件"); }) } //鼠标点击后执行,发送Click事件...

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

1290. laya.d3.component.volume.batchvolume.StaticBatchVolume_API3.0 [ 30%]

...s/Component.ts:30 是否单例,即同一个节点只能添加此类型的脚本一次 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...

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