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

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

471. 分享:改变图片皮肤,保持图片原样宽高显示 [ 77%]

... var image:Image; public function LayaAirDemo() { Laya.init(800,600); Laya.loader.load(["bg.jpg","logo.png"],Handler.create(this,onLoaded)); } private function onLoaded():void { image=new Image(); image.skin="logo.png"; Laya.stage.addChild(image); Laya.stage.on(Event.CLICK,this,onClick); } private f...

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

472. 使用外部引擎播放layaair制作的.ani [ 77%]

...tElement.clientWidth * 2, document.documentElement.clientHeight * 2); Laya.loader.load('./card/atlas/card.atlas', Laya.Handler.create(this, onLoaded)); function onLoaded() { //创建一个Animation实例 var tl = new Laya.Animation(); //加载动画文件 tl.loadAnimation("./card/card.ani"); //添...

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

473. 动画-SWF动画 [ 77%]

...vieClip(); })(); function createMovieClip() { var mc = new MovieClip(); mc.load(SWFPath); mc.x = (Laya.stage.width - MCWidth) / 2; mc.y = (Laya.stage.height - MCHeight) / 2; Laya.stage.addChild(mc); } })();module laya { import MovieClip = Laya.MovieClip; import Stage = Laya.Stage; import Browser = L...

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

474. 加载-错误处理和进度 [ 77%]

...AirIDE让项目开发更高效。(function() { var Event = Laya.Event; var Loader = Laya.Loader; var Texture = Laya.Texture; var Handler = Laya.Handler; (function() { Laya.init(550, 400); // 无加载失败重试 Laya.loader.retryNum = 0; var urls = ["do not exist", "../../res/fighter/fighter.png", ...

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

475. 【紧急】clearRes清理缓存后,再加载图片会有延时显示问题 [ 77%]

...缓存后,再加载图片会有延时显示问题 我想咨询一下: loader.clearRes()清理指定资源地址的缓存后,用loader.load 加载不回来了吗?为何再次加载同一图片显示时有延迟?   http://m.infinistudio.cn/test/nestle/ 点击1,再点击2, 再点击1...

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

476. 如何动态添加Animator和加载AnimationClip并播放 [ 77%]

...的代码实现不了: var layaScene:Sprite3D = scene.addChild(Sprite3D.load("res/LayaScene/layaScene.lh")) as Sprite3D;       layaScene.once(Event.HIERARCHY_LOADED, this, function():void{       var meshSprite:Sprite3D=layaScene.getChildAt(0) as Sprite3D;       var animator:Animator = mes...

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

477. 动画-SWF动画 [ 77%]

....stage.width - MCWidth) / 2; mc.y = (Laya.stage.height - MCHeight) / 2; mc.load(SWFPath); } } new Animation_SWF();module laya { import MovieClip = Laya.MovieClip; import Stage = Laya.Stage; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Animation_SWF { private SWFPath: string...

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

478. layaair-cmd publish -h 报找不到universalify module错误 [ 77%]

...at Function.Module._resolveFilename (module.js:538:15) at Function.Module._load (module.js:468:25) at Module.require (module.js:587:17) at require (internal/module.js:11:18) at Object.<anonymous> (C:\Users\fp005\AppData\Roaming\npm\node_modules\lay ir-cmd\node_modules\fs-extra\lib\fs\index.js:...

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

479. UNITY3D导出模型加载错误 [ 77%]

UNITY3D导出模型加载错误 laya.core.js:12371 Uncaught Error: LoaderManager:unknown file(http://127.0.0.1/layaair/myLaya3D1/bin/null path) extension with: 1. at LoaderManager.__proto._create (laya.core.js:12371) at LoaderManager.__proto.create (laya.core.js:12339) at Loader.Laya3D._onHierarchy...

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

480. skin加载url资源不会刷新 [ 77%]

skin加载url资源不会刷新 代码如下           Laya.loader.clearRes("http://10.144.1.20:8081/files/ ... 6quot;);         var test: Texture = Laya.loader.getRes("http://10.144.1.20:8081/files/ ... 6quot;);         Laya.loader.load("http://10.144.1.20:8081/files/ ... ot%3B, Handl...

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