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

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

31. 屏幕适配-屏幕适配 [ 84%]

...der", "full", "fixedwidth", "fixedheight"]; //当前适配模式索引 var index = 0; //全局文本信息 var txt; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(1136, 640); //设置适配模式 Laya.stage.scaleMode = "noscale"; //设置横竖屏 Laya.stage.screenMode = Stage.SCR...

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

32. 屏幕适配-屏幕适配 [ 84%]

..., "exactfit", "showall", "noborder", "full", "fixedwidth", "fixedheight"], index = 0, txt; class SmartScale_T { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler, Image = Laya.Image, Text = Laya.Text; // 不支持WebGL时...

来源: Laya2.0_示例 发布时间: 20240930

33. Laya.loader.load 教程代码出错 [ 84%]

...ple {         private var img:Sprite ;         private var index:int ;         public function LayaSample() {             //初始化引擎             Laya.init(600, 300);                          img = new Sprite();      ...

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

34. laya.d3.core.render.posteffect.ScalableAO_API3.0 [ 83%]

Search Preparing search index... The search index is not available layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/core/render/PostEffect/ScalableAO" ScalableAO Class ScalableAO BloomEffect 类用于创建环境光遮罩效果。 Hierarchy Pos...

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

35. UI-Tab [ 83%]

... 1,Tab Control 2,Tab Control 3"; tab.labelPadding = "0,0,0,0"; tab.selectedIndex = 1; onSelect(tab.selectedIndex); tab.selectHandler = new Handler(this, onSelect); Laya.stage.addChild(tab); return tab; } function onSelect(index) { console.log("当前选择的标签页索引为 " + index); } })();mod...

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

36. UI-Tab [ 83%]

... 1,Tab Control 2,Tab Control 3"; tab.labelPadding = "0,0,0,0"; tab.selectedIndex = 1; this.onSelect(tab.selectedIndex); tab.selectHandler = new Handler(this, this.onSelect); Laya.stage.addChild(tab); return tab; } onSelect(index) { console.log("当前选择的标签页索引为 " + index); } } new U...

来源: Laya2.0_示例 发布时间: 20240930

37. laya.d3.resource.models.PrimitiveMesh_API3.0 [ 83%]

Search Preparing search index... The search index is not available layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/resource/models/PrimitiveMesh" PrimitiveMesh Class PrimitiveMesh PrimitiveMesh 类用于创建简单网格。 Hierarchy Primitiv...

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

38. laya.d3.terrain.TerrainLeaf [ 82%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames TerrainLeafProperties | Methods Packagelaya.d3.terrainClasspublic class TerrainLeafInheritanceTerrainLeaf Object TerrainLeaf Terrain的叶子节点 Public Properties PropertyDefined By  __ADAPT_MATRIX__ : Matrix4x4[st...

来源: Laya2.0_api 发布时间: 20190513

39. UI-RadioGroup [ 81%]

...i) { var rg: RadioGroup = this.createRadioGroup(this.skins[i]); rg.selectedIndex = i; rg.x = i * this.SPACING + this.X_OFFSET; rg.y = this.Y_OFFSET; } } private createRadioGroup(skin: string): RadioGroup { var rg: RadioGroup = new RadioGroup(); rg.skin = skin; rg.space = 70; rg.direction = "v"; rg.l...

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

40. UI-RadioGroup [ 81%]

...i) { var rg: RadioGroup = this.createRadioGroup(this.skins[i]); rg.selectedIndex = i; rg.x = i * this.SPACING + this.X_OFFSET; rg.y = this.Y_OFFSET; } } private createRadioGroup(skin: string): RadioGroup { var rg: RadioGroup = new RadioGroup(); rg.skin = skin; rg.space = 70; rg.direction = "v"; rg.l...

来源: Laya2.0_示例 发布时间: 20240930