大约有 2,642 项符合查询结果, 库内数据总量为 30,897 项。 (搜索耗时: 0.0088 秒)
Laya_社区(2120) Laya2.0_文档(119) Laya3.0_api(106) Laya_示例(84) Laya2.0_api(57) Laya2.0_示例(55) laya_api(53) Laya3.0_文档(48)
sprite有没有转成图片的方法 sprite有没有转成图片的方法,直接用bitmap行不行? 2016-08-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: Sprite没有直接转成T...
来源: Laya_社区 发布时间: 20160822
...一个类。代码如下:module npc { export class BaseNPC extends Laya.Sprite { constructor() { super(); this.graphics.drawCircle(0, 0, 10, "#ff0000"); } } } 然后在我的主文件中import,并new出来。代码如下:import BaseNPC = npc.BaseNPC; var npcc:BaseNPC = new BaseNPC(); 只要...
来源: Laya_社区 发布时间: 20180205
... Laya.stage.screenMode = "vertical"; Laya.Stat.show(); var icon = new Laya.Sprite(); icon.loadImage('img/test.png'); Laya.stage.addChild(icon); document.body.addEventListener("click",function(){ var kk = icon.drawToCanvas(431, 428).getContext('2d').canvas; var img = new Image(); img.src = kk.toDataU...
来源: Laya_社区 发布时间: 20161107
...) TextInput重写onFocus和onBlur事件监听不到 关于遍历产生的sprite的点击事件,急,大神帮看哈 Animation如何加点击事件 微信小游戏与加载图片时不会触发erroe事件 遮罩点击事件 自定义场景类导出layaMaxUI.ts有前缀导致报错 3d物理不能...
来源: Laya_社区 发布时间: 20180105
...我们可以通过它们来获取模型上的材质。 **Tips**:MeshSprite3D模型中为meshRenderer,SkinnedMeshSprite3D模型中为skinnedMeshRenderer。 ###### 这两个类多是一些继承自'父类'的共有的接口,可以查看'父类' **BaseRenderer** 的API([API地址](https://l...
来源: Laya2.0_文档 发布时间: 20210715
...于3d场景下的两个节点) //添加自定义模型 var box: Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1, 1, 1))) as Laya.MeshSprite3D; box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); var material: Laya.BlinnPhongMaterial = new Laya.Blin...
来源: Laya_社区 发布时间: 20190717
...new Laya.Scene()); scene.once(Laya.Event.HIERARCHY_LOADED, null, function (sprite) { console.log("scene HIERARCHY_LOADED"); }); scene.once(Laya.Event.LOADED, null, function (sprite) { console.log("scene LOADED"); });HIERARCHY_LOADED 和 LOADED有什么区别?为什么对scene不起作用? 2017-0...
来源: Laya_社区 发布时间: 20170619
...fined in laya/display/Node.ts:56 _graphics _graphics: AutoBitmap Overrides Sprite._graphics Defined in laya/ui/Button.ts:212 _ownGraphics _ownGraphics: boolean = false Implementation of ISelect._ownGraphics Inherited from Text._ownGraphics Defined in laya/display/Sprite.ts:252 _scene _scene: Node Im...
来源: Laya3.0_api 发布时间: 20231115
...default class CameraControll extends Laya.Script { @property( { type: Laya.Sprite3D } ) public target: Laya.Sprite3D; private camera: Laya.Camera; public distanceUp: number = 0.5;//相机与目标的竖直高度参数 public distanceAway: number = 10;//相机与目标的水平距离参数 public smo...
来源: Laya3.0_文档 发布时间: 20240910
... 'btCollisionObject' of undefined IDE1.7.8 json图集加载问题 new Laya.Sprite();绘制图形以后,怎么删除释放资源? Animation 的createFrames 使用已经加载的图集缓存动画失败 编辑了图片 执行代码说加载不出来资源 这个是怎么回事? 请问一下怎...
来源: Laya_社区 发布时间: 20180327