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

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

431. HttpRequest详解(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 49%]

...va package { import laya.events.Event; import laya.net.HttpRequest; public class LayaSample { public function LayaSample() { //初始化引擎 Laya.init(1136, 640); var xhr:HttpRequest = new HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE,this,completeHandler)...

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

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

...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

433. ToolTip鼠标悬停的使用 [ 49%]

...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

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

...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

435. laya.net.LoaderManager [ 49%]

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

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

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

...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

437. mac安装typescript的问题 [ 49%]

...! 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

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

...一直旋转。有将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

439. 抖音小游戏 · LayaAir3.3 · 引擎文档 · LAYABOX [ 48%]

...,方法与web发布略有不同,加载代码示例如下: const { regClass, property } = Laya; @regClass() export class Script extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Scene3D }) scene3d: Laya.Scene3D; constructor() { super(); } /** * 组件被激活后执...

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

440. 分包项目, 加载js时报错 [ 48%]

...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