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

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

721. 1.70beta Dialog增加动画后第二次执行popup不显示弹窗 [ 63%]

...下! 2017-03-03 0 0 分享 微博 QZONE 微信 a694284699 赞同来自: (function() { var Stage = Laya.Stage; var Button = Laya.Button; var Dialog = Laya.Dialog; var Image = Laya.Image; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var DIALOG_WIDTH = 220; var DIALOG_HEIGHT = 275; var CLOSE_B...

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

722. 这样的panel请问如何实现比较好? [ 63%]

...['res/atlas/comp.atlas']; Laya.loader.load(resPath, new Laya.Handler(this, function () { var textUi = new TextUI(); Laya.stage.addChild(textUi); }), null, Laya.Loader.ATLAS);  } } new GameMain();   Test.zip 2018-08-10 0 1 分享 微博 QZONE 微信 Bert 赞同来自: 感觉很简单,不知道难...

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

723. Spine适配版(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 63%]

...private var skeleton:SpineSkeleton; private var index: Number = -1; public function Main() { Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.scaleMode = Stage.SCALE_NOSCALE; Laya.stage.bgColor = "#232628"; Stat.show(); this.startFun(); } private function startFun(): void { this.templet =...

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

724. 没有预加载的图片怎么获取width和height ? [ 63%]

...前加载资源,在回调中进行操作设置 text_load_width_height(); function text_load_width_height() {      Laya.init(600,400);     Laya.loader.load(["../laya/assets/comp/image.png","../laya/assets/comp/vscroll.png"],Laya.Handler.create(this,onAssetLoad));      } function onAssetL...

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

725. laya.d3.shader.SubShader_API3.0 [ 63%]

...rmMapType ShaderDataTypeToUniformBufferType Legend Object literal Variable Function Type alias Class Class with type parameter Constructor Method Static property Static method Enumeration Interface

来源: Laya3.0_api 发布时间: 20231102

726. 导出微信小游戏代码报错gameThirdScriptError [ 63%]

...f undefined TypeError: Cannot read property 'events' of undefined     at Function.EventDispatcher.__init$ (http://127.0.0.1:52880/game/code.js:630:29)     at http://127.0.0.1:52880/game/code.js:14:71     at Array.forEach (<anonymous>)     at Object.__init (http://127.0.0.1:52880/game/c...

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

727. laya微信小游戏加载外部素材失败 急急急 [ 63%]

...自: 附件是 加载demo 代码非常少 可以重现我说的问题    function initLaya() { console.log('Laya.version:' + Laya.version); //初始化微信小游戏 Laya.MiniAdpter.init(); //初始化引擎 Laya3D.init(750, 1334, true); //适配模式 Laya.stage.scaleMode = 'fixedwidth'; Laya.st...

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

728. 分享:避免鼠标快速移动,mouseout和mouseover触发顺序不一致的问题! [ 63%]

...private var arr:Array;//用于存储处于over状态的显示对象 public function MouseOver_mouseOut() { Laya.init(600,400); Laya.stage.bgColor='#EEFFCC'; arr=; var sp1:Sprite=new Sprite(); sp1.autoSize=true; sp1.name='sp1'; sp1.graphics.drawRect(0,0,100,100,"#FF0000"); var sp2:Sprite=new Sprite()...

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

729. 我自己绘制的矩形如何以自身中心点旋转不能实现啊 [ 63%]

...ya.utils.Browser; import laya.webgl.WebGL; public class HelloLaya { public function HelloLaya() { Laya.init(Browser.width, Browser.height,WebGL); Laya.stage.bgColor="#eeffcc"; var sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,200,300,"#000fff"); Laya.stage.addChild(sp); sp.size(200,300); sp.pivot...

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

730. rigidBody.applyForce 对刚体应用力,物体没有移动 [ 63%]

...xture2D.load("res/threeDimen/Physics/rocks.jpg", Laya.Handler.create(this, function (tex) {             this.mat1.albedoTexture = tex;         }));         Laya.Texture2D.load("res/threeDimen/Physics/plywood.jpg", Laya.Handler.create(this, function (tex) {             this.mat2.a...

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