大约有 53 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0066 秒)
...@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
... image.src = "res/atlas/pixel.png"; image.onload = function() { // 界面上按钮所在的位置以及按钮的宽高 drawImage(image, 462, 194, 156, 48, 0); // 调用绘图以及 挖洞 } ...
来源: Laya_社区 发布时间: 20200604
...一种回调的方式。首先为列表定义一个回调函数,例如: function renderListItem(index:number, obj:GButton) { obj.title = "" + index; } 如果使用了对象池,意回调函数可能为同一个对象重复调用,所以在回调函数里注册事件侦听需要非常小心,避...
来源: Laya3.0_文档 发布时间: 20251128
...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
...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
...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
...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
...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
...{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
...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