大约有 21 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0077 秒)
...| Events Packagelaya.uiClasspublic class ImageInheritanceImage Component Sprite Node EventDispatcher Object Image 类是用于表示位图图像或绘制图形的显示对象。 Image和Clip组件是唯一支持异步加载的两个组件,比如img.skin = "abc/xxx.png",其他UI组件均不支...
来源: laya_api 发布时间: 20170929
...取有效像素问题 更新: 在 现在有没有办法把一个display.sprite转存成图片 无意间找到了 答案 getimagedata无法直接使用 1 需要先 c= Laya.stage.drawToCanvas(720,1280, 0,0) 2 然后 调用 t = new Trxture(c); t.getPixels(0,0, 720,1280) 希望官方对这种比较...
来源: Laya_社区 发布时间: 20171201
...位置,应该用什么缓动模式 【悬赏版】动态更换SkinedMeshSprite3D对象,替换后,对象缩小了 用sprite.graphics绘制一个矩形 这个矩形对象不能获得鼠标事件的么? 关于3D克隆同样显示对象DrawCall优化问题。 问题状态 最新活动: 2019-10-2...
来源: Laya_社区 发布时间: 20180803
...事件 分享:LayaAir下如何获取图集下的小图资源? new Laya.Sprite();绘制图形以后,怎么删除释放资源? Layabox如何实现本地存储 我用list.array=Array;数据全部插进去数组里了,但是list中没有完全展示数组数据,只展示了其中的图片部...
来源: Laya_社区 发布时间: 20180106
...属GLSL文件(高阶操作不推荐直接使用) u_WorldMat 世界矩阵 Sprite3DCommon.glsl u_ProjectionParams(near, far, invert, 1 / far) 投影参数 Camera.glsl u_Viewport(x, y, width, height) 视口 Camera.glsl u_CameraDirection 相机方向 Camera.glsl u_CameraUp 相机上朝向 Camera.glsl u_...
来源: Laya3.0_文档 发布时间: 20251010
...路径三、地形处理3.1 高度图3.2 网格地形3D精灵 MeshTerrainSprite3D3.3 更新世界矩阵3.4 得到整数的网格索引3.5 得到世界坐标系下的真实坐标3.6 初始化目标点四、角色移动五、最终代码3D寻路 一、概述 本篇将讲解3D场景的寻路问题,...
来源: Laya3.0_文档 发布时间: 20230303
...fined in laya/display/Node.ts:56 _graphics _graphics: AutoBitmap Overrides Sprite._graphics Defined in laya/ui/Image.ts:98 _ownGraphics _ownGraphics: boolean = false Inherited from Text._ownGraphics Defined in laya/display/Sprite.ts:252 _scene _scene: Node Inherited from Node._scene Defined in laya/...
来源: Laya3.0_api 发布时间: 20231115
...Protected All Inherited Externals Only exported Menu Globals "laya/display/Sprite" Sprite Class Sprite Sprite 是基本的显示图形的显示列表节点。 Sprite 默认没有宽高,默认不接受鼠标事件。通过 graphics 可以绘制图片或者矢量图,支持旋转,缩放,位移...
来源: Laya3.0_api 发布时间: 20231115
...1.3 资源卸载1.4 关于滤镜、遮罩二、渲染优化方式2.1 优化Sprite2.2 优化DrawCall2.3 优化Canvas2.4 CacheAs2.5 文字描边2.6 跳过文本排版,直接渲染三、减少CPU使用量3.1 减少动态属性查找3.2 性能消耗的回收3.3 获取显示对象边界的做法3.4 根...
来源: Laya3.0_文档 发布时间: 20251010
...ghtControl = Laya.loader.getRes("res/OculusController/controller.gltf") as Sprite3D; let leftControl = Laya.loader.getRes("res/OculusController/controller-left.gltf") as Sprite3D; let pixelright = new PixelLineSprite3D(20,"right"); let pixelleft = new PixelLineSprite3D(20,"left"); this.scene.addChil...
来源: Laya3.0_文档 发布时间: 20251010