大约有 558 项符合查询结果, 库内数据总量为 30,938 项。 (搜索耗时: 0.0037 秒)
Laya_社区(175) Laya2.0_示例(114) Laya2.0_api(91) Laya3.0_文档(87) laya_api(48) Laya_示例(24) Laya2.0_文档(16) Laya3.0_api(3)
...ault:5}*/ public horizontalSpace: number = 5; private sprite: Laya.Sprite; constructor() { super(); this.sprite = new Laya.Sprite(); } drawText(x: number, y: number, w: number, h: number) { console.log(2222); var j = 0;//控制行列 var printNumber = 0;//当前输出字数 var fonts = this.fontSize...
来源: Laya_社区 发布时间: 20191103
...这里再贴一段我写的例子里面的代码,直观一点: private const stand:String = "STAND"; private function loadActionsComplete():void { //创建动画模板dizziness //Animation.createFrames(aniUrls("zy/" + stand + "000", 5), stand + "000");//这么写也不对 ...
来源: Laya_社区 发布时间: 20170821
...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
... 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
...所示。 (动图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
...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_示例 发布时间: 20250317
...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
...活状态,请问纯代码怎么实现场景创建激活,谢谢? 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
...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
...种开发语言、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_示例 发布时间: 20250317