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

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

401. ToolTip鼠标悬停的使用 [ 50%]

...aya.utils.Browser; import laya.utils.Handler; import ui.TestTipsUI; public class ToolTipDemo { private var _testTip:TestTipsUI;//ui弹框(IDE发布),用于鼠标悬浮提示框 private var _tip:TipManager;//实例化TipManager public function ToolTipDemo() { Laya.init(Browser.width,Browser.hei...

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

402. 微信小游戏无法用bin目录调试,只能发布后在release/wxgame/中调试 [ 50%]

...function/",  运行报错 gameContext?id=1:58 libs/laya.ui.js: TypeError: Class constructor Component cannot be invoked without 'new' at new Widget (laya.ui.js:201) at laya.ui.js:349 at laya.ui.js:1 at wrapFn (gameContext?id=1:51) at require (VM505 WAGameSubContext.js:2) at a (VM505 WAGameSubContex...

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

403. 关于大量图片加载绘制后的内存暴增的疑问 [ 50%]

...aya.utils.Handler; import laya.utils.Stat; import laya.webgl.WebGL; public class Demo { private var num:Number=0;//加载图片的个数 private var sp:Sprite;//显示图片的显示对象容器 private var texture:Texture;//预加载图片的纹理 public function Demo() { Laya.init(800,1000,WebGL)...

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

404. laya.net.LoaderManager [ 50%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames LoaderManagerProperties | Methods | Events Packagelaya.netClasspublic class LoaderManagerInheritanceLoaderManager EventDispatcher Object LoaderManager 类用于用于批量加载资源。此类是单例,不要手动...

来源: Laya2.0_api 发布时间: 20190513

405. 使用typescript开发项目,解决文件引用顺序问题 [ 50%]

...rld.js' Laya.stage.addChild(new HelloWorld) //HelloWorld.ts export default class HelloWorld extends Laya.Text { constructor(){ super() this.text = "Hello Layabox" this.color = '#ffffff' } }   2017-11-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...

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

406. mac安装typescript的问题 [ 50%]

...! fstream_path: '/usr/local/lib/node_modules/typescript', npm ERR! fstream_class: 'DirWriter', npm ERR! fstream_stack: npm ERR! [ '/usr/local/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:35:25', npm ERR! '/usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:47:53', npm ERR! 'F...

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

407. 可以帮我测试一下吗? 使用mask的场景,放着就会出现记忆体用完的讯息? [ 50%]

...一直旋转。有将mask拿掉测试,发现就不会有类似问题。class GameLayer extends ui.GameLayerUI { private infos : any; constructor () { super (); this.infos = { rotation : 0 }; Laya.timer.frameLoop(1,this,()=> { this.infos.rotation += 1; if (this.infos.rotation >= 360) this.inf...

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

408. Resources already exist,is repeated loading 加载特效报重复加载 [ 50%]

...ready exist,is repeated loading 加载特效报重复加载 export default class TransformDemo{     private scene:Laya.Scene3D;     private position:Laya.Vector3 = new Laya.Vector3(0, 0, 0);     private position1:Laya.Vector3 = new Laya.Vector3(0, 0, 0);     private rotate:Laya.Vector...

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

409. 分享:为List组件下Item(Box)下的Button(或其他组件)进行监听! [ 50%]

...getChildByName('btn'); btn.on(Event.CLICK,this,onClickBtn,[index]); } Laya.class(TestUI, "TestUI", TestPageUI); //按钮Click回调 function onClickBtn(index) { alert("你点击了第:"+index+"个btn"); } //初始化引擎 Laya.init(600, 400); Laya.stage.bgColor='#EEFFCC'; Laya.loader.load("res/at...

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

410. 分包项目, 加载js时报错 [ 50%]

...rt laya.ui.View;     /*[COMPILER OPTIONS:ForcedCompile]*/     public class loading100 extends Box     {         public function loading100()         {             var txt:Text = new Text();             //设置文本内容             txt.text = "Hello...

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