大约有 1,766 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0131 秒)
Laya_社区(1394) Laya2.0_文档(82) Laya3.0_api(68) Laya2.0_api(57) Laya3.0_文档(53) laya_api(53) Laya_示例(32) Laya2.0_示例(27)
...垂直对齐 Laya.stage.alignV = "middle"; //实例一个背景 let bg = new Image(); bg.skin = "res/bg.jpg"; Laya.stage.addChild(bg); //实例一个文本 this.txt = new Text(); this.txt.text = "点击我切换适配模式(noscale)"; this.txt.bold = true; this.txt.pos(0, 200); this.txt.fontSize = 3...
来源: Laya2.0_示例 发布时间: 20251209
...有<style>标签,第二帧再刷会报错的问题 this.m_htmlInfo = new HTMLDivElement(); this.m_htmlInfo.innerHTML = htmlText; this.frameOnce(1, this, function(){ this.m_htmlInfo.innerHTML = htmlText; }) 2017-03-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...
来源: Laya_社区 发布时间: 20170314
... 要回复问题请先登录 发起人 tigerzxd 相关问题 两个对象new了一个相同的对象,调用第一个的一个方法,走进了第二方法里 请问LayaAir中如何使图片以圆形的方式显示? 请问laya有没有地图编辑器工具? 请问有没有方法能够获取“...
来源: Laya_社区 发布时间: 20160616
...什么? 自从layaflash起,就一直存在的bug Laya.Handler.create和new Laya.Handler有啥区别 LayaAir 3D 有提供 3D 物理引擎功能吗? 按官网上的文档 使用LayaNative运行LayaAir项目https://ldc.layabox.com/doc/?nav=zh-as-7-0-1。出现了问题 在初始化时候使用can...
来源: Laya_社区 发布时间: 20160126
...法) public function 加载图片的方法():void{ var s:sprite = new sprite(); s.skin = "图片路径"; laya.stage.addChild(s); } 2018-04-16 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 cyk123 相关问题 【屏幕适...
来源: Laya_社区 发布时间: 20180416
...(this,onLoaded)); function onLoaded(){ //实例化导出的UI类 var efc = new ui.TestPUI(); //添加到舞台 Laya.stage.addChild(efc); } ``` 运行后,按钮被按下时,动画效果如动图11所示: (图11) ### 4、多个动效模板创建复杂动效 刚刚实现了按钮...
来源: Laya2.0_文档 发布时间: 20210715
... Laya.loader.load("comp/button.png"); let button = new UIButton("comp/button.png","点我"); button.labelSize = 30; button.size(300,100); button.centerX = 0; button.centerY = 0; Laya.stage.addChild(butt...
来源: Laya_社区 发布时间: 20161114
...要有宽高,要不不会自动排序,参考代码:var vbox:HBox = new HBox(); Laya.stage.addChild(vbox); vbox.width = 500; vbox.height = 300; var image:Image = new Image(); image.skin = "rank/132.jpg"; vbox.addChild(image); image.size(100,100); var image2:Image = new Image(); image2.skin = "r...
来源: Laya_社区 发布时间: 20180829
... if (!_shape) { _shape = new window.box2d.b2ChainShape(); _setShape(false); } this.label = (this.label || "ChainCollider"); return super.getDef(); ...
来源: Laya_社区 发布时间: 20181116
...rride protected function initialize():void{ super.initialize(); _proMask = new Sprite(); _proMask.graphics.drawRect(0, 0, _progress.width, _progress.height); _proMask.scaleX = 0; _progress.mask = _proMask; _bar.stateNum = 1; } override protected function createChildren():void { super.createChildren(...
来源: Laya_社区 发布时间: 20170327