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

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

861. 数据、图片路径已加载到数组里面,要如何将图片路径赋值给skin?然后显示到list? [ 75%]

...哪里 2018-03-21 0 0 分享 微博 QZONE 微信 andyskaura 赞同来自: this.otherItem_list.mouseHandler = new Handler(this,otherItem_listRender,null,false);  你试一下在回调otherItem_listRender(){ .skin="" } 里面直接给skin赋值,我平常都是这样用的。 2018-03-21 0 ...

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

862. laya.utils.ClassUtils [ 75%]

...me":"item1", "scale":[2,2] }, "child":[ { "type":"Text", "props":{ "text":"this is a test", "var":"label", "rumtime":"" } } ] } ClassUtils  getInstance(className:String):*[static] 根据名称创建 Class 实例。 ClassUtils  getRegClass(className:String):*[static] 返回注册 Class 映射。 ...

来源: laya_api 发布时间: 20170929

863. 物理系统之ConfigurableConstraint(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 75%]

...约束,为约束绑定两个刚体 ```typescript var boxA:MeshSprite3D = this.addRigidBodySphere(new Vector3(7, 3, 0),1); var boxARigid:Rigidbody3D = boxA.getComponent(Rigidbody3D); boxARigid.overrideGravity = true; boxARigid.isKinematic = true; var boxB:MeshSprite3D = this.addRigidBodyBox(new Vec...

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

864. Resources already exist,is repeated loading 加载特效报重复加载 [ 75%]

...);                      //创建场景         this.scene = new Laya.Scene3D();         Laya.stage.addChild(this.scene);                     //添加相机         var camera = new Laya.Camera(0, 0.1, 100);         this.scene.add...

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

865. 报错,这不是个构造函数 "StartPage is not a constructor" [ 75%]

... StartPage=(function(_super){ function StartPage(){ StartPage.__super.call(this); } Laya.class(StartPage,'view.StartPage',_super); return StartPage; })(StartPageUI) LayaSample: var LayaSample = (function(){ (function(){ Laya.init(667,375); Laya.stage.bgColor = "#ffcccc"; Laya.loader.load("res/atla...

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

866. 刚体贴图调用问题 [ 75%]

...ter.Bodies.circle(bodyLocationArr[i].x, bodyLocationArr[i].y, 50,Options); this.boxBody = []; this.boxBody.push(bodyA); var img1 = new Laya.Sprite(); img1.loadImage("../xxxx.png",0,0,100,100); var img2 = new Laya.Image(); img1.addChildAt(img2,0); var img3 = new Laya.Image(); img1.addChildAt(img3,1);...

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

867. ComboBox属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 75%]

...de = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(this.skin, Handler.create(this, this.onLoadComplete)); } private onLoadComplete(): void { var cb: ComboBox = this.createComboBox(this.skin); cb.autoSize = true; cb.pos((Laya.stage.width - cb.width) / 2, 100); cb.autoSize = fa...

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

868. 按钮失效,同UI里的一个图片超链接点击后再返回,出现按钮失效。 [ 75%]

...承类 var StartResource = function StartResource(){ StartResource.super(this); //LOGO 图标 访问地址 var href='https://list.tmall.com/search_product.htm?q=%BB%A8%D3%A1%D0%B6%D7%B1%CB%AE&type=p&spm=a220m.1000858.a2227oh.d100&xl=%BB%A8%D3%A1_2&from=.list.pc_1_suggest';     if(...

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

869. ComboBox属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 75%]

...ALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(skin, Handler.create(this, onLoadComplete)); })(); function onLoadComplete() { var cb = createComboBox(skin); cb.autoSize = true; cb.pos((Laya.stage.width - cb.width) / 2, 100); cb.autoSize = false; } function createComboBox(skin) { var comboBox ...

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

870. Button点击函数逻辑bug [ 75%]

Button点击函数逻辑bug onMouse(e) { if (this.toggle === false && this._selected) return; if (e.type === Laya.Event.CLICK) { this.toggle && (this.selected = !this._selected); this._clickHandler && this._clickHandler.run(); return; } !this._selected && (this.state...

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