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

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

1201. 关于网页游戏分辨率问题 [ 56%]

...都是300x300   请问可以按照设备大小来显示,并且sprite的width和height都同时用设备大小显示么? 如果不行,该如何解决? 附件 : --> 2018-07-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...

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

1202. 如何获取图片每个像素点的RGB? [ 56%]

...~ let my_canvas: HTMLCanvas = the_sprite.drawToCanvas(Game_Parameter.game_width, Game_Parameter.game_height, 0, 0); //把精灵绘制到canvas上面let my_texture: Texture = new Texture(my_canvas); //使用htmlCanvas创建Texture let pixels = my_texture.getPixels(700, 8, 10, 1); //得到像素点  ...

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

1203. 3D文本内容是否可以清除 重新书写 [ 56%]

...nt("canvas"); let cxt:CanvasRenderingContext2D = cav.getContext("2d"); cav.width = 256; cav.height = 256; cxt.fillStyle = 'rgb(' + '255' + ',' + '0' + ',0)'; cxt.font = "bold 50px 宋体"; cxt.textAlign = "center";//文本的对齐方式 cxt.textBaseline = "center";//文本相对于起点的位置 /...

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

1204. Laya.Handler.create 回调 [ 56%]

...法完成缓动后的回调怎么写,Tween.to(beginbox,{x:-Laya.Browser.width},1000,null,aaa,0,false);aaa是一个测试方法 资源加载后的 回调 网络send 不回调?什么情况? Skeleton 类播放完成一遍后有没事件或者回调 如何定义动画播放过某帧后的回调函...

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

1205. 使用二进制图片 · LayaAir3.0文档 · LAYABOX [ 56%]

....then((res)=>{ //创建Texture2D var t2d: Texture2D = new Texture2D(res.width, res.height, TextureFormat.R8G8B8A8, false, false, true); t2d.setImageData(res, true, false); //创建Texture var texture: Texture = new Texture(t2d); let sp2:Sprite = new Sprite(); //使用Sprite对象的绘制纹理...

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

1206. Animation创建时无法获取高度 [ 56%]

...--> ", roleAni.getBounds() ); 打印为 ---> Rectangle {x: 0, y: 0, width: 0, height: 0}修改anchorY值无效 2017-08-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: 1、加个ti...

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

1207. 富文本莫名其妙自己会换行 [ 56%]

...。 2019-02-14 0 3 分享 微博 QZONE 微信 buger 赞同来自: p.style.width = 400;   加个宽度试下 2019-02-11 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 Frost 相关问题 文本如何自动换行 ...

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

1208. 如何根据 MeshTerrainSprite 设置 laya.d3.component.PathFind 的 Grid 的 walkable ? [ 56%]

...多一点话就不能滚动查看内容 screenMode 设置成vertical后,width和hight获取问题 问题状态 最新活动: 2017-06-30 11:22 浏览: 787 关注: 3 人

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

1209. 树状列表组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 56%]

...ee.xml = new Laya.XML(treeData); tree.size(300, 300); tree.x = (Laya.stage.width - tree.width) / 2; tree.y = (Laya.stage.height - tree.height) / 2; tree.bgColor = "#d25454"; this.owner.addChild(tree); } } class Item extends Laya.Box { constructor() { super(); this.right = 0; this.left = 0; var selec...

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

1210. [LayaAir 2.0]laya打包华为快游戏,drawToCanvas() 获取屏幕像素为空 [ 56%]

...Air 2.0 在打包华为快游戏时, Laya.stage.drawToCanvas(Laya.stage.width, Laya.stage.height, 0, 0).getTexture()会导致游戏卡死,无报错。try catch后错误信息也没有。   输出错误信息:    TIPS:已经定位到了这句代码 附件 : --> 2023-11-16 添加评论 免...

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