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

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

131. 垂直滚动条组件 · LayaAir3.0文档 · LAYABOX [ 87%]

...位置)。 mouseWheelEnable 是否开启鼠标滚轮滚动,默认值为true。该属性设置滚动对象target以后有效。 touchScrollEnable 是否开启触摸滚动,默认值为true。该属性设置滚动对象target以后有效。 hide 是否隐藏滚动条,默认为false。设为true...

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

132. 分包后, 资源加载问题 [ 87%]

...rototype; console.log("kk7") __proto.cleanMe=function(){ this.load.destroy(true); } console.log("kk8") loading100.FINISH="FN"; console.log("kk9") return loading100; })(Sprite) //class ui.loadingjzaUI extends laya.ui.View var loadingjzaUI=(function(_super){ function loadingjzaUI(){ this.loading1=null...

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

133. clearRes好像没作用,或许我的用法不对 [ 87%]

... if (e.keyCode == 66) {//B             console.log("释放资源 true")             Laya.loader.clearRes("res/atlas/comp.json", true);             Laya.loader.clearRes("res/atlas/comp.png", true);         }         if (e.keyCode == 67) {//C            ...

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

134. 输入文本组件 · LayaAir3.0文档 · LAYABOX [ 87%]

...号 wordWrap 是否自动换行,布尔值选项,默认为false,选择true可以开启自动换行 leading 垂直行间距,当开启自动换行时,文本内容多行时有效。间距以像素为单位,输入正整数即可 padding 文本边距,以像素为单位,由4个整数值组...

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

135. [LayaAir3]开关Instancing效果有区别 [ 87%]

...不写入深度的情况下,将显示靠后的节点active置false再置true,该节点便显示得更靠前了,如下面3张图;而没开启enableInstancing并且不写入深度情况下则不会;不清楚这是不是bug 附件 : --> TestInstancing.zip 2024-08-12 添加评论 免费帖 -->...

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

136. 文本-多行输入 [ 87%]

...putText.prompt = "Type some word..."; //多行输入 inputText.multiline = true; inputText.wordWrap = true; inputText.size(350, 100); inputText.x = Laya.stage.width - inputText.width >> 1; inputText.y = Laya.stage.height - inputText.height >> 1; inputText.padding = [2, 2, 2, 2]; inputText.bgColor = ...

来源: Laya_示例 发布时间: 20240930

137. 龙骨动画的监听回调,有时能回调,有时不能回调 [ 87%]

...rseComplete(): void { console.error("地主加载完成"); this.isFinish = true; }  public getArmature():Laya.Skeleton{ if(!this.isFinish){ return null; } let armature = null; if(this.mArmatureUnUsed.length > 0){ armature = this.mArmatureUnUsed.pop(); } if(this.mFactory){ armature = this.mFactor...

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

138. laya.d3.resource.Texture2D [ 87%]

... MethodDefined By  Texture2D(canRead:Boolean = false, reapeat:Boolean = true, format:int, mipmap:Boolean = true) 创建一个 Texture2D 实例。 Texture2D  getPixels():Uint8Array 返回图片像素。 Texture2D  load(url:String):Texture2D[static] 加载Texture2D。 Texture2D  onAsynLoaded(...

来源: laya_api 发布时间: 20170929

139. laya.ui.FrameClip [ 87%]

...变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite cacheAs : String 指定显示对象是否缓...

来源: laya_api 发布时间: 20170422

140. laya.ui.VSlider [ 87%]

...变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite bar : Button[read-only] 表示滑块按钮的引用。 Slider blendMode : String指定要使用的混合模式。目前只支持"...

来源: laya_api 发布时间: 20170929