大约有 257 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0058 秒)
Laya_社区(103) Laya3.0_api(56) Laya2.0_文档(32) Laya2.0_示例(27) Laya_示例(24) Laya3.0_文档(14) Laya2.0_api(1)
... var txt:Text = new Text(); txt.text = "hello"; txt.color = "#FF00FF"; txt.width = 100; txt.height = 100; txt.x = 200; txt.y = 100; txt.fontSize = 50; txt.on("click", this, onFunc); Laya.stage.addChild(txt); } private function onFunc(e:Event):void { var arr:Array = e.touches; console.log("e.touchId=...
来源: Laya_社区 发布时间: 20170519
...画如何设置绕自身中心点旋转,我这么设置_ani.pivot(_ani.width/2,_ani.height/2);不行,而且也没有锚点可以设置,如何实现 元素旋转后,所绑定的事件失效 unity的坐标和旋转转换到laya需要做什么运算 问题状态 最新活动: 2020-11-20 19:18 ...
来源: Laya_社区 发布时间: 20201120
...缩放了 熊猫大侠 • 2020-08-19 13:58 @闫小米R:直接设置 B 的width 和 height 闫小米R • 2020-08-19 10:16 这俩网址我都打不开........ 闫小米R • 2020-08-19 11:03 经过测试 只要把我这个B从舞台移除就没问题了 然后看API说 B作为遮罩时 B的位置会...
来源: Laya_社区 发布时间: 20200813
..."; txt.text = "历史最高分:123456789"; Laya.stage.addChild(txt); txt.width = 100; txt.height = 100; txt.zOrder = 1000; } 但是if里面的不会执行,提示Laya.Browser.window.conch未定义 2018-07-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请:...
来源: Laya_社区 发布时间: 20180718
...= p.decode(); let texture:Laya.Texture2D = new Laya.Texture2D(544,960);//p.width,p.height this.texture = texture; this.refreshCamera(); //在U方向上使用WARPMODE_CLAMP // texture.format = Laya.TextureFormat.ASTC10x10 texture.wrapModeU = Laya.BaseTexture.WARPMODE_CLAMP; //在V方向使用WARPMODE...
来源: Laya_社区 发布时间: 20220815
...bg:Image = new Image("resource/ui/bg.png"); bg.sizeGrid = "40,10,5,10"; bg.width = 150; bg.height = 250; addChild(bg); var image:Image = new Image("resource/ui/image.png"); addChild(image); var button:Button = new Button("resource/ui/btn_close.png"); button.name = Dialog.CLOSE;//设置button的name...
来源: Laya3.0_api 发布时间: 20231115
...w Laya.Sprite(); progressBar.loadImage("comp/BG1.jpg",50,300); progressBar.width=300; progressBar.sizeGrid="5,5,5,5"; progressBar.changeHandler=new Handler(this,onChange); //当progressBar的value值改变时触发 Laya.stage.addChild(progressBar); onchange(); } function onChange(value) { trace("进...
来源: Laya_社区 发布时间: 20170701
...本LayaAir Native SDK 0.9.2 正常//初始化引擎 Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.bgColor = "#ffeff0"; //设置横竖屏 // Laya.stage.optimizeScrollRect = true; Font.defaultFont = "宋体"; Laya.stage.alignV = "top"; Laya.stage.alignH = "left"; Laya.stage.screenMode...
来源: Laya_社区 发布时间: 20170801
...temRender = Item; list.repeatX = 1; list.repeatY = 4; list.x = (Laya.stage.width - WID) / 2; list.y = (Laya.stage.height - HEI * list.repeatY) / 2; // 使用但隐藏滚动条 list.vScrollBarSkin = ""; list.selectEnable = true; list.selectHandler = new Handler(this, onSelect); list.renderHandler = n...
来源: Laya2.0_文档 发布时间: 20210714
...temRender = Item; list.repeatX = 1; list.repeatY = 4; list.x = (Laya.stage.width - Item.WID) / 2; list.y = (Laya.stage.height - Item.HEI * list.repeatY) / 2; // 使用但隐藏滚动条 list.vScrollBarSkin = ""; list.selectEnable = true; list.selectHandler = new Handler(this, this.onSelect); list.re...
来源: Laya2.0_文档 发布时间: 20210715