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

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

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

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

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

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

443. 发布到微信画面显示不全 [ 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

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

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

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

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

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

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

448. laya.ui.Dialog_API3.0 [ 57%]

...tY right rotation scaleX scaleY scene scene3D scrollRect skewX skewY stage staticCache texture timer top transform url viewport visible width x y zOrder manager root Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer ...

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

449. laya.display.Text_API3.0 [ 57%]

...scaleY scene scrollRect scrollX scrollY singleCharRender skewX skewY stage staticCache stroke strokeColor templateVars text textHeight textWidth texture timer transform ubb underline underlineColor url valign viewport visible width wordWrap x y zOrder Methods _initialize _processActive _setHeight _s...

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

450. ShaderPass介绍(TypeScript-3D基础(TS)-LayaAir3D之Shader) [ 57%]

...S from "../customShader/outline02.vs"; ``` > 初始化Shader ```typescript static initShader() { //所有的attributeMap属性 var attributeMap = { 'a_Position': Laya.VertexMesh.MESH_POSITION0, 'a_Normal': Laya.VertexMesh.MESH_NORMAL0, 'a_Texcoord0': Laya.VertexMesh.MESH_TEXTURECOORDINATE0 }; //所...

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