大约有 365 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0161 秒)
Laya_社区(154) Laya3.0_api(61) Laya2.0_文档(49) Laya2.0_示例(38) Laya_示例(36) Laya3.0_文档(25) laya_api(1) Laya2.0_api(1)
...port1:Laya.Viewport = camera1.normalizedViewport; //修改参数 viewport1.width = 0.2; //重新赋值是视口 camera1.normalizedViewport = viewport1; var viewport2:Laya.Viewport = camera2.normalizedViewport; viewport2.width = 0.8; viewport2.x = 0.2; camera2.normalizedViewport = viewport2; }); ``` ...
来源: Laya2.0_文档 发布时间: 20210715
...I_Button extends Laya.Script { private COLUMNS: number = 2; private BUTTON_WIDTH: number = 147; private BUTTON_HEIGHT: number = 165 / 3; private HORIZONTAL_SPACING: number = 200; private VERTICAL_SPACING: number = 100; private xOffset: number; private yOffset: number; private skins: any[]; //组件...
来源: Laya3.0_文档 发布时间: 20251010
...X 、竖向分割数量 clipY , 或横向分割每个切片的宽度 clipWidth 、竖向分割每个切片的高度 clipHeight , 从左向右,从上到下,分割组合为一个切片动画。 Image和Clip组件是唯一支持异步加载的两个组件,比如clip.skin = "abc/xxx.png",其...
来源: Laya3.0_api 发布时间: 20231115
...edMap/orthogonal-test-movelayer.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), Handler.create(this,onLoadedMap)); } private var sp:Sprite; private function onLoadedMap():void { var mapLayer:MapLayer=tiledMap.getLayerByIndex(2); sp=new Sprite(); sp.graphics.drawRect(0,0,100,100...
来源: Laya_社区 发布时间: 20170525
... delayShow() { let canvas = Laya.stage.drawToCanvas(Laya.stage.width, Laya.stage.height, 0, 0); let str = canvas.toBase64('image/png', 1); let img = document.createElement('img'); img.style.position = 'absolute'; img.style.top =...
来源: Laya_社区 发布时间: 20230419
...al mouseThrough name showLabel tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy allowClickBack alpha anchorX anchorY bar blendMode bottom cacheAs centerX centerY components customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawC...
来源: Laya3.0_api 发布时间: 20231115
...al mouseThrough name showLabel tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy allowClickBack alpha anchorX anchorY bar blendMode bottom cacheAs centerX centerY components customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawC...
来源: Laya3.0_api 发布时间: 20231115
...Enable selectHandler tag totalPage drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY array bgColor blendMode bottom cacheAs cells centerX centerY components content customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInSt...
来源: Laya3.0_api 发布时间: 20231115
... viewport1:Viewport = camera1.normalizedViewport; //修改参数 viewport1.width = 0.2; //重新赋值是视口 camera1.normalizedViewport = viewport1; var viewport2:Viewport = camera2.normalizedViewport; viewport2.width = 0.8; viewport2.x = 0.2; camera2.normalizedViewport = viewport2; }); ``` ![](i...
来源: Laya2.0_文档 发布时间: 20210715
...hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY bgColor blendMode borderColor bottom cacheAs centerX centerY components customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage draw...
来源: Laya3.0_api 发布时间: 20231115