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

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

141. 当屏幕尺寸,缩放模式,横竖屏 发生改变时会报错Uncaught TypeError: Cannot read property 'length' of null [ 73%]

... cuixueying 已解决,当destroy函数调用时会把子节点销毁,所以public function get numChildren(){} 被调用时child为空 所以报错,算是引擎的bug吧,将原函数改为public function get numChildren():int {             trace(this);             if (!this._childs...

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

142. 求助关于TiledMap的版本问题 [ 73%]

...rt laya.utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class LayaSample { private var tMap:TiledMap; public function LayaSample() { //初始化引擎 Laya.init(1136, 640,WebGL); //创建TiledMap实例 tMap = new TiledMap(); //创建Rectangle实例,视口区域 var viewRe...

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

143. laya.ui.Image [ 73%]

...Frames No Frames ImageProperties | Methods | Events Packagelaya.uiClasspublic class ImageInheritanceImage Component Sprite Node EventDispatcher Object Image 类是用于表示位图图像或绘制图形的显示对象。 Image和Clip组件是唯一支持异步加载的两个组件,比如img.ski...

来源: laya_api 发布时间: 20170929

144. laya.display.AnimationBase [ 73%]

...nBaseProperties | Methods | Events | Constants Packagelaya.displayClasspublic class AnimationBaseInheritanceAnimationBase Sprite Node EventDispatcher ObjectSubclasses Animation, FrameAnimation 动画基类,提供了基础的动画播放控制方法和帧标签事件相关功能。 可以继承...

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

145. 关于新手引导 [ 72%]

...ya.resource.Context; import laya.utils.Browser; import laya.utils.HitArea; public class KouTu extends Sprite { private var box:Sprite; private var interactionArea:Sprite; private var maskArea:Sprite; private var guideContainer:Sprite; private var gameContainer:Sprite; public function KouTu() { super...

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

146. laya.ui.ViewStack [ 72%]

...mes No Frames ViewStackProperties | Methods | Events Packagelaya.uiClasspublic class ViewStackInheritanceViewStack Box UIComponent Sprite Node EventDispatcher ObjectImplements IItem ViewStack 类用于视图堆栈类,用于视图的显示等设置处理。 Public Properties Hide Inherited Publi...

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

147. laya.ui.ProgressBar [ 72%]

...s No Frames ProgressBarProperties | Methods | Events Packagelaya.uiClasspublic class ProgressBarInheritanceProgressBar UIComponent Sprite Node EventDispatcher Object ProgressBar 组件显示内容的加载进度。 Public Properties Hide Inherited Public Properties Show Inherited Public Propertie...

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

148. 我看到这段话后,我 [ 72%]

...: 2123 关注: 3 人 ageazrael • 2020-04-20 15:06 export class XClass { public get XValue(): number { return 100; } public set XValue(v: number) { console.log(v); } } var x = new XClass(); x["XValue"] = 100; 你运行一下看看呢、这能覆盖函数吗? ageazrael • 2019-08-05 15:...

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

149. laya.ui.DialogManager [ 72%]

...No Frames DialogManagerProperties | Methods | Events Packagelaya.uiClasspublic class DialogManagerInheritanceDialogManager Sprite Node EventDispatcher Object DialogManager 对话框管理容器,所有的对话框都在该容器内,并且受管理器管理。 任意对话框打开和关闭,...

来源: laya_api 发布时间: 20170929

150. 请问粒子,shader,动画缓存的优化应该如何选择 [ 72%]

...。 ShaderCompile3D   /**是否开启调试模式。 */         public static var debugMode:Boolean = false; 设置为true,           /**          * 通过宏定义预编译shader。          * @param   spriteIntToNameDic 精灵宏定义数组。        ...

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