大约有 913 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0102 秒)
Laya_社区(495) Laya2.0_文档(153) Laya3.0_api(61) Laya2.0_api(57) laya_api(53) Laya_示例(37) Laya3.0_文档(33) Laya2.0_示例(24)
...的相关内容,都要使用import和export吗? 关于遍历产生的sprite的点击事件,急,大神帮看哈 请问下加载TFF字体要怎么加载呢? 从unity导出的场景透贴和模型烘焙的灯光不显示,请问有知道是什么原因的吗?~~~~~~~~~~~~~ 问题状态 最...
来源: Laya_社区 发布时间: 20180126
...unction createBody() { var size = 200, x = 200, y = 200; var sp = new Laya.Sprite(); var text = Laya.loader.getRes("res/bar.png"); var w = size, h = size/5; sp.pivot(w/2, h/2); sp.graphics.fillTexture(text, 0, 0, w, h); partA = Matter.Bodies.rectangle(x, y, w, h, { isStatic:true, layaSprite:sp, });...
来源: Laya_社区 发布时间: 20180625
...加 我使用的版本是1.7.12 测试代码如下:module Main { import Sprite = Laya.Sprite import Texture = Laya.Texture import Handler = Laya.Handler export class MaskDemo { private Res: string; private img: Laya.Image; constructor() { //Laya.init(400, 640, Laya.WebGL); //设置舞台背景色 ...
来源: Laya_社区 发布时间: 20171211
...fined in laya/display/Node.ts:56 _graphics _graphics: AutoBitmap Overrides Sprite._graphics Defined in laya/ui/Clip.ts:151 _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
...有需要的可以参考下/* * 位图字体; */ class BPFont extends Laya.Sprite { // 文本内容 private _text: string; // 水平排列方式 private _align: string; // 资源前缀 private resFix: string; // 间距 private _padding: number; // 位图集合 private chars: Laya.Sprite = ; // 回...
来源: Laya_社区 发布时间: 20180302
...用须知-版本更新-问题解答(最新版本:1.7.16) 如何设置Sprite的宽高和点击区域? 动画混合无效(版本2.6) 关于适配采用showAll后留白部分的颜色问题 使用钢体设置防穿后仍有几率会穿透 (此问题已经无效) mask在layaplayer中有...
来源: Laya_社区 发布时间: 20200523
...); var aa = '1234567'; console.log(aa.substring(0,3));*/ (function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var Loader = laya.net.Loader; var Event = Laya.Event; (function() { // ...
来源: Laya_社区 发布时间: 20170825
...什么? 已上传 Demo 附件 TS项目使用matter.js库无智能提示 sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale LayaAirIDE下如何使用mask? 使用3D时候,Property 'getComponentByType' does not exist on type 'Node'. 微信小游戏:HTMLDivElement的使...
来源: Laya_社区 发布时间: 20180613
...抠图透明区域为黑色,其它机型都是正常的。 如何设置Sprite的宽高和点击区域? Animator 如何获取当前所有动画名称呢?或者所有的AnimationClip呢? 救命!canvas定位后 点击区域偏移,求大大们解答 怎么获取对象的坐标 龙骨skeleton...
来源: Laya_社区 发布时间: 20190625
... Laya.init(1136, 640); for (var i = 0; i < 4; i++) { var sp = new Laya.Sprite(); var xhr = new Laya.HttpRequest(); var url = "http://thirdqq.qlogo.cn/g%3Fb% ... 3B%3B xhr.once(Laya.Event.COMPLETE, this, this.completeHandler, [url, 1]); xhr.once(Laya.Event.ERROR, this, this.errorHandler); xhr.send...
来源: Laya_社区 发布时间: 20180629