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

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

671. 关于新手引导 [ 64%]

...alpha = 0.5; maskArea.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000"); guideContainer.addChild(maskArea); //绘制一个圆形区域,利用叠加模式,从遮罩区域抠出可交互区 interactionArea = new Sprite(); //设置叠加模式 interactionArea.blendMode = "dest...

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

672. 物理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

673. 如何根据内容计算 Label的高度 [ 64%]

...ying 赞同来自: 问题1、   label的宽高可以直接通过.width和.height获取,尺寸会跟随字符的多少变化而变化,是自动调整的,无需开发者去计算 问题2、   htmlDivElement的文本宽高,默认的宽高为200,,200,如果已经设置过htmlDivElement的...

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

674. 如何让List的根据内容高度自适应 [ 64%]

...让List的根据内容高度自适应 如题,看api说明,设置list的height=0后高度会自适应,但是没有效果,请问如何实现根据内容高度自适应 2017-03-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...

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

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. 3D寻路 · LayaAir3.0文档 · LAYABOX [ 64%]

...dFromAStarMap(texture): any { var textureWidth = texture.width; var textureHeight = texture.height; var pixelsInfo = texture.getPixels(); var aStarArr = []; var index = 0; for (var w = 0; w < textureWidth; w++) { var colaStarArr = aStarArr[w] = []; for (var h = 0; h < textureHeight; h++) { var...

来源: Laya3.0_文档 发布时间: 20230303

677. 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

678. laya.ui.Tab_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

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. 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