大约有 7,515 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0129 秒)
Laya_社区(6799) Laya2.0_文档(183) Laya3.0_api(118) laya_api(102) Laya2.0_api(90) Laya_示例(86) Laya3.0_文档(80) Laya2.0_示例(57)
可以为线条设置hit(碰撞)区域吗? var sp:Sprite = new Sprite();sp.graphics.clear(); sp.graphics.drawRect(0, 0, 100,100,"#ff0000" ); var hit:HitArea = new HitArea(); hit.hit = sp.graphics; sp.hitArea = hit; 使用上面的方法可以给有填充 sp 添加触发区域! 但是如...
来源: Laya_社区 发布时间: 20161216
打包成APP后轴心点未设置成功 我给一个sprite设置了轴心点,在网页上看sprite的显示位置是正确的,但是打包成APP之后,sprite的显示位置就跟没有设置轴心点一样 2017-06-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...
来源: Laya_社区 发布时间: 20170616
...9-07-02 0 0 分享 微博 QZONE 微信 星星 赞同来自: 同:在一个Sprite里面添加了刚体跟碰撞体,我调用的Sprite的destory方法摧毁,然后就报这个错 2019-11-06 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起...
来源: Laya_社区 发布时间: 20181210
...tionAll Packages | All Classes | Index | Frames No Frames MeshTerrainSprite3DProperties | Methods | Events Packagelaya.d3.coreClasspublic class MeshTerrainSprite3DInheritanceMeshTerrainSprite3D MeshSprite3D RenderableSprite3D Sprite3D Node EventDispatcher Object TerrainMeshSprite3D 类用...
来源: Laya2.0_api 发布时间: 20190513
...:Texture = Laya.loader.getRes("../../../../res/apes/monkey2.png"); var ape:Sprite = new Sprite(); ape.graphics.drawTexture(t,0,0); Laya.stage.addChild(ape); ape.pos(200, 0); })); 这可以正常运行,但是我把外面的 load 函数去掉,将第二个参数中的函数内容独立后却不能...
来源: Laya_社区 发布时间: 20170804
...ants Packagelaya.d3.coreClasspublic class BaseCameraInheritanceBaseCamera Sprite3D Node EventDispatcher ObjectSubclasses Camera BaseCamera 类用于创建摄像机的父类。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By active : Boolean ...
来源: Laya2.0_api 发布时间: 20190513
...Accessors inst touchCount touchTarget touches Methods getNodeUnderPoint getSprite3DUnderPoint getSpriteUnderPoint handleKeys handleMouse handleTouch hitTest cancelClick getTouchPos hasKeyDown Constructors constructor new InputManager(): InputManager Defined in laya/events/InputManager.ts:48 Returns ...
来源: Laya3.0_api 发布时间: 20231115
...e = Laya.TextureCube.load("res/sky/skyCube.ltc"); camera.sky = skyBox; var sprite3D = scene.addChild(Laya.Sprite3D.load("cj03/LastHopeScene.lh")); //sprite3D.transform.localScale = new Laya.Vector3(0.2, 0.2, 0.2); sprite3D.once(Laya.Event.HIERARCHY_LOADED, null, function(sprite) { //console.log(scen...
来源: Laya_社区 发布时间: 20170707
... @regClass() export class Script extends Laya.Script { declare owner: Laya.Sprite3D; @property(Laya.Scene3D) private scene: Laya.Scene3D; private videoPlane: Laya.Sprite3D; private videoTexture = new Laya.VideoTexture(); onAwake(): void { //获取场景中要添加视频纹理的3D节点 this.videoP...
来源: Laya3.0_文档 发布时间: 20251010
...//等待可调试 Laya.timer.once(1000, null, ()=>{ let mask = new Laya.Sprite() let sprite = new Laya.Sprite() sprite.mask = mask Laya.stage.addChild(sprite) //正方形 sprite.graphics.drawPoly(0, 0, [100, 100, 100, 200, 200, 200, 200, 100], "#ffffff") //一挑粗直线 遮挡正方形的左半...
来源: Laya_社区 发布时间: 20180224