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

大约有 600 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0048 秒)

441. 使用ScrollRect捲動物理世界,貼圖錯位問題 [ 58%]

...dy放到特定容器(Sprite),並對容器使用ScrollRect捲動時,Static type RigidBody的貼圖會錯位,但 Collider碰撞都正常,只有顯示異常 若改用容器的x, y進行座標偏移,會出現殘影,顯示仍然有問題 若不用容器,直接對 stage做scrollRect顯...

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

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

...umber; // 位图集合 private chars: Laya.Sprite = ; // 回收池 private static fontPool: Laya.Sprite = ; /** * * @param resFix 资源前缀 * @param width 宽度 * @param align 水平排列方式 * @param padding 间距 */ public constructor(resFix: string, width: number, align: string = "left",p...

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

443. 对游戏中各种控件字体样式使用“白鹭style”样式表 [ 57%]

...下午3:07 * @Desc: 字体样式管理器 **/ class StyleManager { private static _instance: StyleManager; private _styleMap: Object;//字体样式映射 static get instance(): StyleManager { if (!this._instance) { this._instance = new StyleManager(); } return this._instance; } constructor() { } /**...

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

444. 位图字体的制作与使用(JavaScript-LayaAir基础篇(JS)-文本) [ 57%]

...### **Text 类中相关接口:** **registerBitmapFont () 方法** public static function registerBitmapFont(name:String, bitmapFont:BitmapFont):void 注册位图字体。 参数 name:String — 位图字体的名称。 bitmapFont:BitmapFont — 位图字体文件。 **unregisterBitmapFont () 方...

来源: Laya2.0_文档 发布时间: 20201114

445. laya.device.media.Video_API3.0 [ 57%]

...rotation scaleX scaleY scene scrollRect seekable seeking skewX skewY stage staticCache texture timer transform url videoHeight videoWidth viewport visible volume width x y zOrder Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance addInputChild callLa...

来源: Laya3.0_api 发布时间: 20231102

446. 发布到微信画面显示不全 [ 57%]

...库:找到laya.wxmini.js文件,修改_onStageResize方法,改成: static _onStageResize() { var ts = Laya.Laya.stage._canvasTransform.identity(); ts.scale((Laya.Browser.width / Laya.Render.canvas.width / Laya.Browser.pixelRatio), Laya.Browser.height / Laya.Render.canvas.height / Laya.Browser...

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

447. matter.js删除物体 [ 57%]

...circle之间的constraint组成的,其中绳子一端的circle设为了static,我想把绳子删除掉,调用了world.remove,然后本来晃动的绳子僵硬不动了,但是还是显示在屏幕中,怎么把它从屏幕中删掉? 2018-07-24 添加评论 免费帖 --> 分享 微博 QZO...

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

448. Shader预编译解决方案 [ 57%]

...r._passes.indexOf(shaderPass) : number defineNames :宏定义名称  static compileShaderByDefineNames(shaderName, subShaderIndex, passIndex, defineNames) {     var shader = Shader3D.find(shaderName);     if (shader) {         var subShader = shader.getSubShaderAt(...

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

449. [LayaAir3]静态合批与合批组件问题 [ 57%]

...场景的drawCall都没有降低。查源码laya.d3.js 的Config3D.enableStaticBatch 无论true与false 走的都代码流程都一样。 总之都是elements.add(element); 2 我使用staticBatchVolume 勾选Enable Static Instance Batch Render 就会报错! 3 性能问题 2.x性能测试的demo ...

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

450. button 按下放缩特效 [ 57%]

... //     protected _getTextureByUrl(url: string): string;     //     static parseAnimationData(aniData: any): any;     // } }   T15_UITest.zip 2017-08-17 0 0 分享 微博 QZONE 微信 asdf131 赞同来自: import Button = laya.editorUI.Button;  还发现这个有时引不进来!! 2017-...

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