大约有 7,353 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0120 秒)
Laya_社区(6642) Laya2.0_文档(183) Laya3.0_api(118) laya_api(102) Laya2.0_api(90) Laya_示例(86) Laya3.0_文档(75) Laya2.0_示例(57)
... Laya.stage.screenMode = "vertical"; Laya.Stat.show(); var icon = new Laya.Sprite(); icon.loadImage('img/test.png'); Laya.stage.addChild(icon); document.body.addEventListener("click",function(){ var kk = icon.drawToCanvas(431, 428).getContext('2d').canvas; var img = new Image(); img.src = kk.toDataU...
来源: Laya_社区 发布时间: 20161107
...t = scene.addChild(new DirectionLight()) as DirectionLight; //加载模型 Sprite3D.load("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Handler.create(null, function(sp:Sprite3D):void { //将模型加到场景上 var layaMonkey:Sprite3D = scene.addChild(sp) as Sprite3D; })) ``` 编译运行上...
来源: Laya2.0_文档 发布时间: 20210715
...Class BaseCamera BaseCamera 类用于创建摄像机的父类。 Hierarchy Sprite3D BaseCamera Camera Index Constructors constructor Properties _extra _forward _scene _up _url name tag useOcclusionCulling RENDERINGTYPE_DEFERREDLIGHTING RENDERINGTYPE_FORWARDRENDERING WORLDINVERTFRONT Accessors active...
来源: Laya3.0_api 发布时间: 20231115
...graphics.clear()方法 这是我重绘部分的代码,我是应该用sprite.graphics去重绘,还是该调用Laya.Render.context中的方法去重绘,绘制部分代码如下(points,是我裁切后的多边形位置点数据): draw() { const pp = this.owner.getComp...
来源: Laya_社区 发布时间: 20200428
...: 132*****401 设计的时候保持都在左上角, 缩放同时移动 sprite 让他显示上看着在围绕中心缩放 2019-04-22 1 4 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 132*****401 相关问题 sprite旋转以后,但是原...
来源: Laya_社区 发布时间: 20190422
半透明的矩形鼠标穿透问题 //画矩形 this.addLabel = new Sprite(); this.addLabel.graphics.drawRect(0, 730, 1440, 170, "#000000"); this.addLabel.alpha = 0.6; this.addLabel.mousethrough = false; this.addLabel.mouseEnabled = true; sp.addChild(this.addLabel); 仍然能够点击下面的按...
来源: Laya_社区 发布时间: 20170726
...orm3D localScale : Vector3 获取局部缩放。 Transform3D owner : Sprite3D[read-only] 获取所属精灵。 Transform3D parent : Transform3D 获取父3D变换。 Transform3D pivot : Vector3 变换中心点,注意:该中心点不受变换的影响。Transform3D position : Vector3 ...
来源: laya_api 发布时间: 20170929
鼠标监听问题 在拖动一个sprite移动的时候,快速移动鼠标,由于精灵跟随移动是需要时间的,导致再松开鼠标的时候时候鼠标就不在精灵上了,所以触发不到精灵的mouse_up事件,改怎么处理呢 2018-07-31 添加评论 免费帖 --> 分享 ...
来源: Laya_社区 发布时间: 20180731
...法获取物体 添加物体: var qb_pet = scene.addChild(Laya.Sprite3D.load("./test.lh")); qb_pet.once(Laya.Event.HIERARCHY_LOADED, this, function(){ qb_pet.addComponent(Laya.SphereCollider); }); 设置射线: Laya.timer.frameLoop(1, null, checkHit); ...
来源: Laya_社区 发布时间: 20170915
...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