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

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

441. laya.display.css.TextStyle [ 46%]

...l Classes | Index | Frames No Frames TextStyleProperties | Methods | Constants Packagelaya.display.cssClasspublic class TextStyleInheritanceTextStyle laya.display.css.SpriteStyle 文本的样式类 Public Properties PropertyDefined By  align : String 表示使用此文本格式的文本段...

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

442. 修改了Scene下的WebGL参数导致渲染3D对象出现局部透明 [ 46%]

... VRSeeThroughCamera to determine the correct UV // coordinates to be used. const combinedOrientation = combineOrientations( window.screen.orientation.angle, this.passThroughCamera.orientation ); if (combinedOrientation !== this.combinedOrientation) { this.combinedOrientation = combinedOrientation; t...

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

443. UI弹窗 · LayaAir3.0文档 · LAYABOX [ 45%]

...所示。 (动图8) 3、代码创建Dialog组件 代码运行结果: const { regClass, property } = Laya; @regClass() export class UI_Dialog extends Laya.Script { private DIALOG_WIDTH: number = 220; private DIALOG_HEIGHT: number = 275; private CLOSE_BTN_WIDTH: number = 43; private CLOSE_BTN_PA...

来源: Laya3.0_文档 发布时间: 20230303

444. 滤镜-发光滤镜 [ 45%]

...ivate apePath: string = "../../res/apes/monkey2.png"; private ape: Sprite; 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_示例 发布时间: 20241001

445. laya3D 发部为android,只要一创建场景(包括空场景)就有如下报错,并且黑屏 [ 45%]

...aya.Camera(0, 0.01, 1000)); camera.transform.translate(new Laya.Vector3(0, consts.CAMERA_HEI, 0)); camera.transform.rotate(new Laya.Vector3(-45, 0, 0), true, false); camera.orthographic = true; camera.orthographicVerticalSize = 15; this.mainCamera = camera; // var directionLight = scene.addChild(new...

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

446. 当使用代码创建打开场景时,onOpened触发了,但场景active和activeInHierarchy还是处于false,请问纯代码怎么实现场景创建激活,谢谢 [ 45%]

...活状态,请问纯代码怎么实现场景创建激活,谢谢?   const scene = new Laya.Scene(); scene.onOpened = () => { console.log('scene onOpened'); }; scene.open(); console.log('scene', scene.active, scene.activeInHierarchy); Laya.timer.frameOnce(10, this, () => {   console.log('...

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

447. 树状列表组件 · LayaAir3.0文档 · LAYABOX [ 45%]

...的属性入口中,在代码里给 Tree 对象赋值的示例如下: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Tree }) public tree: Laya.Tree; //组件被激活后执行,此时所有节点和组件均已创建完毕,...

来源: Laya3.0_文档 发布时间: 20230828

448. LAYAIDE运行VSCODE插件失败问题(VSCODE正常) [ 45%]

...se strict'; Object.defineProperty(exports, "__esModule", { value: true }); const vscode = require("vscode"); function activate(context) { let disposable = vscode.commands.registerCommand('extension.buildTemplate', () => { vscode.window.showInformationMessage('build template complete.'); }); conte...

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

449. DOM元素-视频 [ 45%]

...种开发语言、LayaAirIDE让项目开发更高效。class DOM_Video { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALI...

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

450. 性能测试-虫子(慎入) [ 45%]

..., maggots = [], wrapBounds, maggotTexture; class PerformanceTest_Maggots { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler, Rectangle = Laya.Rectangle; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Br...

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