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

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

1. Scene Pivot 疑问 [ 100%]

...的方法 ui组件list数据源的疑问 Laya 2.7.0beta Scene与脚本的onAwake()与onEnable()调用时机存在问题 Animation 使用疑问 layaMaxUI里面永远只会生成一个TestSceneUI,其他自定义的scene不会导出 没有加载ls文件的情况下能否设置scene的颜色?还是只...

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

2. animator.owner._scene报空 [ 98%]

...an not find scene:GameView.scene undefined Laya 2.7.0beta Scene与脚本的onAwake()与onEnable()调用时机存在问题 没有加载ls文件的情况下能否设置scene的颜色?还是只能黑色? Laya的Scene和View什么区别? laya2.0 GameConfig怎么更新有scene的脚本? layaMaxUI...

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

3. DirectionLight存在衰减,不符合线光源的特性 [ 91%]

...录是存在哪儿,如何管理编辑? Laya 2.7.0beta Scene与脚本的onAwake()与onEnable()调用时机存在问题 在编辑器里面运行是没有问题的,但是发布打包之后存在资源加载不了 需要用SoundChannel的play()方法,报错说不存在play()方法? IDE提示...

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

4. 资源加载 · LayaAir3.0文档 · LAYABOX [ 91%]

...operty } = Laya; @regClass() export class LoaderDemo extends Laya.Script { onAwake(): void { this.loadTexture("resources/image/monkey2.png", 500);//需要在resources/image放入相应的资源 this.loadTexture("https://layaair.com/3.x/demo/resources/res/apes/monkey2.png"); } /**加载并显示图...

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

5. 2.x引擎项目升级指南 · LayaAir3.0文档 · LAYABOX [ 83%]

...件机制。 在LayaAir3.0中,Component具有完整的生命周期,即onAwake,onStart,onEnable,onUpdate,onLateUpdate,onDisable,onDestroy,不再使用_onEnable,_onDisable等下划线函数。 _onEnable,_onDisable等下换线函数仍然给内部使用 对比Component, Script增加了交互行...

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

6. UI运行时 · LayaAir3.0文档 · LAYABOX [ 76%]

...过的UI组件,直接使用this.即可使用。例如下面的代码: onAwake(): void { // Button添加鼠标事件,让Image不显示 this.Button.on( Laya.Event.MOUSE_DOWN, this, ()=>{ this.Image.visible = false; }); } 运行此场景来看看效果,如动图2-7所示。 (动图2-7) U...

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

7. LayaAir的组件化开发(TypeScript-IDE篇(TS)-组件化开发相关) [ 71%]

...------- | ------------------------------------------------------------ | | onAwake | 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只会执行一次 | | onEnable | 组件被启用后执行,比如,节点被添加到舞台后执行 | | onStart | 在第1次执...

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

8. laya.html.dom.HTMLIframeElement_API3.0 [ 55%]

...orOf loadImage localToGlobal off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once parentRepaint pivot pos reCache removeChild removeChildAt removeChildByName removeChildren removeInputChild removeSelf render repaint replaceChild runCallLater scale setChildIndex set...

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

9. laya.html.dom.HTMLDivElement_API3.0 [ 54%]

...orOf loadImage localToGlobal off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once parentRepaint pivot pos reCache removeChild removeChildAt removeChildByName removeChildren removeInputChild removeSelf render repaint replaceChild runCallLater scale setChildIndex set...

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

10. laya.physics.PhysicsDebugDraw_API3.0 [ 53%]

...orOf loadImage localToGlobal off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once parentRepaint pivot pos reCache removeChild removeChildAt removeChildByName removeChildren removeSelf repaint replaceChild runCallLater scale setChildIndex setGraphics setSelfBounds s...

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