大约有 667 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0106 秒)
Laya_社区(280) Laya3.0_api(93) Laya2.0_api(73) laya_api(62) Laya_示例(54) Laya2.0_示例(54) Laya2.0_文档(33) Laya3.0_文档(18)
...runInEditor scriptPath Accessors awaked density destroyed enabled friction height hideFlags id isSensor restitution width x y Methods _initialize _setOwner destroy hasHideFlag onAdded onAwake onDestroy onDisable onEnable onLateUpdate onPostRender onPreRender onReset onStart onUpdate Constructors con...
来源: Laya3.0_api 发布时间: 20231115
...WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; createApe(); })(); function createApe() { ape = new Sprite(); a...
来源: Laya_示例 发布时间: 20260303
...rIDE让项目开发更高效。let SPACING = 100, INPUT_WIDTH = 300, INPUT_HEIGHT = 50, Y_OFFSET = 50, skins; class UI_Input { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Lay...
来源: Laya2.0_示例 发布时间: 20260303
...位置 tree.x = (Laya.stage.width - tree.width) / 2; tree.y = (Laya.stage.height - tree.height) / 2; //加载到舞台 Laya.stage.addChild(tree); } } } import laya.ui.Box; import laya.ui.Clip; import laya.ui.Label; // IDE中生成的此类对应的json对象,在此作为参考,对应树形结构...
来源: Laya2.0_文档 发布时间: 20210715
...url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY bgColor blendMode bottom cacheAs centerX centerY components content customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInS...
来源: Laya3.0_api 发布时间: 20231115
...Texture,例如 onEnable(): void { const { x, y, width, height } = this.box Laya.loader.load('comp/image.png').then(v=>{ const texture = this.box.drawToTexture(width, height, x, y) as Laya.Texture this.snapshot.texture = texture ...
来源: Laya_社区 发布时间: 20240425
...s.contentT.y; this.contentDiv.width = this.contentT.width; this.contentDiv.height = this.contentT.height; this.contentDiv.style.width = this.contentT.width; this.contentDiv.style.height = this.contentT.height; this.contentDiv.style.fontSize = this.contentT.fontSize; this.contentDiv.style.color = thi...
来源: Laya_社区 发布时间: 20191028
...WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.Stat.show(); this.cacheText(); } cacheText() { c...
来源: Laya2.0_示例 发布时间: 20260303
...apMode WRAP_PINGPONG WRAP_POSITIVE WRAP_REVERSE drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode cacheAs components count customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalSc...
来源: Laya3.0_api 发布时间: 20231115
...mFactory2; var mLabelSprite; (function(){ Laya.init(Browser.width, Browser.height,WebGL); Laya.stage.bgColor = "#ffffff"; Stat.show(); mLabelSprite = new Sprite(); startFun(); })(); function startFun() { mAniPath = "../../res/spine/spineRes6/alien.sk"; mFactory = new Templet(); mFactory.on(Event.COM...
来源: Laya_示例 发布时间: 20260303