大约有 712 项符合查询结果, 库内数据总量为 30,936 项。 (搜索耗时: 0.0074 秒)
Laya_社区(311) Laya3.0_api(93) Laya2.0_api(74) laya_api(62) Laya_示例(55) Laya2.0_示例(55) Laya2.0_文档(42) Laya3.0_文档(20)
... texture的 getpixels 得到有效数据。__proto.getPixels=function(x,y,width,height){ if (Render.isWebGL){ return RunDriver.getTexturePixels(this,x,y,width,height); }else { Browser.canvas.size(width,height); Browser.canvas.clear(); Browser.context.drawTexture(this,-x,-y,this.width,this.height,0,0...
来源: Laya_社区 发布时间: 20171201
...INGPONG 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 globalScaleX globalSc...
来源: Laya3.0_api 发布时间: 20231115
...emRender = Item; tree.xml = xml; tree.size(300, 300); tree.x = (Laya.stage.width - tree.width) / 2; tree.y = (Laya.stage.height - tree.height) / 2; Laya.stage.addChild(tree); } } } import Box = Laya.Box; import Clip = Laya.Clip; // 此类对应的json对象: // {"child": [{"type": "Clip", "props":...
来源: Laya2.0_文档 发布时间: 20210714
...gh name tag PAUSED PLAYING STOPPED drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY animationName blendMode cacheAs components currentTime customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize externalSkins filters gl...
来源: Laya3.0_api 发布时间: 20231115
...ensity 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 constructor new BoxCollider(): BoxCollider I...
来源: Laya3.0_api 发布时间: 20231115
...bg:Image = new Image("resource/ui/bg.png"); bg.sizeGrid = "40,10,5,10"; bg.width = 150; bg.height = 250; addChild(bg); var image:Image = new Image("resource/ui/image.png"); addChild(image); var button:Button = new Button("resource/ui/btn_close.png"); button.name = Dialog.CLOSE;//设置button的name...
来源: Laya3.0_api 发布时间: 20231115
...og.scale(dialog.scaleH, dialog.scaleH); dialog.x = Math.round(((Laya.stage.width - dialog.width * dialog.scaleH) >> 1) + dialog.pivotX); dialog.y = Math.round(((Laya.stage.height - dialog.height * dialog.scaleH) >> 1) + dialog.pivotY); 希望官方能优化一下!!感谢 2018-11...
来源: Laya_社区 发布时间: 20181119
...ect Index Constructors constructor Properties obj Accessors element height width Methods create destroy pos release Constructors constructor new HtmlImage(): HtmlImage Defined in laya/html/HtmlImage.ts:12 Returns HtmlImage Properties Readonly obj obj: Sprite Defined in laya/html/HtmlImage.ts:9 Acces...
来源: Laya3.0_api 发布时间: 20231115
...ild(miniMap1); } } miniMap.src=url; function circle_image(img, oldImgWidth, oldImgHeight) { var width, height, canvas, contex, circle; if (img.width > img.height) { width = img.height; height = img.height; } else { width = img.width; height = img.width; } canvas = document.createElement('ca...
来源: Laya_社区 发布时间: 20181125
...t = Laya.Stat; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); Laya.loader.load(partPath...
来源: Laya2.0_示例 发布时间: 20250313