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

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

311. 这方法加载不出来图片 Mac电脑 [ 73%]

这方法加载不出来图片 Mac电脑 var t:Laya.Texture = Laya.loader.getRes("res/RunGameImg/floor.png"); var ape: Sprite = new Sprite(); ape.graphics.drawTexture(t, 0, 0); this.addChild(ape); ape.pos(20, 220); 2017-05-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

312. laya.ui.Button [ 73%]

...ponent  text : Text[read-only] 按钮文本标签 Text 控件。 Button texture : Texture设置一个Texture实例,并显示此图片(如果之前有其他绘制,则会被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.time...

来源: laya_api 发布时间: 20170929

313. laya.display.Graphics_API3.0 [ 73%]

...llipse drawImage drawLine drawLines drawPath drawPie drawPoly drawRect drawTexture drawTextures drawTriangles fillBorderText fillText fillTexture getBounds loadImage removeCmd restore rotate save scale strokeText transform translate Constructors constructor new Graphics(): Graphics Defined in laya/d...

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

314. laya.display.Animation_API3.0 [ 73%]

...tation scaleX scaleY scene scrollRect skewX skewY source stage staticCache texture timer transform url viewport visible width x y zOrder Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance addLabel bubbleEvent callLater clear clearTimer contains custo...

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

315. 设置滤镜(TypeScript-LayaAir基础篇(TS)-位图) [ 73%]

...; import Stage = Laya.Stage; import ColorFilter = Laya.ColorFilter; import Texture = Laya.Texture; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Main { private ApePath: string = "../../res/apes/monkey2.png"; private apeTexture: Texture; constru...

来源: Laya2.0_文档 发布时间: 20210715

316. laya.ani.swf.MovieClip [ 73%]

...自动更新缓存,只能通过调用reCache方法手动刷新。Sprite texture : Texture 设置一个Texture实例,并显示此图片(如果之前有其他绘制,则会被清除掉)。 等同于graphics.clear();graphics.drawImage(),但性能更高 还可以赋值一个图片地址,...

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

317. 如何使用rendertexture获取相机渲染的动态图片? [ 73%]

如何使用rendertexture获取相机渲染的动态图片? 具体的需求是camera获取到的rendertexture属性,然后想赋值给一个图片,可以动态的反应相机渲染到的图片的动态改变。最好能给出教程或者代码实现,因为Laya的资料实在是太少了... 20...

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

318. laya.ui.ColorPicker_API3.0 [ 73%]

...X scaleY scene scrollRect selectedColor skewX skewY skin stage staticCache texture timer toolTip top transform url viewport visible width x y zOrder Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer close contains cu...

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

319. 限制区域拖动效果,为什么会无法限制呢? [ 73%]

... = Laya.Stage; var Event = Laya.Event; var Rectangle = Laya.Rectangle; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var Handler = Laya.Handler  function GolfMainUI() { GolfMainUI.super(this)  var dragRegion; showDragRegion(); this.golf...

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

320. [LayaAirIDE3]drawToRenderTexture2D返回纹理对象被垂直翻转了 [ 73%]

[LayaAirIDE3]drawToRenderTexture2D返回纹理对象被垂直翻转了 drawToRenderTexture2D的flipY参数注释描述可选。如果为 true,则垂直翻转纹理。默认为 false。 但实际需要参数传true被绘制的对象才不会翻转 另外绘制以后得纹理有像素丢失很模...

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