• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 913 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0102 秒)

641. 请问如何监听html的button元件ontouchstart,ontouchend等事件 [ 55%]

...的相关内容,都要使用import和export吗? 关于遍历产生的sprite的点击事件,急,大神帮看哈 请问下加载TFF字体要怎么加载呢? 从unity导出的场景透贴和模型烘焙的灯光不显示,请问有知道是什么原因的吗?~~~~~~~~~~~~~ 问题状态 最...

来源: Laya_社区 发布时间: 20180126

642. LayaRender渲染含有多个part的Body存在Bug [ 55%]

...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

643. 在开启webgl模式下,每次运行texture类的getPixels方法内存都会增加 [ 55%]

...加 我使用的版本是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

644. laya.ui.Clip_API3.0 [ 55%]

...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

645. 分享:图集资源做位图文本的工具类(知道fontclip组件的可以略过了,之前一直没注意到这个组件) [ 55%]

...有需要的可以参考下/* * 位图字体; */ class BPFont extends Laya.Sprite { // 文本内容 private _text: string; // 水平排列方式 private _align: string; // 资源前缀 private resFix: string; // 间距 private _padding: number; // 位图集合 private chars: Laya.Sprite = ; // 回...

来源: Laya_社区 发布时间: 20180302

646. texture2D 设置 wrapModeU 与 wrapModeV 无效 (关于素材要求的问题) [ 55%]

...用须知-版本更新-问题解答(最新版本:1.7.16) 如何设置Sprite的宽高和点击区域? 动画混合无效(版本2.6) 关于适配采用showAll后留白部分的颜色问题 使用钢体设置防穿后仍有几率会穿透 (此问题已经无效) mask在layaplayer中有...

来源: Laya_社区 发布时间: 20200523

647. 提示“AtlasResourceManager:Dispose the inner Atlas。” [ 55%]

...); 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

648. Spine使用filters 无效 [ 55%]

...什么? 已上传 Demo 附件 TS项目使用matter.js库无智能提示 sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale LayaAirIDE下如何使用mask? 使用3D时候,Property 'getComponentByType' does not exist on type 'Node'. 微信小游戏:HTMLDivElement的使...

来源: Laya_社区 发布时间: 20180613

649. native 获取Texture上的某个区域的像素点 getPixels中有报错 [ 55%]

...抠图透明区域为黑色,其它机型都是正常的。 如何设置Sprite的宽高和点击区域? Animator 如何获取当前所有动画名称呢?或者所有的AnimationClip呢? 救命!canvas定位后 点击区域偏移,求大大们解答 怎么获取对象的坐标 龙骨skeleton...

来源: Laya_社区 发布时间: 20190625

650. httpRequest send返回Request failed Status:0 [ 55%]

... 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