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

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

121. 在 list 的 box(render) 中添加 HTMLDivElemnt 组件 导致 IDE 卡死崩溃 IDE版本:2.12.0 [ 88%]

...ctedBox":3,     "selecteID":4,     "searchKey":"View",     "props":{"width":640,"sceneColor":"#000000","height":1136},     "nodeParent":-1,     "maxID":11,     "label":"View",     "isOpen":true,     "isDirectory":true,     "isAniNode":true,     "hasChild":true,     "compId":2, ...

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

122. 添加了MouseJoint没有效果 [ 88%]

...); ropePart.texture = ropePartTexture; ropePart.pos(48*vw,10*vh); ropePart.width = 4*vw; ropePart.height = 10*vh; let boxCollider = new laya.physics.BoxCollider(); boxCollider.width = ropePart.width; boxCollider.height = ropePart.height; ropePart.addComponentIntance(boxCollider); ropePart.addCompone...

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

123. 输入设备-地图 [ 88%]

...vertor(); // Div var mapDiv; var infoText; (function() { Laya.init(Browser.width, 255); Laya.stage.scaleMode = Stage.SCALE_NOSCALE; createDom(); initMap(); createInfoText(); var successHandler = new Handler(this, updatePosition); var errorHandler = new Handler(this, onError); // 使用高精度位...

来源: Laya_示例 发布时间: 20240929

124. DOM元素-表单输入 [ 88%]

...rm = new Laya.Sprite(); this.form.size(250,120); this.form.pos((Laya.stage.width - this.form.width) / 2, (Laya.stage.height - this.form.height) / 2); Laya.stage.addChild(this.form); this.rowHeight = 30; this.rowSpacing = 10; let rowHeightDelta = this.rowSpacing + this.rowHeight; // 显示左侧标...

来源: Laya2.0_示例 发布时间: 20240929

125. 新手引导 挖洞 不用 cacheAs="bitmap" 希望能帮助那些和我一样有需求的码农!你好我好大家好才是真的好!请各位大佬批评指教! [ 88%]

...///////////////////////////////////////////////         var browserWidth = Laya.Browser.width;         var browserHeight = Laya.Browser.height;         var pixelRatio = Laya.Browser.pixelRatio;         console.log(browserWidth + " " + browserHeight + " " + pixelRatio)...

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

126. 性能测试-卡通人物 [ 88%]

...= Laya.Loader; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); Laya.loader.load("res/car...

来源: Laya2.0_示例 发布时间: 20240929

127. 分享,扩展Laya.Text组件实现简单的富文本 [ 88%]

...对齐且最后一行有数字“1”时排版不正常,发现是 getTextWidth( ) 函数的结果和在屏幕上实际显示的宽度不同导致。 2018-04-17 1 0 分享 微博 QZONE 微信 he853066732 赞同来自: 先上源码  module game { /** * 富文本类型(重写Text类的排版和渲...

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

128. Image加载完成后的图片大小重设问题 [ 88%]

...:void     {         this.bg_img.loadImage("ui/bg.jpg",0,0,Laya.stage.width,Laya.stage.height,Laya.Handler.create(this,this.onComplete));         Laya.stage.on(Laya.Event.RESIZE,this,this.onResize);     }     onComplete():void     {         this.onResize();     }     onResize(...

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

129. 为什么动画设置大小不统一 [ 88%]

...设置大小不统一 var bounds = ani.getGraphicBounds(); ani.scale(img.width/bounds.width,img.height/bounds.height) 这里我获得动画的边界 获取得到 然后img的宽高都是80 我想设置每个动画宽高都为80 这样设置为什么不能实现? 2017-06-29 添加评论 免费帖 -...

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

130. laya.ui.AutoBitmap [ 88%]

...。 AutoBitmap  source : Texture 对象的纹理资源。 AutoBitmap  width : Number 表示显示对象的宽度,以像素为单位。 AutoBitmapPublic Methods Hide Inherited Public Methods Show Inherited Public Methods MethodDefined By alpha(value:Number):void 设置透明度。 Graphics ...

来源: laya_api 发布时间: 20170929