大约有 2,743 项符合查询结果, 库内数据总量为 30,897 项。 (搜索耗时: 0.0108 秒)
Laya_社区(2217) Laya2.0_文档(123) Laya3.0_api(106) Laya_示例(84) Laya2.0_api(57) Laya2.0_示例(55) laya_api(53) Laya3.0_文档(48)
...layaContainer div想用appendChild方法添加到某div下,但是针对sprite距离位置并没有变化 showModal() { Laya.init(800, 500, WebGL); Laya.stage.bgColor = "#ffffff"; console.log(Laya.Render._mainCanvas); Laya.Render._mainCanvas....
来源: Laya_社区 发布时间: 20201130
....addChild(new Laya.DirectionLight()); var layaMonkey = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); var translate = new Laya.Vector3(0, 0, 0); //(500, 500, 0)改为(0,0,0) var rotation = new Laya.Vector3(0, 0.01, 0); layaMonkey.once(Laya.Event.HI...
来源: Laya_社区 发布时间: 20170807
...196 相关问题 招聘:H5游戏开发 坐标:深圳南山 如何设置Sprite的宽高和点击区域? 使用钢体设置防穿后仍有几率会穿透 龙骨skeleton鼠标点击区域的设置 摄像机跟随刚体移动,刚体出现抖动。 localToGlobal坐标转换 将list里的scrollBar...
来源: Laya_社区 发布时间: 20170707
...tentHitArea = function () { var content=this._content; var rect = new Laya.Sprite(); rect.graphics.drawRect(0, 0, this.contentWidth, this.contentHeight, "#000000"); content.hitArea = new Laya.HitArea(); content.hitArea.hit = rect.graphics; } 然后分别在panel的“setContentSize”和“changeScr...
来源: Laya_社区 发布时间: 20170610
...过,用来把鼠标位置,全局转局部的方法。我想用来获得sprite中鼠标的位置 2017-10-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识达人 赞同来自: 是Sprite类中的...
来源: Laya_社区 发布时间: 20171016
...方法即可 /** * - 骨骼挂点 * @param nodeName * @param root * @param Sprite3D */ public static link2Node(nodeName: string, root: Laya.Sprite3D, Sprite3D: Laya.Sprite3D) { //递归调用 let index = 0; let child: Laya.Sprite3D = null; while (true) { child = root.getChildAt(index) as Laya.Sprite...
来源: Laya_社区 发布时间: 20190918
...什么? 已上传 Demo 附件 TS项目使用matter.js库无智能提示 sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale 微信小游戏如何使用ttf字体? LayaAirIDE下如何使用mask? 使用3D时候,Property 'getComponentByType' does not exist on type 'Node'...
来源: Laya_社区 发布时间: 20190906
...r.ldc.layabox.com/demo2/h5/demo.html?language=ch&category=2d&group=Sprite&name=DisplayImage&lib=core 控制器运行 var canvas = document.getElementById('layaCanvas'); canvas.toDataURL("image/jpg"); 打开图片是黑色的 附件 : --> 2019-06-21 添加评论 免费帖 ...
来源: Laya_社区 发布时间: 20190621
...转 ###### **version :2.7.0beta Update:2020-6-11** 摄像机继承于Sprite3D,一样可以对它进行3D变换的操作,通过它transform属性在3D场景中移动旋转变化,多角度取景,使观众或游戏者获得更真实的空间体验。 移动摄像机: ```typescript //...
来源: Laya2.0_文档 发布时间: 20210715
...Protected All Inherited Externals Only exported Menu Globals "laya/display/Sprite" Sprite Class Sprite Sprite 是基本的显示图形的显示列表节点。 Sprite 默认没有宽高,默认不接受鼠标事件。通过 graphics 可以绘制图片或者矢量图,支持旋转,缩放,位移...
来源: Laya3.0_api 发布时间: 20231115