大约有 1,464 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0079 秒)
Laya_社区(1170) Laya3.0_api(82) Laya2.0_api(76) laya_api(70) Laya2.0_文档(47) Laya3.0_文档(13) Laya2.0_示例(3) Laya_示例(3)
... 看了其他引擎才发现 LAYA 真的太太太太好用了!!!! sprite旋转以后,但是原来碰撞检测rect没有旋转 【屏幕适配】在LayaAir上面是竖屏,为什么到微信开发工具中就是横屏,而且还被拉伸了 laya针对页游耗用内存大的问题是如...
来源: Laya_社区 发布时间: 20200929
...模式设置。 或者用坐标转换,把大矩形的中心点转化为sprite的localposition 这个方法更简单 2018-07-19 0 4 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 W 相关问题 发起问题须知,必看!!!不按提...
来源: Laya_社区 发布时间: 20180719
...回复 cuixueying 赞同来自: lllzzz6311 package { import laya.display.Sprite; import laya.events.Event; import laya.webgl.WebGL; public class PanelElastic { public function PanelElastic() { Laya.init(800,600,WebGL); Laya.stage.bgColor="#EEFFCC"; var sp:Sprite=new Sprite(); sp.graphics.drawRect(0,...
来源: Laya_社区 发布时间: 20170918
添加继承自Laya.Sprite3D脚本的节点移除时调用了两次onDisable 最近在学习做3d的小游戏,预制从unity导入。我自定义了一个继承自Laya.Sprite3D。使用Laya.Sprite3D.instantiate实例化,并addComponent自定义的类;添加到场景中,再移除;移除时...
来源: Laya_社区 发布时间: 20200623
...。 1. 使用getBounds/ getGraphicBounds。 ```javascript var sp=new Laya.Sprite(); sp.graphics.drawRect(0,0,100,100,"#FF0000"); var bounds:Laya.Rectangle=sp.getGraphicBounds(); Laya.stage.addChild(sp); ``` getBounds可以满足多数多数需求,但由于其需要计算边界,不适合频繁调...
来源: Laya2.0_文档 发布时间: 20210715
...: 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
...码如下: for (var i:int = 0; i < 4; i++ ){ sp=new Sprite(); sp.name = i.toString(); console.log(sp.name); sp = project.drawsomething(20, 20+60*i, "#eeb9b3"); sp.on(Event.CLICK,this, onsp); Laya.stage.addChi...
来源: Laya_社区 发布时间: 20170330
...: 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
... = 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
...ants Packagelaya.d3.core.sceneClasspublic class Scene3DInheritanceScene3D Sprite Node EventDispatcher ObjectImplements ISubmit, laya.resource.ICreateResource Scene3D 类用于实现场景。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By act...
来源: Laya2.0_api 发布时间: 20190513