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

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

291. 重写X Y在android studio里运行会变成00 [ 53%]

...建一个工程 2 创建任意一个继承Sprite的对象 比如 XSprite extends Sprite 3 new出这个对象 将对象addChild到TestUI里 this.addChild(xSprite); 4 然后设置xSprite.x = 100; xSprite.y = 200; 5 然后再XSprite这个类里将XY复写比如 public set x(val: number) { this._x = val...

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

292. layaMaxUI.ts的自动生成代码bug [ 53%]

...on = Laya.ClassUtils.regClass; export module ui { export class MainSceneUI extends Laya.SceneBase { constructor(){ super()} createChildren():void { super.createChildren(); this.loadScene("MainScene"); } } REG("ui.MainSceneUI",MainSceneUI); } 期待生成SceneBase, 结果仍然生成Laya.SceneBase  ...

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

293. Laya3.0 工程内的bundle.js文件存在某个类 导出微信工程后bundle.js又将该类裁剪了 [ 53%]

...况要怎么避免   @FGUIComponent("ui://login") export class TFrmLogin extends TGenFrmLogin {      onConstruct(): void {         super.onConstruct();     }  } 附件 : --> 2023-05-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...

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

294. 升级到3.0-beta6无法选择资源了 [ 53%]

...None,也无法拖放! 代码如下: @regClass() export class NewScript extends Laya.Script {     //declare owner : Laya.Sprite3D;      @property(String)     public text: string = "";      @property(Laya.Image)     public image: Laya.Image = null;      constructor() {         s...

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

295. Sprite3D添加组件或脚本(JavaScript-3D基础(JS)-LayaAir3D之精灵) [ 53%]

...转了添加了这个脚本的物体) > ```typescript class MonkeyScript extends Laya.Script3D { constructor(){ super(); this.rotation = new Laya.Vector3(0, 0.01, 0); } onAwake() { console.log("onAwake"); } onStart() { console.log("onStart"); } onUpdate() { this.owner.transform.rotate(this.rotation,...

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

296. 内置骨骼动画 · LayaAir3.3 · 引擎文档 · LAYABOX [ 53%]

...例: const { regClass, property } = Laya; @regClass() export class Main extends Laya.Script { private mCurrIndex: number = 0; private mArmature: Laya.Skeleton; onStart() { console.log("Game start"); //加载内置骨骼动画资源 Laya.loader.load("skeleton/Dragon/Dragon.sk").then((templet: Laya....

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

297. [LayaAir3]插件开发中,我需要选择文件夹,如何可视化选择文件夹 [ 53%]

...何处理。只能通过代码处理了。 export class SplitAtlasDialog extends IEditor.Dialog { async create() { let panel = IEditor.GUIUtils.createInspectorPanel(); let data = Editor.getSettings("SplitAtlasSetting").data; panel.inspect(data, "SplitAtlasSetting"); this.contentPane = panel; panel.o...

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

298. LayaFlash针对资源的加载是同步还是异步? [ 53%]

... import flash.events.Event; import flash.net.URLRequest; public class Main extends Sprite { public function Main():void { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); } private function init(e:Event = null):void { removeEventListener(Event.ADDED_TO_STAGE, init); this.stage.s...

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

299. 请问Laya如何使用第三方物理库 [ 53%]

... / 60); }   再把CANNON.Body包装成组件 export class CannonRigidbody extends Laya.Script3D { static map: { [key: number]: Laya.Sprite3D } = {}; body: CANNON.Body; t: Laya.Transform3D; public onCollisionCB: (s: Laya.Sprite3D) => void; public ignoreRotate: boolean = false; ...OnAwake里面创...

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

300. LayaFlash把socket转成webSocket后监听不到connect事件(已解决) [ 53%]

...     import flash.net.Socket;          public class TestWebSocket extends Sprite     {         public var s:Socket;                  public function TestWebSocket()         {             s = new Socket();                          var x:X...

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