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

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

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

...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

42. laya.ui.Image_API3.0 [ 41%]

...设置了它的皮肤、位置信息,并添加到舞台上。 package { import laya.ui.Image; public class Image_Example { public function Image_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 onInit(); } private functio...

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

43. laya.display.Text_API3.0 [ 41%]

...些移动端因缺少设置的字体而显示异常)。 example package { import laya.display.Text; public class Text_Example { public function Text_Example() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 onInit(); ...

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

44. 动画状态机 · LayaAir3.3 · 引擎文档 · LAYABOX [ 40%]

...CubeAnimation动画节点添加动画脚本,添加的代码如下: ... import Vector3 = Laya.Vector3; ... export class AnimationScript extends Laya.AnimatorStateScript { ... private model: Laya.Sprite3D; /**@internal */ setPlayScriptInfo(animator: Laya.Animator | Laya.Animator2D, layerindex: num...

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

45. 组件装饰器说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 39%]

...面这两个TS代码: //MyScript.ts const { regClass, property } = Laya; import Animal from "./Animal"; @regClass() export class MyScript extends Laya.Script { @property({ type : Animal }) animal : Animal; } //Animal.ts const { regClass, property } = Laya; @regClass() export default class Animal {...

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

46. 3D物理系统 · LayaAir3.3 · 引擎文档 · LAYABOX [ 33%]

...建的TSDemo脚本。示例代码如下: //引入自定义脚本TSDemo import TSDemo from "./TSDemo"; /** * TypeScript语言示例 */ export default class GameUI extends GameUIBase { /* ……省略若干代码 */ private addBox(): void { //创建盒型体 let box = new Laya.Sprite3D; let boxMesh ...

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