大约有 582 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0078 秒)
Laya_社区(296) Laya3.0_api(65) Laya2.0_api(58) laya_api(54) Laya2.0_示例(32) Laya_示例(31) Laya2.0_文档(26) Laya3.0_文档(20)
...监听不到事件? var boxstr = "ui/buildsmall.png"; var box = new Laya.Sprite(); var texture = Laya.loader.getRes(boxstr); box.graphics.drawTexture(texture); var arr = {data: StorageRoom.map_storageData[0][0],tag:0}; box.on(Laya.Event.MOUSE_UP,this,this.onclick,[arr]); var _proto = StorageUIL...
来源: Laya_社区 发布时间: 20171113
...lize > createChildren > initialize > 组件构造函数 Hierarchy Sprite UIComponent Box ISelect Button Clip ColorPicker Label Image Slider ScrollBar ComboBox ProgressBar TipManager OpenDataContextView Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url au...
来源: Laya3.0_api 发布时间: 20231115
...: ```javascript //初始化引擎 Laya.init(1136,640); var sp = new Laya.Sprite(); var xhr = new Laya.HttpRequest(); xhr.once(Laya.Event.COMPLETE,this,completeHandler); xhr.once(Laya.Event.ERROR,this,errorHandler); xhr.send("res/monkey2.png","","get","arraybuffer"); function completeHandler(data){...
来源: Laya2.0_文档 发布时间: 20210715
...per(this); this.angle = 0; Laya.timer.loop(200,this,this.loadProgress) var Sprite = Laya.Sprite; this.box = new Sprite(); this.box.cacheAs = "bitmap"; this.box.pos(0,0); this.say.addChild(this.box); this.draw = new Sprite(); this.box.addChild(this.draw); this.draw.graphics.drawPie(this.say.width/2, ...
来源: Laya_社区 发布时间: 20170807
... = false Inherited from AnimationBase._ownGraphics Defined in laya/display/Sprite.ts:245 _scene _scene: Node Inherited from Node._scene Defined in laya/display/Node.ts:631 _skinBaseUrl _skinBaseUrl: string Inherited from AnimationBase._skinBaseUrl Defined in laya/display/Sprite.ts:269 如果节点...
来源: Laya3.0_api 发布时间: 20231102
... null; return this; } _calculateCacheRect(sprite, tCacheType, x, y) { var _cacheStyle = sprite._cacheStyle; if (!_cacheStyle.cacheRect) _cacheStyle.cacheRect = Rectangle.create(); var tRec;...
来源: Laya_社区 发布时间: 20210615
localToGlobal和AS3不一样? 举个例子: var sp:Sprite = new Sprite(); var p:Point = new Point(); sp.pos(500,600); p.setTo(10,10); p = sp.localToGlobal(p); 结果:p坐标还是10,10。AS3上是510,610。 2017-02-27 添加评论 免费帖 --> 分享 微博 QZ...
来源: Laya_社区 发布时间: 20170227
...过unDestroyedScenes属性查看还未被销毁的场景列表 Hierarchy Sprite Scene View Index Constructors constructor Properties _extra _ownGraphics _scene _scene3D _skinBaseUrl _url autoDestroyAtClosed autoSize hitTestPrior mouseThrough name tag drawtocanvCtx unDestroyedScenes Accessors _isHeig...
来源: Laya3.0_api 发布时间: 20231115
咨询在Laya.Sprite3D中,是否含有类似于 Sprite 中的getbounds函数 咨询在Laya.Sprite3D中,是否含有类似于 Sprite 中的getbounds函数,我的应用场景是在2d背景下,显示3D人物。,在做了坐标映射convertScreenCoordToOrthographicCoord 后,发现定位的...
来源: Laya_社区 发布时间: 20171117
... lineColor:*, lineWidth:Number = 1):void 绘制一系列曲线。 new Laya.Sprite();绘制图形以后,怎么删除释放资源? 富文本下划线绘制bug 怎么检测点是否在 graphics所绘制的区域内 小游戏开放数据域下使用Laya.List绘制了排行榜,但是触摸没有滚...
来源: Laya_社区 发布时间: 20170227