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

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

1. 源代码中Handler中的setTo()方法 [ 100%]

...啊 ,请问一下有别的方法吗 分享:Sprite 转换成3D贴图(Texture2D)的方法,如果有更好的方法,请告诉我。 引擎中有使得Label中文字逐字显示的方法吗? JS如何调用经过转换的FLASH游戏里的方法? Laya.Media方法调用失败 问题状态 ...

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

2. laya.resource.Texture [ 89%]

...I DocumentationAll Packages | All Classes | Index | Frames No Frames TextureProperties | Methods | Events Packagelaya.resourceClasspublic class TextureInheritanceTexture EventDispatcher ObjectSubclasses RenderTarget2D Texture 是一个纹理处理类。 Public Properties PropertyDefined By...

来源: laya_api 发布时间: 20170929

3. laya.resource.Texture [ 89%]

...I DocumentationAll Packages | All Classes | Index | Frames No Frames TextureProperties | Methods | Events Packagelaya.resourceClasspublic class TextureInheritanceTexture EventDispatcher Object Texture 是一个纹理处理类。 Public Properties PropertyDefined By  bitmap : Texture2D ...

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

4. laya.resource.Texture_API3.0 [ 84%]

...rotected All Inherited Externals Only exported Menu Globals "laya/resource/Texture" Texture Class Texture Texture 是一个纹理处理类。 Hierarchy Resource Texture Index Constructors constructor Properties _id _sizeGrid _stateNum destroyedImmediately lock name offsetX offsetY sourceHeight sourc...

来源: Laya3.0_api 发布时间: 20231115

5. Texture.destroy()方法设计有问题 [ 81%]

Texture.destroy()方法设计有问题 在不通过使用强制销毁的情况下 引用系数会多减去一次。Resource.removeReference()多调用一次 2018-05-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回...

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

6. 2.0 怎么样才能将htmlcanvas 的东西 显示在texture上? [ 78%]

2.0 怎么样才能将htmlcanvas 的东西 显示在texture上? 原本像实现将场景的东西绘制到一个sprite上,参考以前的截屏代码是可以的。 然后1.x 上我实现了,但是2.0 最新版 接口变了, Texture 的drawto public function setTo(bitmap:Texture2D = null, u...

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

7. image.drawToCanvas方法获取的一直是空的png [ 74%]

... laya.display.Stage; import laya.resource.HTMLCanvas; import laya.resource.Texture; import laya.ui.Image; import laya.utils.Handler; import laya.webgl.WebGL; public class LayaAirDemo { private var img:Image; public function LayaAirDemo() { Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_...

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

8. 在开启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

9. 关于微信小游戏渲染子域图的问题 [ 71%]

关于微信小游戏渲染子域图的问题 new Texture(Browser.window.sharedCanvas); 上面这句报错: gameThirdScriptError value._addReference is not a function TypeError: value._addReference is not a function     at Texture.<anonymous> (http://127.0.0.1:10656/game/js/bundle.js:1518...

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

10. Uint8Array的像素数据在ios中无法改变图片纹理,安卓正常 [ 70%]

...另一张 代码如下: private _testSetPixels() { let data = this.test1.texture.getPixels(0, 0, this.test1.width, this.test1.height); let width = this.test1.width; let height = data.length / 4 / width; let tex2d = new Laya.Texture2D(width, height, 1); tex2d.setPixels(data); this.imgAr.texture.set...

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