大约有 422 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0062 秒)
Laya_社区(249) Laya3.0_文档(36) Laya_示例(33) Laya2.0_文档(30) Laya3.0_api(25) Laya2.0_api(20) Laya2.0_示例(15) laya_api(14)
...会出现极小的情况 可以使用 drawToCanvas从游戏中截屏当前sprite 的绘制 let new_texture = sprite.drawToCanvas(width, height, 0, 0) 这里的 width 和height 指的是当前的sprite在游戏中设置的大小 new_texture = ls.Texture.create(new_texture, 0, 0) 重新获取纹...
来源: Laya_社区 发布时间: 20180531
...问题 Dialog:屏蔽点击Dialog之外的区域关闭弹框 如何设置Sprite的宽高和点击区域? 救命!canvas定位后 点击区域偏移,求大大们解答 动画混合无效(版本2.6) 求问shader中的attribute变量怎么动态修改 iphoneX环境下新手引导的抠图透...
来源: Laya_社区 发布时间: 20241129
一个关于getPixels的问题 空工程中代码如下: Main.js: const Sprite = Laya.Sprite; const Text = Laya.Text; const Texture = Laya.Texture; Laya.init(800, 600); var txt = new Text(); txt.pos(200, 200); txt.color = "#FFFFFF"; txt.text = "000000"; Laya.stage.addChild(txt); var spr = n...
来源: Laya_社区 发布时间: 20190401
...答(最新版本:1.7.16) TS项目使用matter.js库无智能提示 sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale Laya2.0 WebGl模式,使用 drawToCanvas 报错 ImageData is not defined? 使用3D时候,Property 'getComponentByType' does not exist on type 'Node...
来源: Laya_社区 发布时间: 20230727
... 代码: package { /** * ... * @author xueyandy */ import flash.display.Sprite; import laya.display.Text; public class HelloLayabox extends Sprite { public function HelloLayabox() { trace("Hello,World"); //创建舞台,默认背景色是黑色的 Laya.init(600, 300); return; var txt:Text = new T...
来源: Laya_社区 发布时间: 20180824
... new Laya.Vector3(1, -1, -1); var layaMonkey = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("../../res/threeDimen/skinModel/LayaMonkey/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm"))); //加载材质 layaMonkey.meshRender.material = Laya.StandardMaterial.load("../../res/threeDimen/skinModel/Lay...
来源: Laya_示例 发布时间: 20260303
...) export class LightOccluder extends Laya.Script { private spotLight: Laya.Sprite = new Laya.Sprite(); private background: Laya.Sprite = new Laya.Sprite(); private lightOccluder: Laya.Sprite = new Laya.Sprite(); private backgroundTexture: string = "resources/bg2.png"; //组件被启用后执行,...
来源: Laya3.0_文档 发布时间: 20251010
...属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
...umentationAll Packages | All Classes | Index | Frames No Frames LightSpriteProperties | Methods | Events | Constants Packagelaya.d3.core.lightClasspublic class LightSpriteInheritanceLightSprite Sprite3D ComponentNode Node EventDispatcher ObjectSubclasses DirectionLight, PointLight, SpotLig...
来源: laya_api 发布时间: 20170929
...有一点 ,需求中往往是希望一批图片都变色,比如一个sprite里面的元素都变成灰色,而后在某个时候这个sprite里面的元素都变回彩色,并且这个sprite里面的元素是变化的,有添加和删除 2017-06-15 0 0 分享 微博 QZONE 微信 189*****192 ...
来源: Laya_社区 发布时间: 20170615