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

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

711. Uncaught TypeError: Cannot read property 'XXX' of undefined [ 60%]

...  spe.x = 100;             spe.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");  ...

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

712. drawTextures BUG [ 60%]

...his._inner_drawTexture(tex, bmpid, pos[ipos++] + tx, pos[ipos++] + ty, tex.width, tex.height, null, null, 1.0, false);   附件 : --> 2022-06-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_z 赞同来自:...

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

713. laya.ui.AdvImage_API3.0 [ 60%]

...ents customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray group height hideFlags hitArea is3D left mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY right rotation s...

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

714. 使用3D摄像机 · LayaAir3.4 · 引擎文档 · LAYABOX [ 59%]

... this.viewport.x; this._rayViewport.y = this.viewport.y; this._rayViewport.width = ILaya.stage._width; this._rayViewport.height = ILaya.stage._height; Picker.calculateCursorRay(point, this._rayViewport, this._projectionMatrix, this.viewMatrix, null, out); } 参照3D-RPG项目,我们加上一段代...

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

715. laya.ui.Panel_API3.0 [ 59%]

...hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY bgColor blendMode bottom cacheAs centerX centerY components content customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCall...

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

716. 列表组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 59%]

...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的垂直滚动 list.scrollType = Laya.ScrollType.Vertical; // 设置List的垂直滚动皮肤,不设置或者""就没有滚动...

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

717. 鼠标点击无效 [ 59%]

...gLi • 2017-11-21 15:55 添加点击区域宽高就可以了 roleAni.size(width,height); roleAni.on(Laya.Event.CLICK,this,function): 13995580072 • 2017-11-21 17:24 非常感谢,就是没有宽和高引起的

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

718. 2.0 Beta3版本中,runtime脚本的的问题 [ 59%]

...me" /* * 游戏初始化配置; */ export default class GameConfig{ static width:number=640; static height:number=1136; static scaleMode:string="fixedwidth"; static screenMode:string="none"; static alignV:string="top"; static alignH:string="left"; static startScene:any="mainscene.scene"; static scen...

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

719. 加载网页图片地址有的不会显示 [ 59%]

...Child(p); var html: string = "<img src='" + imgUrl + "'/>";// style='width:96;height:96' />"; p.innerHTML = html; 其他的大部分图片这两种方案都是没问题可以正常显示的。麻烦帮忙看一下,谢谢 2017-07-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

720. HTML文本 · LayaAir3.0文档 · LAYABOX [ 59%]

...中设置字体、颜色不同3.3 获取html文本的实际宽高(contextWidth、contextHeight)3.4 设置文本的水平居中对齐(align需要和width配合使用)3.5 实现超链接3.6 实现html页面跳转3.7 为HtmlDivElement设置行间距,leading属性,注意,必须设置valign=’...

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