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

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

41. 请教各位前辈们,AS的一些API好像layabox没有,求解决方法或者思路,比如 Point 的interpolate方法 具体问题内详 [ 56%]

...@cuixueying 感谢你上面做的回答 现在遇到以下的问题 public function drawImage(target:Sprite,srcbmd:Image, mx:Matrix, p1:Point, p2:Point, p3:Point, p4:Point):void         {             var texture:Texture = Laya.loader.getRes(srcbmd.skin);             target.gr...

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

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

...    image.src = "res/atlas/pixel.png";         image.onload = function()         {             // 界面上按钮所在的位置以及按钮的宽高             drawImage(image, 462, 194, 156, 48, 0); // 调用绘图以及 挖洞         }    ...

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

43. 列表组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 55%]

...一种回调的方式。首先为列表定义一个回调函数,例如: function renderListItem(index:number, obj:GButton) { obj.title = "" + index; } 如果使用了对象池,意回调函数可能为同一个对象重复调用,所以在回调函数里注册事件侦听需要非常小心,避...

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

44. 开放数据域组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 46%]

...ge方法中执行getFriendCloudStorage方法,修改后的方法如下: function init() { wx.onMessage((data) => { console.log("onMessage", data); if (data.type === "updateViewPort") { Layout.updateViewPort(data.box); draw(POWERRANK); } else if (data.type === 'close') { Layout.clear(); } /** *...

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

45. LayaAir2.0(LayaBox)之小游戏开放域开发 [ 40%]

...ar mark = 0; if(Laya.Browser.onMiniGame){ Laya.Browser.window.wx.onMessage(function(data){//微信接受信息 if(data.url == "res/atlas/test.atlas" || data.url == "test/1.png" ||data.url == "test/2.png"||data.url == "test/3.png"){ mark ++; console.log("------data.url:" + JSON.stringify(data.url)); ...

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

46. 缓动 · LayaAir3.3 · 引擎文档 · LAYABOX [ 38%]

...ation(1000).to("x", 600).ease(myEase); //开发者自定义的缓动函数 function myEase(t: number, b: number, c: number, d: number) : number { //... } 3.5 串行和并行 本节主要介绍两个方法:chain()和parallel()。 chain():当开发者想要顺序执行多个缓动效果时,就...

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

47. 3D粒子 · LayaAir3.3 · 引擎文档 · LAYABOX [ 36%]

...ath = ""; } Pool.getInstance().ClearGroup("Particle3D@" + root_path, this, function(particle_3d:Particle3D) { particle_3d.Clean(); }); } } 5.2 自定义对象池类 export class Pool { private _poolDic:{[key: string]: any;} = {}; private InPoolSign: string = "__InPool"; constructor() { } private sta...

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

48. 3D粒子编辑模块 · LayaAir3文档 · LAYABOX [ 36%]

...ath = ""; } Pool.getInstance().ClearGroup("Particle3D@" + root_path, this, function(particle_3d:Particle3D) { particle_3d.Clean(); }); } } 5.2 自定义对象池类 export class Pool { private _poolDic:{[key: string]: any;} = {}; private InPoolSign: string = "__InPool"; constructor() { } private sta...

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

49. VSCode高效开发工作流配置指南(TypeScript-IDE篇(TS)-代码模式基础) [ 34%]

...{watch ,task } = require("gulp"); const {exec} = require("child_process"); function compile(cb) { //执行编译命令 layaair2-cmd compile let process = exec("layaair2-cmd compile"); process.stdout.on("data",(data)=>{ console.log(data); }); process.stderr.on("data",(data)=>{ console.log(data); }); ...

来源: Laya2.0_文档 发布时间: 20210715

50. LayaAir3D UnityPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) [ 26%]

...837 Uncaught TypeError: Cannot read property 'props' of undefined     at Function.Laya3D._getSprite3DHierarchyInnerUrls (libs/laya.d3.js:1837)     at Loader.Laya3D._onHierarchylhLoaded (libs/laya.d3.js:1933)     at EventHandler.__proto.runWith (libs/laya.core.js:1628)     at Loader.__proto.e...

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