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

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

371. [0]GPUInstance在半透明渲染队列下不会自动合批 [ 63%]

...有完全展示数组数据,只展示了其中的图片部分,数组能console出,那个list中的数据也存在,但没渲染出。 JS 是没有自动补全提示吗 Laya 安卓端 在服务端运行指令layadcc ./ 后进不去,提示 assetId is old 和 init dcc fail。然后过五六个...

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

372. 分享一个虚拟摇杆,比较粗糙,没做优化 [ 63%]

...//初始化你预先设置的参数 ModeKey.prototype.init = function () { console.log(this.moveKey, this.layer, this.moveMax) this.moveKey.on(Laya.Event.MOUSE_DOWN, this, this.downFun); //记录一开始小圆点的位置,方便鼠标弹起的时候自动返回开始位置 this.moveKey.mode = {x:...

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

373. 怎么使用http请求 [ 63%]

...sponse:\n" + xhr.responseText); var data = JSON.parse(xhr.responseText); //console.log(data); if (data.result_status == 1 && data.top_list) { WxRankManage._top_list = data.top_list; //对排行数据进行处理 //wb.EventManager.dispatchCustomEvent(wb.HTTPRE, xhr.responseText); } } }; } var...

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

374. config.jsh中无法使用confirm [ 63%]

...把子 • 2018-01-16 12:04 @Monica: window.onLayaInitError=function(e) { console.log("onLayaInitError error=" + e); // alert("加载游戏失败,可能由于您的网络不稳定,请退出重进"); var Test=Laya.PlatformClass.createClass("com.ygames.buyugl.zh.MainActivi...

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

375. UI-ProgressBar [ 63%]

...ogressBar.value = 0; } this.progressBar.value += 0.05; } onChange(value) { console.log("进度:" + Math.floor(value * 100) + "%"); } } new UI_ProgressBar();module laya { import Stage = Laya.Stage; import ProgressBar = Laya.ProgressBar; import Handler = Laya.Handler; import WebGL = Laya.WebGL; expo...

来源: Laya2.0_示例 发布时间: 20241001

376. 插件开发说明 · LayaAir3.0文档 · LAYABOX [ 63%]

...e.runNodeScript(node.id, node.getComponent("MyScript").id, "test", "abc"); console.log(ret); 3、自定义一个函数,并执行。例如: //下面是场景进程的代码 //注意:IEditorEnv.regClass是必须的 @IEditorEnv.regClass() export class TestSceneScript { //注意:this是当前的...

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

377. 分享:Sprite 转换成3D贴图(Texture2D)的方法,如果有更好的方法,请告诉我。 [ 62%]

...s,callback,thisObj) { var image = new Image(); image.onload = function() { console.log("图片已经加载"); callback(image,thisObj) }; console.log("图片加载中...") image.src = canvas.toDataURL("image/png"); return image; } </script>2. 在 as 代码中加入如下函数: private static...

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

378. 2.0版本 ios浏览器旋转,会导致适配出现问题,无法旋转回来 [ 62%]

...r yfqian=(function(){ function yfqian(){ var debug=yfqian.getUrl("debug"); console.log("dubegs:",debug); if(debug=="yfqian"){ new VConsole(); webUrl=testUrl; phpUrl=testUrl_php; }else{ webUrl=adminUrl; phpUrl=adminUrl_php; } window.console.log('webUrl:',webUrl) if(window.document.body.clientWidth&gt...

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

379. 骨骼动画-藤蔓 [ 62%]

....ERROR, this, onError); mFactory.loadAni(mAniPath); } function onError() { console.log("error"); } function parseComplete() { //创建模式为1,可以启用换装 mArmature = mFactory.buildArmature(1); mArmature.x = mStartX; mArmature.y = mStartY; mArmature.scale(0.5, 0.5); Laya.stage.addChild(mA...

来源: Laya_示例 发布时间: 20241001

380. 骨骼动画-橡胶人 [ 62%]

....ERROR, this, onError); mFactory.loadAni(mAniPath); } function onError() { console.log("error"); } function parseComplete() { //创建模式为1,可以启用换装 mArmature = mFactory.buildArmature(1); mArmature.x = mStartX; mArmature.y = mStartY; //mArmature.scale(0.5, 0.5); Laya.stage.addChild(...

来源: Laya_示例 发布时间: 20241001