• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 712 项符合查询结果, 库内数据总量为 30,936 项。 (搜索耗时: 0.0074 秒)

231. getimagedata直接调用无法获取有效像素问题 [ 78%]

... 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

232. laya.display.FrameAnimation_API3.0 [ 78%]

...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

233. Tree属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 78%]

...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

234. laya.spine.SpineSkeleton_API3.0 [ 78%]

...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

235. laya.physics.BoxCollider_API3.0 [ 78%]

...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

236. laya.ui.Dialog_API3.0 [ 78%]

...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

237. dialog设置缩放问题 [ 78%]

...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

238. laya.html.HtmlImage_API3.0 [ 78%]

...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

239. 请问graphics.drawTexture(texture)中如何增加一个matrix,只显示图中的一个圆形区域 [ 78%]

...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

240. 粒子-粒子演示1 [ 78%]

...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