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

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

371. 引擎自带的图集图片丢失问题 [ 76%]

...自带的图集图片丢失问题 我用js加载完图集后 tArray=[{url:"res/atlas/comp.atlas",type:Laya.Loader.ATLAS}] Laya.loader.load(tArray,Laya.Handler.create(this,onResLoaded()));   里面的button和checkbox提示丢失了。是什么原因??   附件 : --> 2018-03-25 添加评论 免...

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

372. 动画-SWF动画 [ 76%]

...; var Browser = Laya.Browser; var WebGL = Laya.WebGL; var SWFPath = "../../res/swf/dragon.swf"; var MCWidth = 318; var MCHeight = 406; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.sta...

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

373. 动画挂点(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 76%]

...SceneMonkey/Conventional/SceneMonkey.ls",Laya.Handler.create(this,function(res){ Laya.stage.addChild(res); //用于挂点的精灵 var box = new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1,1,1)); var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.c...

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

374. 动画挂点(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 76%]

...SceneMonkey/Conventional/SceneMonkey.ls",Laya.Handler.create(this,function(res){ Laya.stage.addChild(res); //用于挂点的精灵 var box = new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1,1,1)); var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.c...

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

375. 动画-SWF动画 [ 75%]

...; } createMovieClip() { const MovieClip = Laya.MovieClip; const SWFPath = "res/swf/dragon.swf"; let MCWidth = 318, MCHeight = 406; let mc = new MovieClip(); Laya.stage.addChild(mc); mc.x = (Laya.stage.width - MCWidth) / 2; mc.y = (Laya.stage.height - MCHeight) / 2; mc.load(SWFPath); } } new Animatio...

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

376. 这是图文混排谷歌浏览器查看正常打包后的APP文字消失表情变大 [ 75%]

...情变大 class CAffiche { private textfiled:Laya.HTMLDivElement; public Reset():void { gRoomView.chatBox.innerHTML = ""; gRoomView.chatBox.height = 1; } public SysSay(txt:string):void { this.AddChat(0, "法官", txt); } public PlayerSay(msg:any):void { this.AddChat(msg['from_client_seatsno'], msg['...

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

377. 打包之后TEXT可以显示但是 加载其他资源时白屏 [ 75%]

....stage.screenMode = "horizontal";  var asset = []; asset.push({ url: ["../res/image/bg.png"], type: Laya.Loader.IMAGE }); Laya.loader.load(asset,Laya.Handler.create(this,graphicsImg)); function graphicsImg(){ var s = new laya.display.Sprite(); s.graphics.drawTexture(Laya.loader.getRes("../res/image...

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

378. 骨骼动画进阶(JavaScript-2D进阶篇(JS)-动画进阶) [ 75%]

...t.on(Laya.Event.ERROR,this,onError); //加载动画文件 templet.loadAni("res/spine/goblins/goblins.sk"); function onError() { console.log("parse error"); } function parseComplete() { //创建第一个动画 var skeleton0; //从动画模板创建动画播放对象 skeleton0=templet.buildArmature(0)...

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

379. 粒子系统-燃烧大地 [ 75%]

...e, false); var particleSprite3D = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/particle/ETF_Burning_Ground.lh"));class Particle_BurningGround { constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat....

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

380. 粒子系统-永恒之光 [ 75%]

...e, false); var particleSprite3D = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/particle/ETF_Eternal_Light.lh"));class Particle_EternalLight { constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.sh...

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