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

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

401. 为什么会出现报错 ani not found:ufo1_down [ 77%]

...移除 role.removeSelf(); // 回收前重置属性信息 role.isBullet = false; role.visible = true; // 回收到对象池 Laya.Pool.recover("role",role); } } // 处理发射子弹逻辑 if(role.shootType > 0) { // 获取当前浏览器时间 var time = Laya.Browser.now(); // 如果当前时间...

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

402. 文本-禁止编辑 [ 77%]

...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

403. list 没办法滚动,下面有demo [ 77%]

...st同时滚动一模一样。 将list里的scrollBar设置mouseWheelEnable=false后过一段时间设置mouseWheelEnable=true;无法滚动 [分享]Dialog 点击边缘不关闭的 Demo示例 鼠标滚轮滚动事件 Panel加了vScrollBarSkin还是不能滚动 问题状态 最新活动: 2021-10-18 17:...

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

404. Animation创建和销毁的问题 [ 77%]

...ose=true,则忽略引用计数,直接销毁,比如Texture,默认为false          */         public static function clearRes(url:String, forceDispose:Boolean = false):void { Loader.clearRes清理你把里面的第二个参数设置成false试试 如果还是不行的话你就把...

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

405. Laya2.0 的3d截图 [ 77%]

...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

406. laya.utils.ClassUtils [ 77%]

...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

407. laya.device.motion.Accelerator [ 77%]

...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

408. Sprite optimizeScrollRect = true 似乎有问题 [ 77%]

...内容 this.content.y = 1就显示正常了 this.mask.optimizeScrollRect = false; this.content.y = 0 也会正常显示 开发的时候不知道是哪个版本 是正常的 现在1.5.3版本出问题了 不知道是哪个版本改动出了问题 2016-11-18 添加评论 免费帖 --> 分享 微博 QZ...

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

409. 文本-禁止编辑 [ 76%]

...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

410. [LayaAir3]关于drawToRenderTexture2D绘制后图像模糊问题补充 [ 76%]

...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