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

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

321. DrawPie例子中无法显示遮罩区域 [ 63%]

...ldc.layabox.com ... Image 输入已下代码并执行: (function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Brows...

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

322. laya.spine.SpineSkeleton_API3.0 [ 63%]

...eTemplet,SpineSkeletonRender,SpineSkeleton三部分组成。 Hierarchy Sprite SpineSkeleton Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag PAUSED PLAYING STOPPED drawtocanvCtx Accessors _isHeightSet _isWidthSet a...

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

323. 二进制图片(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 63%]

...{ constructor() { //初始化引擎 Laya.init(1136,640); var sp = new Laya.Sprite(); var xhr = new Laya.HttpRequest(); xhr.once(Laya.Event.COMPLETE,this,this.completeHandler); xhr.once(Laya.Event.ERROR,this,this.errorHandler); xhr.send("res/a.png","","get","arraybuffer"); } private completeHandler(d...

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

324. Sprite-旋转缩放 [ 63%]

...TypeScript三种开发语言、LayaAirIDE让项目开发更高效。class Sprite_RoateAndScale { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.ali...

来源: Laya2.0_示例 发布时间: 20251130

325. 2D光遮挡器与阴影 · LayaAir3.3 · 引擎文档 · LAYABOX [ 63%]

...) export class LightOccluder extends Laya.Script { private spotLight: Laya.Sprite = new Laya.Sprite(); private background: Laya.Sprite = new Laya.Sprite(); private lightOccluder: Laya.Sprite = new Laya.Sprite(); private backgroundTexture: string = "resources/bg2.png"; //组件被启用后执行,...

来源: Laya3.0_文档 发布时间: 20251010

326. laya.display.EffectAnimation_API3.0 [ 63%]

...: 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

327. laya.display.Sprite_API3.0 [ 63%]

...Protected All Inherited Externals Only exported Menu Globals "laya/display/Sprite" Sprite Class Sprite Sprite 是基本的显示图形的显示列表节点。 Sprite 默认没有宽高,默认不接受鼠标事件。通过 graphics 可以绘制图片或者矢量图,支持旋转,缩放,位移...

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

328. 升级2.0.2后,绘制图形会有抖动 [ 63%]

...登录 发起人 cheng 相关问题 富文本下划线绘制bug new Laya.Sprite();绘制图形以后,怎么删除释放资源? 摄像机跟随刚体移动,刚体出现抖动。 想让一个2D的图形被鼠标点击时缩放一下,或左右摇晃一下,最后回到原大小或原位置,...

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

329. 续飞机大战 [ 63%]

...und() { BackGround.__super.call(this); //创建背景1 this.bg1 = new Laya.Sprite(); //加载并显示背景图 this.bg1.loadImage("war/background.png"); //把背景1放到容器内 this.addChild(this.bg1); //创建背景2 this.bg2 = new Laya.Sprite(); //加载并显示背景图 this.bg2.loadImage("...

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

330. LayaAir有action相关的对象或者函数吗? [ 63%]

...看demo中运动都是通过修改坐标实现的,那样如果我想让sprite向一个不固定的坐标移动,只能每帧重新计算下坐标吗?引擎本身有没有moveto之类的对象和函数吗? 2016-06-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...

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