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

大约有 904 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0057 秒)

671. laya.ui.RadioGroup_API3.0 [ 64%]

...itTestPrior mouseThrough name selectHandler tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY bgColor blendMode bottom cacheAs centerX centerY components customRenderEnable dataSource destroyed direction disabled displayHeight displayWidth displayedI...

来源: Laya3.0_api 发布时间: 20231115

672. Uncaught TypeError: Cannot read property 'XXX' of undefined [ 64%]

...pe.y = 100;             spe.width = 512;             spe.height = 512;             spe.size(512, 512);             Laya.stage.addChild(spe);             spe.graphics.drawRect(0, 0, 515, 515, "#996633", "#333333");             spe.on(Event.MOUSE_D...

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

673. laya.ui.ComboBox_API3.0 [ 64%]

...e hitTestPrior itemRender mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode bottom button cacheAs centerX centerY components customRenderEnable dataSource defaultLabel destroyed disabled displayHeight displayWidth displaye...

来源: Laya3.0_api 发布时间: 20231115

674. 物理Bodies绑定Laya.Sprite [ 64%]

...png"); gun_skin.scale(50, 50); gun_skin.pivot(gun_skin.width / 2, gun_skin.height / 2); gun = Bodies.rectangle(150, 150, 50, 50, { frictionAir: 0.5, //空气摩擦力 density: 0.68, // 密度 layaSprite: gun_skin, // 绑定一个laya的Sprite, 不能用render.sprite render: { visible: true, // 开...

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

675. List中放TextInput,当list滚动的时候,复用会有问题,input中的内容会乱,尤其有输入框focus的情况下 [ 64%]

...t.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 = new Handler(this, updateItem); Laya.stag...

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

676. 开启视网膜画布(useRetinalCanvas)后,在iphone6 plus 等设备像素比大于1 的设备上截图不完整 [ 64%]

...Laya.HTMLCanvas = Laya.stage.drawToCanvas(Laya.stage.width, Laya.stage.height, 0, 0);         let base64Img                   = htmlCanvas.toBase64("image/png", 0.8); 而 关闭视网膜屏幕或者在屏幕像素比为1的设备上正常 附件 : --> 2020-10-19 ...

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

677. laya.d3.core.scene.BaseScene [ 64%]

...口,Sprite所有的绘图操作都通过Graphics来实现的。Sprite height : Number 表示显示对象的高度,以像素为单位。 高度默认为0,可以手动设置,或者通过getbounds获取实际宽度。设置此高度只用来做鼠标碰撞使用,改变后并不影响显示...

来源: laya_api 发布时间: 20170422

678. WebGL模式下用遮罩实现圆形头像会有警告出现 [ 64%]

...fff"); this.img.mask = mask; this.img.pos(Laya.stage.width / 2, Laya.stage.height / 2); Laya.stage.addChild(this.img); 附件 : --> 2017-01-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自...

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

679. 2.0字体比较小的时候,某些字显示不全 [ 64%]

...g = 5; txt.x = (Laya.stage.width - txt.textWidth) / 2; txt.y = (Laya.stage.height - txt.textHeight) / 2; Laya.stage.addChild(txt); } } }上面是我的简单测试代码: 图片是2.0版本和1.8版本的字体显示对比。 2.0版本的ggg下面部分都被截断了。     附件 : --> 2019-06...

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

680. 关于项目分包的问题?? [ 64%]

...aleMode; import flash.events.Event; import login.LoginView; [SWF(width=800,height=600,backgroundColor="0xffffff",frameRate=60)] public class Main extends Sprite { public function Main():void { IFlash.setSize(800, 600);//2D项目中设置场景尺寸 IFlash.setOrientationEx(1); //是否为横屏模...

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