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

大约有 257 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0131 秒)

181. laya.display.Sprite [ 57%]

...ad-only] 对象的显示高度(以像素为单位)。 Sprite  displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Sprite  drawCallOptimize : BooleanSprite  filters : Array滤镜集合。可以设置多个滤镜组合。Sprite  globalRotation : Number[read-on...

来源: Laya2.0_api 发布时间: 20190513

182. Button属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 57%]

...加到舞台上 Laya.stage.addChild(btn); //设置Button相关属性 btn.width = 100; btn.height = 50; btn.pos(100,100); btn.label = "按钮"; } } new GameMain(); ``` 上述代码运行效果如动图2所示: ![动图2](img/2.gif) (动图2) **Tips:** Button 组件的属性接口介绍请参考 [Bu...

来源: Laya2.0_文档 发布时间: 20210714

183. 【紧急】laya2.0的loadImage方法为什么不触发complete? [ 56%]

...多次调用,只会显示一个图片(1.0会显示多个图片),x,y,width,height参数取消。</p>          * @param url       图片地址。          * @param complete  (可选)加载完成回调。          * @return  返回精灵对象本身。...

来源: Laya_社区 发布时间: 20181010

184. LayaNative端使用.ttf字体 [ 56%]

...哈哈哈哈哈哈哈哈哈哈哈哈哈!"; Laya.stage.addChild(text); text.width=100; text.height=100; } } } 2016-12-19 0 6 分享 微博 QZONE 微信 皮 赞同来自: Browser.window.conch这个是未定义的,不会执行Browser.window.conch.setFontFaceFromBuffer("hu",arr);这句话。怎么回...

来源: Laya_社区 发布时间: 20161219

185. 2D性能优化 · LayaAir3.4 · 引擎文档 · LAYABOX [ 55%]

.../monkey2.png",0,0,0,0,Laya.Handler.create(this,function() { console.log(sp.width,sp.height); })); Laya.stage.addChild(sp); loadImage在加载完成的回调函数触发之后才可以正确获取宽高。 直接调用size设置: Laya.loader.load("res/apes/monkey2.png",Laya.Handler.create(this,func...

来源: Laya3.0_文档 发布时间: 20251010

186. LayaAir和原生DOM交互(ActionScript-2D进阶篇(AS3)-扩展模块) [ 55%]

...ser.document.createElement("div"); qrcode= new Browser.window.QRCode(div,{ width : 100, height : 100 }); var url:String ="http://layabox.com/"; qrcode.makeCode(url); Laya.stage.once("click",this,clickHandler); qrcodeSp = new Sprite(); Laya.stage.addChild(qrcodeSp); } private function clickHandler():...

来源: Laya2.0_文档 发布时间: 20210715

187. laya.ui.DialogManager_API3.0 [ 55%]

...hrough name popupEffectHandler tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode cacheAs components customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY g...

来源: Laya3.0_api 发布时间: 20231115

188. laya.display.AnimationBase_API3.0 [ 55%]

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

189. laya.html.dom.HTMLIframeElement_API3.0 [ 55%]

... activeInHierarchy alpha blendMode cacheAs components contextHeight contextWidth customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea href innerHTML is3D mask mouseEnabled mouseX m...

来源: Laya3.0_api 发布时间: 20231102

190. laya.display.FrameAnimation_API3.0 [ 55%]

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