大约有 2,642 项符合查询结果, 库内数据总量为 30,897 项。 (搜索耗时: 0.0109 秒)
Laya_社区(2120) Laya2.0_文档(119) Laya3.0_api(106) Laya_示例(84) Laya2.0_api(57) Laya2.0_示例(55) laya_api(53) Laya3.0_文档(48)
使用loadImage加载一个图片后的点击事件 var Sprite = Laya.Sprite; var ape = new Sprite(); Laya.stage.addChild(ape); ape.loadImage(img,360, 300, 60, 60, Laya.Handler.create(this, function(){ ape.on(Laya.Event.CLICK, this, function(){ console.log(111) }) }));...
来源: Laya_社区 发布时间: 20180609
...如何 转换 角度 我想给 舞台转换180°,虽然我可以new Laya.Sprite() 转换这个sprite的角度,但是list之类的组件滑动 就会反向移动 2017-04-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 ...
来源: Laya_社区 发布时间: 20170421
...不见的,但是没有生效 Laya.init(640, 1136); let testSp = new Laya.Sprite(); testSp.width = 200; testSp.height = 50; testSp.graphics.clear(); testSp.graphics.drawRect(0, 0, testSp.width, testSp.height,'#FF0000'); let tmpMask = new Laya.Sprite(); tmpMask.width = testSp.width; tmpMask.height = t...
来源: Laya_社区 发布时间: 20200421
...tionLight = scene.addChild(new Laya.DirectionLight()); //加载模型 Laya.Sprite3D.load("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(null, function(sp){ //将模型加到场景上 var layaMonkey = scene.addChild(sp); })) ``` 编译运行上述代码,运行效果如图6...
来源: Laya2.0_文档 发布时间: 20210715
...: 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
...小通过率 Parameters value: number Returns void renders get renders(): Sprite3D[] set renders(value: Sprite3D[]): void Defined in laya/d3/component/LODGroup.ts:93 设置LODInfo的节点信息 Returns Sprite3D[] Defined in laya/d3/component/LODGroup.ts:86 设置LODInfo的节点信息 Parameters va...
来源: Laya3.0_api 发布时间: 20231115
...: 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
...线,示例代码如下: ```typescript module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import WebGL = Laya.WebGL; export class Sprite_DrawShapes { private sp: Sprite; constructor() ...
来源: Laya2.0_文档 发布时间: 20210715
有没有办法直接把一个 sprite 直接转换成一张贴图,在不使用 渲染目标的情况下 有没有办法直接把一个 sprite 直接转换成一张贴图,在不使用 渲染目标的情况下,因为我看了案例,渲染目标还要摆摄像机,有点复杂。 2017-07-12 ...
来源: Laya_社区 发布时间: 20170712
...tionLight = scene.addChild(new Laya.DirectionLight()); //加载模型 Laya.Sprite3D.load("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(null, function(sp) { //将模型加到场景上 var layaMonkey = scene.addChild(sp); })) ``` 编译运行上述代码,运行效果如图...
来源: Laya2.0_文档 发布时间: 20210715