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

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

81. Node.prototype.removeChildren移除计数有问题 [ 74%]

...数经常不正确,导致使用Resource.destroyUnusedResources()出错 texture的引用计数是如何计数的? Texture引用计数不为0的时候执行销毁纹理destroy方法后再加载这个资源会导致重复加载 clearRes则采用引用计数方式销毁 问题状态 最新活动: 2020...

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

82. laya.d3.core.MeshTerrainSprite3D [ 74%]

...图属性。 MeshTerrainSprite3D  createFromMeshAndHeightMap(mesh:Mesh, texture:Texture2D, minHeight:Number, maxHeight:Number, name:String = null):MeshTerrainSprite3D[static] 从网格创建一个TerrainMeshSprite3D实例、图片读取高度图属性。 MeshTerrainSprite3D destroy(destroyChild:B...

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

83. 批量创建图片后,怎样通过索引删除图片 [ 73%]

...圆形的方式显示? ios14系统下 blendMode='lighter' 图片异常 Texture图片能否进行翻转? matter中layasprite怎么改变图片大小? 为什么有的图片打包,有的图片不打包? 如图 laya怎么跨域加载图片 IDE创建的UI 层级问题 如何获取图片每个...

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

84. Laya3d下sprite 显示问题 [ 73%]

...sprite 显示问题 相机中的rendertarget转换到图片中显示不了 texture = camera.renderTarget as Texture; var sp:Sprite = new Sprite(); sp.x = 800; sp.graphics.drawTexture(texture,0,0,100,100); Laya.stage.addChild(sp); 2017-05-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

85. laya.ui.AutoBitmap [ 73%]

...0,1为垂直3宫格,3宫格性能比9宫格高。 AutoBitmap  source : Texture 对象的纹理资源。 AutoBitmap  width : Number 表示显示对象的宽度,以像素为单位。 AutoBitmapPublic Methods Hide Inherited Public Methods Show Inherited Public Methods MethodDefined By alpha(v...

来源: laya_api 发布时间: 20170929

86. 在开启webgl模式下,每次运行texture类的getPixels方法内存都会增加 [ 73%]

在开启webgl模式下,每次运行texture类的getPixels方法内存都会增加 我使用的版本是1.7.12 测试代码如下:module Main { import Sprite = Laya.Sprite import Texture = Laya.Texture import Handler = Laya.Handler export class MaskDemo { private Res: string; private img: Laya....

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

87. 代码里面new renderTexture对象设置给camera的同时设置给sprite的Texture属性之后在sprite上使用遮罩Mask之后,整个Sprite都会不显示 [ 73%]

代码里面new renderTexture对象设置给camera的同时设置给sprite的Texture属性之后在sprite上使用遮罩Mask之后,整个Sprite都会不显示 代码里面new一个 renderTexture对象设置给camera的同时设置给sprite的Texture属性之后,然后给sprite添加一个遮罩...

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

88. drawTexture时,Matrix对象,a=-1,无法实现水平翻转 [ 73%]

drawTexture时,Matrix对象,a=-1,无法实现水平翻转 g.drawTexture(texture,100, 100, texture.width, texture.height, new laya.maths.Matrix(-1)); 为何无法实现水平翻转? 绘制的图片直接看不见了,如果不设置matrix.a = -1就不会出现。 2017-02-21 添加评论 免...

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

89. 3D支持图集吗? [ 73%]

...呢?3D不支持取图片中的一个图片吗?  //2D加载图集 var texture: Laya.Texture = Laya.loader.getRes("magic/sg.png"); var sp = new Laya.Sprite(); sp.graphics.drawTexture(texture, 0, 0); Laya.stage.addChild(sp);   //3D加载图集 var box: Laya.MeshSprite3D = scene.addChild(new Laya....

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

90. 克隆sprite [ 73%]

...什么克隆一个对象啊?  在下面的“   tempSpr2.graphics.drawTexture(tempSpr.texture, 0, 0, tempSpr.width, tempSpr.height);”中 tempSpr.texture 是空的 if (data && data.items != []) {             let tempSpr: Sprite = new Sprite();             let tempImg: Lay...

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