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

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

571. [LayaAir3]3.3.0.beta.3 2d物理RigidBody代码生成问题 [ 64%]

...,通过ide创建的是有的       private addRigidBody(object: Laya.Sprite): Laya.RigidBody {         const rigidBody = object.addComponent(Laya.RigidBody);         rigidBody.type = "kinematic";         rigidBody.label = object.name; // 添加标签         const shape = new La...

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

572. drawTexture 画出来的数据会有以前的数据 [ 64%]

drawTexture 画出来的数据会有以前的数据 private var iconSpr:Sprite; private var htmlCanvas:HTMLCanvas; private var texture:Texture; private var xNum:int = 0; private var yNum:int = 0; private var img:Image; public function TestView() { img = new Image("comp/lhjicon_5.png"); img.x = 640;...

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

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

... 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 cleared to this color b...

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

574. this.bitmap.activeResource is not a function. [ 64%]

...; rankTexture.bitmap.alwaysChange = true;//小程序使用,非常费 let sprite = new Laya.Sprite(); sprite.graphics.drawTexture(rankTexture, 0, 0, rankTexture.width, rankTexture.height); this._content.addChild(sprite); sprite.pos(40, 190);报:this.bitmap activeResource is not a function 2019-09...

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

575. [BUG]大量调用 graphics.drawCircle 导致错误 [ 64%]

...ics.drawCircle 导致错误 代码: for (var i = 0; i < 500; i++) { var Sprite = new Laya.Sprite(); Sprite.graphics.drawCircle(Math.random() * 500, Math.random() * 800, 50, "#666666", "#555555", 5); Laya.stage.addChild(Sprite) } 其他: Laya.init(Laya.Browser.width, Laya.Browser.height, Laya.WebG...

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

576. drawToCanvas真机资源无法释放 [ 64%]

...alog 自定义关闭效果,效果执行完,弹窗无法关闭 new Laya.Sprite();绘制图形以后,怎么删除释放资源? [Laya2.0 3D] 2.0正式版上存在某些骨骼动画无法播放,U3D和1.7.*都没问题 分享:LayaAir下如何获取图集下的小图资源? 3D模型无法修...

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

577. [LayaAirIDE 2.0]TextInput真机输入时显示蓝色字,求解 [ 64%]

... break; } } private _checkInput(input: Laya.TextInput) { let sp_icon: Laya.Sprite = new Laya.Sprite(); // 判定是否有两个子对象 if (input.numChildren == 2) { input.removeChildAt(1); } // 输入框为空则插入错误图标 if (input.text.trim().length == 0) { input.changeText(""); sp_icon....

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

578. 使用graphsics.drawTexture画出来的图片与使用button创建同样宽高图形竟然不重合?? [ 64%]

...然不重合?? 我使用一个Button创建的按钮,和使用 this.sprite_show = new Laya.Sprite(); this.sprite_show.graphics.drawTexture(Laya.loader.getRes(this.resStr), 0, 0, this.width, this.height); 画出来的两个对象,sprite_show的图形竟然被缩小了一点点。。。都是...

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

579. 点击事件面积太大 [ 64%]

...何加点击事件 ui list 里面的元素不能点击两次 如何设置Sprite的宽高和点击区域? 求指点3d射线碰撞和UI点击穿透的问题 关于遍历产生的sprite的点击事件,急,大神帮看哈 救命!canvas定位后 点击区域偏移,求大大们解答 [分享]Dia...

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

580. 3d场景下面有张2d的图片,当鼠标焦点不在该网页时,2d图片为啥会闪动 [ 64%]

...如下     /////////////左右两张背景图             var sprite0:Sprite = new Sprite();             sprite0.loadImage("creatRoom/background_bk.png");             sprite0.pos(0,0 );             sprite0.cacheAsBitmap = true;             Laya.stage.ad...

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