大约有 1,004 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0069 秒)
Laya_社区(712) Laya3.0_api(68) Laya2.0_api(59) laya_api(56) Laya2.0_文档(47) Laya_示例(27) Laya3.0_文档(25) Laya2.0_示例(10)
... 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
... Events Packagelaya.uiClasspublic class ButtonInheritanceButton Component Sprite Node EventDispatcher ObjectImplements ISelectSubclasses CheckBox, Radio Button 组件用来表示常用的多态按钮。 Button 组件可显示文本标签、图标或同时显示两者。 可以是单态,两态和...
来源: laya_api 发布时间: 20170929
...方式存储,可以通过cmds属性访问所有命令流。Graphics是比Sprite更轻量级的对象,合理使用能提高应用性能(比如把大量的节点绘图改为一个节点的Graphics命令集合,能减少大量节点创建消耗)。 see laya.display.Sprite#graphics Hierarchy Graphi...
来源: Laya3.0_api 发布时间: 20231115
...: boolean = false Inherited from Text._ownGraphics Defined in laya/display/Sprite.ts:252 _scene _scene: Node Inherited from Node._scene Defined in laya/display/Node.ts:641 _skinBaseUrl _skinBaseUrl: string Inherited from Text._skinBaseUrl Defined in laya/display/Sprite.ts:276 如果节点需要加...
来源: Laya3.0_api 发布时间: 20231115
...lter:Laya.ColorFilter = new Laya.ColorFilter(colorMatrix); ``` 最后通过Spriter的filters属性将颜色滤镜效果叠加到位图中。下面我们创建一个Main.ts类,编写代码如下: ```typescript module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import ColorFilte...
来源: Laya2.0_文档 发布时间: 20210715
...Events Packagelaya.ani.swfClasspublic class MovieClipInheritanceMovieClip Sprite Node EventDispatcher Object MovieClip 用于播放经过工具处理后的 swf 动画。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By active : Boolean 获取...
来源: Laya2.0_api 发布时间: 20190513
...TargetCamera.renderTarget这个获取到了渲染目标能给到一个2d的sprite对象吗。我这样写他说 ape.texture = renderTargetCamera.renderTarget; renderture不能赋给texture 2018-01-15 0 1 分享 微博 QZONE 微信 crocs 赞同来自: 拿到renderTarget的纹理,用graphics绘...
来源: Laya_社区 发布时间: 20180113
...: boolean = false Inherited from Text._ownGraphics Defined in laya/display/Sprite.ts:252 _scene _scene: Node Inherited from Node._scene Defined in laya/display/Node.ts:641 _skinBaseUrl _skinBaseUrl: string Inherited from Text._skinBaseUrl Defined in laya/display/Sprite.ts:276 如果节点需要加...
来源: Laya3.0_api 发布时间: 20231115
...会无法限制呢? 代码如下。 UI是我从编辑器创建了一个sprite 里面套了一个图片!拖动一次后,直接跳出区域了。 /* * name; */ var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Event = Laya.Event; var Rectangle = Laya.Rectangle; var Texture = Laya.Texture; ...
来源: Laya_社区 发布时间: 20180627
... 赞同来自: 无法重现你的问题,drawToRenderTexture2D在API示例Sprite_ScreenShot中有正确的用法,请查看一下正确的用法,目前的判断是你的使用错误导致。 需要提醒的是, 在 LayaAir 中,WebGL纹理使用左下角为原点的坐标系,而 2D Canvas ...
来源: Laya_社区 发布时间: 20250808