大约有 161 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0063 秒)
...图6) #### 1.2.3 导入动画资源 在资源面板中,将位图资源(Image组件)拖拽到动画编辑面板中,会自动在0帧创建一个关键帧。如图7所示。 > 这里一定要注意,动画的初始xy坐标必须为(0,0),最准确的方式就是手动设置一下就好了。...
来源: Laya2.0_文档 发布时间: 20210715
...!关于容器超出影藏 初学者求助,如何通过九宫格设置image横向放大且不失真 鼠标自定义样式官方有支持吗,Laya.Mouse.hide()会报Uncaught TypeError: Cannot read property 'cursor' of undefined错误 求助flash项目移植h5问题 加载龙骨动画出报错Unca...
来源: Laya_社区 发布时间: 20170314
...入口 class GameMain { private btn: Laya.Button; private skin: string = 'images/button.png'; constructor() { Laya.init(200, 300); Laya.loader.load(this.skin, Laya.Handler.create(this, () => { this.btn = this.createBtn(this.skin); this.btn.on(Laya.Event.CLICK, this, this.onClick); })); } /** * ...
来源: Laya_社区 发布时间: 20170511
...//传入16进制颜色,或者图片路径,如 http://www.manfredhu.com/images/matterjs.png } }); LayaRender.run(render); mouseConstraint = Matter.MouseConstraint.create(engine, { ...
来源: Laya_社区 发布时间: 20180323
...ExpansionPatch= I/LayaBox: download thread num = 3 I/LayaBox: start thread:image decode,2987 I/LayaBox: found the file in the package:shaders/todevVS.glsl I/LayaBox: found the file in the package:shaders/fillColorPS.glsl I/LayaBox: found the file in the package:shaders/drawImagePS.glsl I/LayaBox: fo...
来源: Laya_社区 发布时间: 20171218
...如,“Accept: text/html,application/xhtml+xml,application/xml;q = 0.9,image/webp,image/apng,/;q = 0.8” 表示客户端可以接受多种内容类型,并且对不同类型有不同的优先级(通过 q 值表示)。 1.2 HTTP响应的组成 状态行包括 HTTP 协议版本、状态码和...
来源: Laya3.0_文档 发布时间: 20251010
...rn "application/binarary" ; } else if (fileName.endsWith("jpg")) { return "image/jpeg" ; } else if (fileName.endsWith("js")) { return "application/x-javascript" ; } else if (fileName.endsWith("swf")) { return "application/x-shockwave-flash" ; } return "*/*" ; } } 参考链接:android关于加载...
来源: Laya_社区 发布时间: 20160104
...2018-08-30 16:41 @嘿哈:__JS__("wx.getOpenDataContext({filedata:'res/images/rank.json'})") 我这样传过去一样报错呢 嘿哈 • 2018-08-30 16:45 不用手动传,// 主域初始化用 Laya.MiniAdpter.init(true); 子域初始化用Laya.MiniAdpter.init(true, true); 这样初始...
来源: Laya_社区 发布时间: 20180525
...3D实例、图片读取高度图属性。 * @param mesh 网格。 * @param image 高度图。 * @param name 名字。 * @returns 地形渲染节点 */ static createFromMeshAndHeightMap(mesh: Mesh, texture: Texture2D, minHeight: number, maxHeight: number, name: string = null): MeshTerrainSprite3D { v...
来源: Laya3.0_文档 发布时间: 20230303
...片(路径:https://layaair.com/3.x/demo/resources/res/test.bin) */ const imageUrl = "resources/res/test.bin"; // 加载二进制图片文件 Laya.loader.fetch(imageUrl, "arraybuffer").then((arrayBuffer: ArrayBuffer) => { // 直接发送加载后的 ArrayBuffer 数据 this.socket.send(arrayBuffe...
来源: Laya3.0_文档 发布时间: 20251010