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

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

1071. 文本-复杂的文本样式 [ 46%]

... Laya.Browser; import WebGL = Laya.WebGL; export class Text_ComplexStyle { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "sh...

来源: Laya_示例 发布时间: 20250318

1072. sound manager在MOUSE_OVER事件中无法播放 [ 46%]

...个信息文本         private txtInfo: Text;          constructor() {             // 不支持WebGL时自动切换至Canvas             Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL);              Laya.stage.alignV = Stage....

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

1073. 性能测试-虫子(慎入) [ 46%]

...ggots:Array = []; private wrapBounds:Rectangle; private maggotTexture:any; constructor() { Laya.init(Browser.width,Browser.height, WebGL); Laya.stage.bgColor = "#000000"; Stat.show(); this.wrapBounds = new Rectangle(-this.padding, -this.padding, Laya.stage.width + this.padding * 2, Laya.stage.height...

来源: Laya_示例 发布时间: 20250318

1074. 如何自定义Shader(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 46%]

...erial。 ```typescript export class CustomMaterial extends Laya.Material { constructor() { super(); //设置本材质使用的shader名字 this.setShaderName("CustomShader"); } } ``` #### 4.使用自定义材质 ​ 在使用自定义材质之前,一定要记得初始化自己的Shader。LayaAir...

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

1075. laya.d3.core.material.PBRMaterial_API3.0 [ 46%]

...Hierarchy Material PBRMaterial PBRStandardMaterial Implements IClone Index Constructors constructor Properties _id destroyedImmediately lock name renderQueue url uuid ALPHATESTVALUE DEBUG RENDERQUEUE_ALPHATEST RENDERQUEUE_OPAQUE RENDERQUEUE_TRANSPARENT SHADERDEFINE_ADDTIVEFOG SHADERDEFINE_ALPHATEST ...

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

1076. UI-ProgressBar [ 45%]

...aya.WebGL; export class UI_ProgressBar { private progressBar: ProgressBar; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgCo...

来源: Laya_示例 发布时间: 20250318

1077. Dialog 第一次打开总是出现在窗口右下角,这是为啥,再打开就正常剧中了? [ 45%]

...,代码如下 export default class SettingDialog extends Laya.Dialog { constructor() { super(); this.loadScene('assets/scenes/dialogs/SettingDialog.scene'); } }{ "x":0, "type":"Dialog", "selectedBox":2, "selecteID":3, "searchKey":"Dialog", "props":{"width":1624,"sceneColor":"#000000","runtime":"sc...

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

1078. 2.2.0 Html使用img标签解析错误 [ 45%]

2.2.0 Html使用img标签解析错误 TypeError: Illegal constructor preload.js:55 at Function.getInstance (file:///D:/LayaTest/TestHtml2.2.0/bin/libs/laya.core.js:11687:24)   at Function.getInstance (file:///D:/LayaTest/TestHtml2.2.0/bin/libs/laya.html.js:1213:39)   at Function._parseXML (file:/...

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

1079. ComboBox属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 45%]

...; export class UI_ComboBox { private skin: string = "res/ui/combobox.png"; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgCo...

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

1080. 龙骨动画的监听回调,有时能回调,有时不能回调 [ 45%]

...nstance():DdzLandlordAni{ return this.instance(DdzLandlordAni); }  public constructor(){ super(); this.initTemplet(); }  public static destoryInstance(){ if(this.mInstance){ (<DdzLandlordAni>this.mInstance).destory(); this.mInstance = null; } }  public initTemplet(){ this.mFactory = new Lay...

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