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

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

111. layaMaxUI.ts的自动生成代码bug [ 66%]

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

112. 子容器的事件问题 [ 66%]

...里不进来"); }); } /**  * ViewHeadViewTest  */ class ViewHeadViewTest extends Laya.Sprite {     constructor() {         super();         this.graphics.drawRect(0, 0, 1500, 1500, "#0000ff");         this.on(Laya.Event.CLICK, this, this.onclickTest);     }     onclickTest(): voi...

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

113. 类未找到方法 [ 65%]

类未找到方法 public class Welcome extends welcomeUI { public function Welcome() { requestData(); } private function requestData():void{ RequestConfig.instance.getRequestConfig(String(0), requestCallback); } private function requestCallback(success:Boolean):void { if(success) { loadingRes(); }...

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

114. list里面可以加入多个view吗? [ 65%]

...mport laya.ui.Image; import laya.ui.Label; import laya.ui.View; class Item extends View { public static var WID:int=150; public static var HEI:int=85; private var img:Image; private var label:Label; public function Item() { this.size(WID,HEI); img=new Image(); addChild(img); label=new Label(); label...

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

115. 显示文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 65%]

...const { regClass, property } = Laya; @regClass() export class LabelControl extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type : Laya.Label } ) public lab: Laya.Label; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此...

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

116. 在Test中有个按钮点击,那么我如何发信号,使得这个点击能给控制Sample中的对象,如何调用函数 [ 65%]

...进行监听package { import laya.events.EventDispatcher; public class Mod extends EventDispatcher { public function Mod() { super(); } private static var _instance:Mod; public static function get index():Mod { return _instance ||= new Mod(); } public function init():void { Mod.event("aaaa"); } } }...

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

117. FontChip不能显示 [ 65%]

...ue = "a1326";//显示"a1326"文字      */     public class FontClip extends Clip {         /**数值*/         protected var _valueArr:String;         /**文字内容数组**/         protected var _indexMap:Object;         /**位图字体内容**/         ...

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

118. TypeScript语法问题,泛型 [ 65%]

...gle.instance } constructor(){ Single.instance =new Single(); } } class Car extends Single { constructor() { super(); } } var inst = Car.GetInstance<Car>() 2018-06-21 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 …… 相关问...

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

119. vmLaya: MVVM for LayaAir [ 64%]

... = $.timer(0, 500); } //一个 View @createView(TEST_PAGE) class HelloView extends VmViewBase<HelloViewModel> { //绑定 viewModel 的 hello$ 的值到 lbHello.text @vmBindLabel('hello$') lbHello: Laya.Label; }现实中的应用:绑定 List 和 Tab 现实中的应用:登录页面   附件...

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

120. 3Ddemo加载Unity导出场景报错resou._removeReference is not a function [ 64%]

...脚本方式实现,比如子弹脚本。 */ export default class GameUI extends ui.test.TestSceneUI { constructor() { super();          //加载3D场景 //var scene: Laya.Scene3D = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scene3D; Laya.Scene3D.load("res/LayaScene_terrain/Conventiona...

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