大约有 3,244 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0073 秒)
Laya_社区(2446) Laya3.0_api(242) Laya2.0_文档(138) Laya2.0_api(136) laya_api(135) Laya3.0_文档(77) Laya_示例(52) Laya2.0_示例(18)
...移除 role.removeSelf(); // 回收前重置属性信息 role.isBullet = false; role.visible = true; // 回收到对象池 Laya.Pool.recover("role",role); } } // 处理发射子弹逻辑 if(role.shootType > 0) { // 获取当前浏览器时间 var time = Laya.Browser.now(); // 如果当前时间...
来源: Laya_社区 发布时间: 20170525
...ext.text = "这段文本不可编辑,但可复制"; inputText.editable = false; // 设置字体样式 inputText.bold = true; inputText.bgColor = "#666666"; inputText.color = "#ffffff"; inputText.fontSize = 20; Laya.stage.addChild(inputText); } })();module laya { import Input = Laya.Input; import S...
来源: Laya_示例 发布时间: 20251209
...st同时滚动一模一样。 将list里的scrollBar设置mouseWheelEnable=false后过一段时间设置mouseWheelEnable=true;无法滚动 [分享]Dialog 点击边缘不关闭的 Demo示例 鼠标滚轮滚动事件 Panel加了vScrollBarSkin还是不能滚动 问题状态 最新活动: 2021-10-18 17:...
来源: Laya_社区 发布时间: 20211018
...ose=true,则忽略引用计数,直接销毁,比如Texture,默认为false */ public static function clearRes(url:String, forceDispose:Boolean = false):void { Loader.clearRes清理你把里面的第二个参数设置成false试试 如果还是不行的话你就把...
来源: Laya_社区 发布时间: 20180424
...d: Laya.Texture2D = new Laya.Texture2D(w,h,Laya.TextureFormat.R8G8B8A8,false,false); texture2d.setPixels(pixels); let tex: Laya.Texture = new Laya.Texture(texture2d); let sp:Laya.Sprite = new Laya.Sprite(tex); }大致思路应该按照代码...
来源: Laya_社区 发布时间: 20200815
...ls addGraphicToSprite(graphicO:Object, sprite:Sprite, isChild:Boolean = false):void[static] 将graphic绘图指令添加到sprite上 ClassUtils createByJson(json:*, node:* = null, root:Node = null, customHandler:Handler = null, instanceHandler:Handler = null):*[static] 根据指定的 json 数...
来源: laya_api 发布时间: 20170929
...atcher off(type:String, caller:*, listener:Function, onceOnly:Boolean = false):EventDispatcher[override] 取消侦听加速器。 Accelerator offAll(type:String = null):EventDispatcher 从 EventDispatcher 对象中删除指定事件类型的所有侦听器。 EventDispatcher on(type:String, c...
来源: laya_api 发布时间: 20170929
...内容 this.content.y = 1就显示正常了 this.mask.optimizeScrollRect = false; this.content.y = 0 也会正常显示 开发的时候不知道是哪个版本 是正常的 现在1.5.3版本出问题了 不知道是哪个版本改动出了问题 2016-11-18 添加评论 免费帖 --> 分享 微博 QZ...
来源: Laya_社区 发布时间: 20161118
...ext.text = "这段文本不可编辑,但可复制"; inputText.editable = false; // 设置字体样式 inputText.bold = true; inputText.bgColor = "#666666"; inputText.color = "#ffffff"; inputText.fontSize = 20; } } new Text_Editable();module laya { import Input = Laya.Input; import Stage = Laya.Sta...
来源: Laya2.0_示例 发布时间: 20251209
...f the render texture and subtracts the offset of the cache rectangle. When false, it keeps the sprite's original relative position for drawing. * @param flipY Optional. If true, the texture will be flipped vertical. Default is false. * @param clearColor Optional. If provided, the texture will be cle...
来源: Laya_社区 发布时间: 20250827