• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 975 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0063 秒)

201. laya.ani.bone.Skeleton_API3.0 [ 78%]

...动画由Templet,AnimationPlayer,Skeleton三部分组成。 Hierarchy Sprite Skeleton Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha...

来源: Laya3.0_api 发布时间: 20231115

202. 不带格式后缀的图片无法成功加载 [ 78%]

....getRes(url); console.log(picTemp.width) // undefined let nodee = new Laya.Sprite() nodee.texture = picTemp nodee.width = 500 nodee.height = 250 nodee.x = 100 nodee.y = 350 Laya.stage.addChild(nodee) }));上面这个图片无法正常显示,打印 texture 的宽是 undefined,如果是带后缀...

来源: Laya_社区 发布时间: 20211026

203. CPU优化方式(TypeScript-2D进阶篇(TS)-性能优化) [ 78%]

...。 1. 使用getBounds/ getGraphicBounds。 ```typescript 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_文档 发布时间: 20210714

204. laya.ui.VScrollBar [ 78%]

...ya.uiClasspublic class VScrollBarInheritanceVScrollBar ScrollBar Component Sprite Node EventDispatcher Object 使用 VScrollBar (垂直 ScrollBar )控件,可以在因数据太多而不能在显示区域完全显示时控制显示的数据部分。 Public Properties Hide Inherited Public Proper...

来源: laya_api 发布时间: 20170929

205. bug,在laya编辑器里面用texture拼的界面,设置scaleX=-1,打包app在手机上失效。 [ 78%]

...,为什么打包APK之后在手机上就连接不上socket 如何设置Sprite的宽高和点击区域? FairyGUI是一款专业的 UI编辑器(千万别点) ui list 里面的元素不能点击两次 【BUG备忘录】关于Tween动画无法正常作用问题-解决办法 怎么获得laya.inpu...

来源: Laya_社区 发布时间: 20180303

206. laya.ui.HScrollBar [ 77%]

...ya.uiClasspublic class HScrollBarInheritanceHScrollBar ScrollBar Component Sprite Node EventDispatcher Object 使用 HScrollBar (水平 ScrollBar )控件,可以在因数据太多而不能在显示区域完全显示时控制显示的数据部分。 Public Properties Hide Inherited Public Proper...

来源: laya_api 发布时间: 20170929

207. 【简单跑酷--JS版】---Lv.3 添加地板 [ 77%]

...oor(){ Floor.__super.call(this); } //Floor 是一个显示对象 继承此 Sprite Laya.class(Floor, "Floor", laya.display.Sprite); var _proto = Floor.prototype; _proto.init = function(type){ //创建一个帧循环处理函数 Laya.timer.frameLoop(1, this, this.onLoop); } //在地板上面添加物...

来源: Laya_社区 发布时间: 20160728

208. 1.7.18beta少方法? [ 77%]

...Scene3D.load方法的第一个例子,地面部分是白色的 分享:Sprite 转换成3D贴图(Texture2D)的方法,如果有更好的方法,请告诉我。 问题状态 最新活动: 2018-04-18 10:54 浏览: 1072 关注: 1 人

来源: Laya_社区 发布时间: 20180417

209. BlinnPhong材质详解(ActionScript-3D基础(AS3)-模型材质详解) [ 77%]

...例([demo地址]())。 ```typescript var material:BlinnPhongMaterial = meshSprite3D.meshRenderer.material as BlinnPhongMaterial; //法线贴图 Texture2D.load(normalMapUrl[i], Handler.create(this, function(texture:Texture2D):void { //设置发现贴图 material.normalTexture = texture; })); ``` ![](...

来源: Laya2.0_文档 发布时间: 20210714

210. laya的drawToTexture太坑 [ 77%]

...e太坑 我之前做flash as3的,默认认为drawToTexture是要画目标sprite里面的0,0点。 结果怎么画都没有东西显示,看了下源码发现,里面把它自己(该sprite)的x, y给减掉了, 所以我只能每次在drawToTexture的两个offset参数里, 把x, y参数都...

来源: Laya_社区 发布时间: 20200330