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

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

111. 预制体模块 · LayaAir3文档 · LAYABOX [ 39%]

...码中,可以看到,通过预加载一组预制体的实现代码: import { LoadingRTBase } from "./LoadingRT.generated"; const { regClass, property } = Laya; @regClass() export default class LoadingRT extends LoadingRTBase { onAwake(): void { Laya.loader.load( //先加载本场景要用的 ["...

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

112. 屏幕适配 · LayaAir3.3 · 引擎文档 · LAYABOX [ 27%]

...ge.designWidth和Laya.stage.designHeight来设置。 示例代码如下: import { IndexRTBase } from "./IndexRT.generated"; const { regClass } = Laya; @regClass() export default class IndexRT extends IndexRTBase { onAwake(): void { //设置舞台设计宽高 Laya.stage.designWidth = 1080; Laya.sta...

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

113. 组件脚本的内置方法 · LayaAir3.3 · 引擎文档 · LAYABOX [ 25%]

...法的使用,示例代码如下: const { regClass, property } = Laya; import PhysicsGameMainRT from "../scence/physicsDemo/PhysicsGameMainRT"; /** * 掉落盒子脚本,实现盒子碰撞及回收流程 */ @regClass() export default class DropBox extends Laya.Script { /**盒子爆炸动画的...

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

114. [LayaNative3]2d示例程序构建发布打包后,在OpenHarmony运行闪退 [ 24%]

...ility.ts:4:18 Currently module for 'liblaya.so' is not verified. If you're importing napi, its verification will be enabled in later SDK version. Please make sure the corresponding .d.ts file is provided and the napis are correctly declared. WARN: ArkTS:WARN File: /Users/HonestQiao/Documents/Laya/La...

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

115. LayaAir3D UnityPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) [ 13%]

...包unityPackage。 chunjine • 2017-06-26 16:11 删除旧插件,重新import了1.1.1的插件好了,但是还是有空节点不导出的问题。 183*****755 • 2017-06-26 17:05 空节点不导出是我们这边默认做的优化,今天新版,这个点 开发者可以手动控制。 183***...

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

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

...脚本。示例代码如下: ```typescript //引入自定义脚本TSDemo import TSDemo from "./TSDemo"; /** * TypeScript语言示例 */ export default class GameUI extends ui.TestSceneUI { /* ……省略若干代码 */ private addBox(): void { //创建盒型MeshSprite3D let box = this.newScene.ad...

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