大约有 589 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0039 秒)
Laya_社区(199) Laya2.0_示例(114) Laya3.0_文档(94) Laya2.0_api(91) laya_api(48) Laya_示例(24) Laya2.0_文档(16) Laya3.0_api(3)
...专门设置一个脚本,用于初始化和配置性能分析工具。 const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property(Number) public projectId: number = 23; private perfMain: LayaPerf = new LayaPerf(); onEnable(): void { this.perfMain.init(t...
来源: Laya3.0_文档 发布时间: 20251010
...种开发语言、LayaAirIDE让项目开发更高效。class Text_HTML { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = ...
来源: Laya2.0_示例 发布时间: 20260106
...发更高效。let map, marker, mapDiv, infoText; class InputDevice_Map { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler, Geolocation = Laya.Geolocation; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width,...
来源: Laya2.0_示例 发布时间: 20260106
...handsomecat-1/lib/arm64/liblayaair.so (laya::JCFileResManager::getRes(char const*, int, int)+148) [arm64-v8a] 2 #01 pc 00000000005c5db8 /data/app/com.mylafe.game.handsomecat-1/lib/arm64/liblayaair.so (laya::JCAudioWavPlayer::playAudio(laya::JCAudioInterface*, std::string const&, bool)+184) [arm...
来源: Laya_社区 发布时间: 20191227
...。let aniConfPath = "res/fighter/fighter.atlas"; class Animation_Altas { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stag...
来源: Laya2.0_示例 发布时间: 20260106
.../lib/arm64/liblayaair.so (laya::JSTextMemoryCanvas::getTextBitmapData(char const*, int, int, int)+80) [arm64-v8a] 3 #02 pc 00000000001fa374 /data/app/com.gemclash.towerdefense.gp-nL3Za3jIt5tpqzSue73YEQ==/lib/arm64/liblayaair.so (laya::imp_JS2CFunc<v8::Local<v8::Value> (laya::JSTextMemoryCa...
来源: Laya_社区 发布时间: 20201020
...F", "#00FFFF").pos(290, 150); } function createLabel(color, strokeColor) { const STROKE_WIDTH = 4; var label = new Label(); label.font = "Microsoft YaHei"; label.text = "SAMPLE DEMO"; label.fontSize = 30; label.color = color; if (strokeColor) { label.stroke = STROKE_WIDTH; label.strokeColor = stroke...
来源: Laya_示例 发布时间: 20260106
... 我们也可以通过代码来创建一个变色效果,示例如下: const { regClass, property } = Laya; @regClass() export class Script extends Laya.Script { //获取节点 @property(Laya.Sprite) public sp: Laya.Sprite; onAwake(): void { //创建后期处理实例 this.sp.postProcess = new La...
来源: Laya3.0_文档 发布时间: 20251010
...Classes | Index | Frames No Frames GeolocationProperties | Methods | Constants Packagelaya.device.geolocationClasspublic class GeolocationInheritanceGeolocation Object 使用前可用supported查看浏览器支持。 Public Properties PropertyDefined By enableHighAccuracy : Boolean = fals...
来源: laya_api 发布时间: 20170929
...Classes | Index | Frames No Frames GeolocationProperties | Methods | Constants Packagelaya.device.geolocationClasspublic class GeolocationInheritanceGeolocation Object 使用前可用supported查看浏览器支持。 Public Properties PropertyDefined By enableHighAccuracy : Boolean = fals...
来源: Laya2.0_api 发布时间: 20190513