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

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

251. 设置label但是没有变化 [ 76%]

...长时间运行后,这个label设置就不起作用了。 代码类似 this.MoneyLbl.text = 一个值。 打了断点,值是附上了,只是UI没有变化,请问这是什么原因。 2018-12-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...

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

252. 在Unity中设置动画事件(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 76%]

...件函数,名字是可以对应上的 ShowMsg(){ console.log("ShowMsg"); this.showMsgFunc && this.showMsgFunc(); } } ``` 在加载好场景之后,我们将我们创建的这个脚本添加给cube。 ```typescript //加载场景 Laya.Scene3D.load("res/threeDimen/scene/LayaScene_AnimationEvent/Con...

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

253. LayaAir下TTF字体的使用方式? [ 76%]

...nt="hu" text.pos(600,600); Laya.stage.addChild(text); Laya.timer.once(1000,this,onLoop); } private function onLoop():void { var text:Text=new Text(); text.fontSize=40; text.color="#FF00FF"; text.text="嘻嘻嘻嘻嘻"; text.font="hu" Laya.stage.addChild(text); } } }  注意:  首次用到的(...

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

254. LayaAir和原生DOM交互(ActionScript-2D进阶篇(AS3)-扩展模块) [ 76%]

...ring ="http://layabox.com/"; qrcode.makeCode(url); Laya.stage.once("click",this,clickHandler); qrcodeSp = new Sprite(); Laya.stage.addChild(qrcodeSp); } private function clickHandler():void { var url:String = qrcode._oDrawing._elImage.src;//获取,注意这里是异步的,开发者可以加个...

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

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

...; xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.on(Event.PROGRESS,this,processHandler); xhr.send("res/data.data","","get","text"); } private function processHandler(data:Object):void { trace(data); } priva...

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

256. laya.utils.ClassUtils [ 76%]

...me":"item1", "scale":[2,2] }, "child":[ { "type":"Text", "props":{ "text":"this is a test", "var":"label", "rumtime":"" } } ] } ClassUtils  getInstance(className:String):*[static] 根据名称创建 Class 实例。 ClassUtils  getRegClass(className:String):*[static] 返回注册 Class 映射。 ...

来源: laya_api 发布时间: 20170929

257. 华为手机SoundManage.playSound有问题 [ 76%]

... 华为手机 SoundManager.playSound("GameSound/aa/bb.mp3", 1,new Handler(this,soundComplete,[aa,bb])); 没有音效  上面执行完毕后 不会 执行soundComplete private function soundComplete(aa,bb):void { //执行代码 }   2018-03-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

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

258. 2.0.0beta5 can not find class Laya.Text [ 76%]

...运行报错 Uncaught Can not find scene:GameView.scene undefined Warning!,this class[MiniAdpter] already exist: Object {init: } 2.0.0编译报错Cannot find global type 'Array' 构建app后导入AS报错Could not find com.android.tools.build:gradle:3.1.2. LayaNative2.2运行报错。:getBitmapData ...

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

259. 我看到这段话后,我 [ 76%]

...    __getset(0,__proto,'dataSource',function(){         return this._dataSource;         },function(value){         this._dataSource=value;         for (var prop in this._dataSource){             if (this.hasOwnProperty(prop)&& !((typeof (this[...

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

260. 在微信小游戏中,主域中显示开发域的list为什么显示不全? [ 76%]

...Image;         //private text: Laya.Label; constructor(){ super(); this.size(Item.WID, Item.HEI); this.img = new Laya.Image();             //this.text = new Laya.Label(); this.addChild(this.img);             //this.addChild(this.text); } public setImg(src: string): vo...

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