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

大约有 311 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0083 秒)

111. 动态加载代码后,总是出现 ProgressBar is not a constructor [ 77%]

...ete() { pBar = new ProgressBar(AssetsDir+"./assets/progressBar.png"); pBar.width = Laya.stage.width/2;//400; pBar.x = (Laya.stage.width - pBar.width) / 2; pBar.y = Laya.stage.height / 2; 。。。 }这是 progressBar 资源加载完毕之后,构造progressBar的脚本。 总是在这里出现错...

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

112. laya.ui.FontClip_API3.0 [ 77%]

...hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy align alpha anchorX anchorY autoPlay blendMode bottom cacheAs centerX centerY clipHeight clipWidth clipX clipY components customRenderEnable dataSource destroyed direction disabled displayHei...

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

113. 请问更新遮罩的最优方式 [ 77%]

...,需要遮罩宽度随着进度变化而变化   _mask.size(_barImage.width * _percent, _barImage.height); _mask.graphics.clear(); _mask.graphics.drawRect(0, 0, _mask.width, _mask.height, "#FF0000");                      _barImage.mask = null; _barImage.mask = _mask;   试过需...

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

114. 创建动画时画布的width和height与 实例化后的ani.size(width, height) 有什么区别 [ 77%]

创建动画时画布的width和height与 实例化后的ani.size(width, height) 有什么区别 如题 2017-10-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Monica - 知识达人 赞同来自: 你是说在ID...

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

115. laya.ui.Clip_API3.0 [ 77%]

...X 、竖向分割数量 clipY , 或横向分割每个切片的宽度 clipWidth 、竖向分割每个切片的高度 clipHeight , 从左向右,从上到下,分割组合一个切片动画。 Image和Clip组件是唯一支持异步加载的两个组件,比如clip.skin = "abc/xxx.png",其...

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

116. CommandBuffer_Outline 每次 addCommandBuffer都会永久增加10Gpu,removed掉相机事件也不会减少 [ 77%]

...    var renderTexture = Laya.RenderTexture.createFromPool(viewPort.width,viewPort.height,Laya.RenderTextureFormat.R8G8B8A8,Laya.RenderTextureDepthFormat.DEPTHSTENCIL_NONE);         //将RenderTexture设置渲染目标         buf.setRenderTarget(renderTexture);       ...

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

117. laya.d3.terrain.Terrain [ 76%]

...d 定时执行某函数一次。功能同Laya.timer.timerOnce()。 Node  width():Number 获取地形X轴长度。 TerrainProtected Methods Show Inherited Protected Methods Show Inherited Protected Methods MethodDefined By _onAdded():void[override] Sprite3D _onRemoved():void[override] Sprite3DEv...

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

118. laya.resource.Texture2D [ 76%]

...ublic Methods Show Inherited Public Methods MethodDefined By  Texture2D(width:int = 0, height:int = 0, format:int, mipmap:Boolean = true, canRead:Boolean = false) 创建一个 Texture2D 实例。 Texture2D _getSource():*[override] 获取纹理资源。 BaseTexture  _parse(data:*, propertyParam...

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

119. laya.ui.HScrollBar_API3.0 [ 76%]

...gLimit triggerUpDragLimit upButton drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode bottom cacheAs centerX centerY components customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize filters...

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

120. laya.ui.VScrollBar_API3.0 [ 76%]

...gLimit triggerUpDragLimit upButton drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode bottom cacheAs centerX centerY components customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize filters...

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