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

大约有 3,003 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0089 秒)

2531. swf转成H5资源显示超出原有范围 [ 46%]

...stem.LoaderContext;     import flash.system.Capabilities;     public class Main extends Sprite     {         public function Main():void         {             if (stage) init();             else addEventListener(Event.ADDED_TO_STAGE, init);         }   ...

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

2532. 如何自定义Shader(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 46%]

...之后材质基类由BaseMaterial变更为Material。 ```typescript export class CustomMaterial extends Laya.Material { public function CustomMaterial() { super(); //设置本材质使用的shader名字 this.setShaderName("CustomShader"); } } ``` #### 4.使用自定义材质 ​ 在使用自定义...

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

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

...qianxiao * @Date: 2017/12/25 * @Time: 下午3:52 * @Desc: 字体样式 **/ class TextFormat implements ITextFormat { /** * 背景色 */ bgColor: string; /** * 是否加粗 */ bold: number; /** * 文本框背景色 */ borderColor: string; /** * 文本颜色 */ color: string; /** * 字体 */ font: str...

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

2534. 无法触发浏览器文件上传框 [ 45%]

无法触发浏览器文件上传框 // 程序入口 class GameMain { private btn: Laya.Button; private skin: string = 'images/button.png'; constructor() { Laya.init(200, 300); Laya.loader.load(this.skin, Laya.Handler.create(this, () => { this.btn = this.createBtn(this.skin); this.btn.on(Laya.Ev...

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

2535. 屏幕方向:自动横屏与自动竖屏的设置详解(JavaScript-LayaAir基础篇(JS)-屏幕适配) [ 45%]

...x.com/api2/Chinese/index.html?version=2.9.0beta&type=Core&category=display&class=laya.display.Stage),找到screenMode属性。如图1所示。 ![图1](img/1-1.png) (图1) #### 1.1 默认值none或者不设置screenMode属性 默认值none或者不设置screenMode属性时,无论屏幕方向如...

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

2536. LayaAir3D中的Transform变换(JavaScript-3D基础(JS)-LayaAir3D图形系统基础概念) [ 45%]

...m3D](https://layaair.ldc.layabox.com/api2/Chinese/index.html?category=Core&class=laya.d3.core.Transform3D)API),他在3D的世界中非常的重要,所有有关显示对象变化的都会用到他。 ​ 在示例代码中已经用到了移动(translate),旋转(rotate)这两种变换,并且...

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

2537. laya.resource.RenderTextureCube_API3.0 [ 45%]

... exported Menu Globals "laya/resource/RenderTextureCube" RenderTextureCube Class RenderTextureCube SpotLight 类用于创建RenderTextureCube。 Hierarchy RenderTexture RenderTextureCube Implements IRenderTarget Index Constructors constructor Properties _generateMipmap _id _inPool _isCameraTarget _r...

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

2538. laya.d3.webxr.core.WebXRRenderTexture_API3.0 [ 45%]

...ed Menu Globals "laya/d3/WebXR/core/WebXRRenderTexture" WebXRRenderTexture Class WebXRRenderTexture author miner 类用来创建WebXRRenderTexture Hierarchy RenderTexture WebXRRenderTexture Implements IRenderTarget Index Constructors constructor Properties _generateMipmap _id _inPool _isCameraTarget...

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

2539. 加载TiledMap 不显示 [ 45%]

... import Handler = Laya.Handler; import WebGL = Laya.WebGL;  export class TiledMap_IsometricWorld {     private tiledMap: TiledMap;     private layer: MapLayer;     private sprite: Sprite;      constructor ()     {         // 不支持WebGL时自动切换...

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

2540. 屏幕方向:自动横屏与自动竖屏的设置详解(TypeScript-LayaAir基础篇(TS)-屏幕适配) [ 45%]

...x.com/api2/Chinese/index.html?version=2.9.0beta&type=Core&category=display&class=laya.display.Stage),找到screenMode属性。如图1所示。 ![图1](img/1-1.png) (图1) #### 1.1 默认值none或者不设置screenMode属性 默认值none或者不设置screenMode属性时,无论屏幕方向如...

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