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

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

231. 异步加载一个UI对象时的问题 [ 59%]

...此我将load方法放到了createChildren函数里面去。 class MyView extends ui.view.MyViewUI { constructor() { super(); } createChildren():void { super.createChildren(); let assets = [ { url: "res/atlas/ui/shared.atlas", type: Loader.ATLAS }, { url: "res/atlas/ui/myview.atlas", type: Loader.AT...

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

232. 提示错误在laya.core.js里 [ 59%]

...是要把unity场景导入到laya2.6. export default class SceneLoad extends Laya.Script{     constructor(){         super();     }     onAwake(){         Laya.Scene3D.load("res/LayaScene_demo/Android/demo.ls",Laya.Handler.create(this,function(scene){        ...

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

233. 在Unity中设置动画事件(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 59%]

...名。 ```typescript import laya.d3.component.Script3D; class SceneScript extends Script3D { //用于表现的方法 public var showMsgFunc:Function; public function SceneScript() { } //对应unity添加的AnimationEvent的动画事件函数,名字是可以对应上的 public function ShowMsg():vo...

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

234. 按钮组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 59%]

... const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Button }) public btn: Laya.Button; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.btn.scale(5, 5); //放...

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

235. 动画状态脚本(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 59%]

...ateScript(动画状态脚本) export default class AnimatorStateScriptTest extends Laya.AnimatorStateScript { constructor() { super(); this._text = null; } get text() { return this._text; } set text(value) { this._text = value; } /** * 动画状态开始时执行。 */ onStateEnter() { console.log("...

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

236. [LayaAir3]Laya.loader.loadPackage 加载勾选版本管理的子包失败 [ 58%]

...: const { regClass, property } = Laya; @regClass() export class StartScene extends Laya.Script { onAwake(): void { Laya.timer.once(1000, this, () => { Laya.loader.loadPackage("common", "http://127.0.0.1:2840", (p) => { console.log("common", p); }) }); } } 2024-11-04 0 0 分享 微博 QZONE 微...

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

237. 动画状态脚本(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 58%]

...ateScript(动画状态脚本) export default class AnimatorStateScriptTest extends Laya.AnimatorStateScript { private _text:Laya.Text; constructor() { super(); } get text():Laya.Text { return this._text; } set text(value) { this._text = value; } /** * 动画状态开始时执行。 */ onStateEnter()...

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

238. Laya.Script _start和_update以及_lateupdate不执行是什么原因呢? [ 58%]

... _start和_update以及_lateupdate不执行是什么原因呢?  class b extends Laya.Script{    _initialize(owner:Laya.Sprite3D){      super._initialize(owner);      //加打印可以执行    }        _start(state:Laya.RenderState):void{       //加打印不执行     } }   ...

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

239. 解析sk资源报错 [ 58%]

...t;     import laya.events.Event;          public class CombatRole extends BaseRole     {         private var _templet:Templet;         public function CombatRole()         {             super();             initView();         }           ...

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

240. Clip组件Bug:Play方法无法结束循环 [ 58%]

...开发,修改源码会有问题): export default class GifView extends Laya.Clip {     /**      *开始帧位置      *      * @private      * @memberof GifView      */     private frameIndex = 0;     /**      *结束帧位置      * ...

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