大约有 2,033 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0064 秒)
Laya_社区(1424) Laya2.0_文档(233) Laya_示例(141) Laya2.0_示例(117) Laya3.0_api(61) Laya3.0_文档(44) Laya2.0_api(7) laya_api(6)
...哪里 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
...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
...约束,为约束绑定两个刚体 ```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
...); //创建场景 this.scene = new Laya.Scene3D(); Laya.stage.addChild(this.scene); //添加相机 var camera = new Laya.Camera(0, 0.1, 100); this.scene.add...
来源: Laya_社区 发布时间: 20190509
... 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
...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
...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
...承类 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
...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
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