大约有 913 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0082 秒)
Laya_社区(495) Laya2.0_文档(153) Laya3.0_api(61) Laya2.0_api(57) laya_api(53) Laya_示例(37) Laya3.0_文档(33) Laya2.0_示例(24)
物理Bodies绑定Laya.Sprite Laya.init(600, 400, Laya.WebGL); // 初始化一个画布,使用 WebGL 渲染,不支持时会自动切换为 Canvas Laya.stage.alignV = 'top'; // 适配垂直对齐方式 Laya.stage.alignH = 'middle'; // 适配水平对齐方式 Laya.stage.screenMode = this.Stage.S...
来源: Laya_社区 发布时间: 20180522
一个关于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
# Sprite3D添加组件或脚本 ###### **version :2.7.0beta Update:2020-6-12** **Component** 组件,是附加到所有3D对象的内容的基类。在给物体添加组件时,需要物体使用`addComponent`方法。 (图1) **Script3D** 这是3D世界中的脚本,继承自组件...
来源: Laya2.0_文档 发布时间: 20210714
...: boolean = false Inherited from Text._ownGraphics Defined in laya/display/Sprite.ts:252 _scene _scene: Node Inherited from Node._scene Defined in laya/display/Node.ts:641 _skinBaseUrl _skinBaseUrl: string Inherited from Text._skinBaseUrl Defined in laya/display/Sprite.ts:276 如果节点需要加...
来源: Laya3.0_api 发布时间: 20231115
...同类型的物体使用了同一张图片会导致错误,例如 一个sprite使用图片“1.png",另一个clip也使用的"1.png"就会报错。两个都变成同一个类型就不会报错 2020-08-05 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先...
来源: Laya_社区 发布时间: 20200202
...TFF字体要怎么加载呢? ide 2.4 layaair2-cmd 编译报错 new Laya.Sprite();绘制图形以后,怎么删除释放资源? 请问laya里如何解析json,似乎和AS3的不太一样。 请问下loader如何强制加载一个文件,避免浏览器的缓存 问题状态 最新活动: 2017-...
来源: Laya_社区 发布时间: 20170225
...: boolean = false Inherited from Text._ownGraphics Defined in laya/display/Sprite.ts:252 _scene _scene: Node Inherited from Node._scene Defined in laya/display/Node.ts:641 _skinBaseUrl _skinBaseUrl: string Inherited from Text._skinBaseUrl Defined in laya/display/Sprite.ts:276 如果节点需要加...
来源: Laya3.0_api 发布时间: 20231115
...) 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
...: boolean = false Inherited from Text._ownGraphics Defined in laya/display/Sprite.ts:252 _scene _scene: Node Inherited from Node._scene Defined in laya/display/Node.ts:641 _skinBaseUrl _skinBaseUrl: string Inherited from Text._skinBaseUrl Defined in laya/display/Sprite.ts:276 如果节点需要加...
来源: Laya3.0_api 发布时间: 20231115
...ya.Texture = Laya.loader.getRes("test2.png"); var sp3:Laya.Sprite = new Laya.Sprite(); sp3.texture = Laya.Texture.create(tx3,0,0,315,315,134,134,582,582); sp3.pivot(315/2,315/2);//锚点使用实际裁切后的中心反而是对的,这按理是bug...
来源: Laya_社区 发布时间: 20191112