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

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

201. sound manager在MOUSE_OVER事件中无法播放 [ 72%]

...Handler = Laya.Handler;     import WebGL = Laya.WebGL;      export class Sound_SimpleDemo {         //声明一个信息文本         private txtInfo: Text;          constructor() {             // 不支持WebGL时自动切换至Canvas   ...

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

202. Sprite-遮罩-放大镜 [ 72%]

... = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Sprite_MagnifyingGlass { private maskSp:Sprite; private bg2:Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(1136, 640, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH...

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

203. 屏幕适配-缩放-No Border [ 72%]

...ER();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; export class SmartScale_Scale_NOBORDER { private rect: Sprite; constructor() { Laya.init(550, 400); Laya.stage.scaleMode = Stage.SCALE_NOBORDER; Laya.stage.bgColor = "#232628"; this.createCantralRect(); } private createCantra...

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

204. 屏幕适配-缩放-No Scale [ 72%]

...LE();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; export class SmartScale_Scale_NOSCALE { private rect: Sprite; constructor() { Laya.init(550, 400); Laya.stage.scaleMode = Stage.SCALE_NOSCALE; Laya.stage.bgColor = "#232628"; this.createCantralRect(); } private createCantralR...

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

205. 文本-字符限制 [ 72%]

...ext = Laya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Text_Restrict { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(550, 300, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.S...

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

206. UI-ProgressBar [ 72%]

...aya.ProgressBar; import Handler = Laya.Handler; import WebGL = Laya.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_CEN...

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

207. 区块地图-等角地图 [ 72%]

... Laya.Rectangle; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class TiledMap_IsometricWorld { private tiledMap: TiledMap; private layer: MapLayer; private sprite: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(1600, 800, WebGL); Laya.stage.alignV = St...

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

208. 文本-复杂的文本样式 [ 72%]

...ext = Laya.Text; import Browser = 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_C...

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

209. UI-ComboBox [ 72%]

...= Laya.ComboBox; import Handler = Laya.Handler; import WebGL = Laya.WebGL; 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....

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

210. Unity3d导出模型时 报错:LayaAir3D UnityPlugin prefab can't export You should check the texture file format [ 72%]

Unity3d导出模型时 报错:LayaAir3D UnityPlugin prefab can't export You should check the texture file format unity版本:2018.4.7f1 插件当日Laya2.4版本插件 步骤,导入插件-->将prefab拖入场景-->手动修改shader为BlinnPhong此时LayaBlinnPhongGUI.cs会报空引用...

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