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

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

141. laya.ui.ProgressBar_API3.0 [ 79%]

... progressBar.value = 0.3;//设置 progressBar 的进度值。 progressBar.width = 200;//设置 progressBar 的宽度。 progressBar.height = 50;//设置 progressBar 的高度。 progressBar.sizeGrid = "5,10,5,10";//设置 progressBar 的网格信息。 progressBar.changeHandler = new Handler(this, o...

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

142. IFlash的扩展功能有哪些呢? [ 79%]

...链接 提交 1 个回复 cuixueying 赞同来自: (1)Iflash.setSize(width:int,height:int); 设置浏览器舞台的宽高。该值一般同步SWF(width="width",height="height") IFlash.setSize (600,600);//设置舞台宽600,高600; (2)IFlash. setBgcolor(value:String); 设...

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

143. 屏幕适配的缩放模式详解(ActionScript-2D基础篇(AS3)-屏幕适配) [ 79%]

...幕宽高`375*667`。LayaAir引擎可以通过laya.utils.Browser.clientWidth和laya.utils.Browser.clientHeight来获取屏幕的宽与高。 **6、物理宽高:** ​ 关于设备屏幕的物理宽高,我们需要先了解像素密度的概念。在PC电脑上,通常一个像素位置上就...

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

144. 解决fitDOMElementInArea在ios下不能正常显示 [ 79%]

...显示     Utils.fitDOMElementInArea=function(dom,coordinateSpace,x,y,width,height){         if (!dom._fitLayaAirInitialized){             dom._fitLayaAirInitialized=true;             dom.style.transformOrigin=dom.style.webKittransformOrigin="left top"; 修改...

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

145. laya.display.Scene_API3.0 [ 79%]

...Through name tag drawtocanvCtx unDestroyedScenes Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode bottom cacheAs centerX centerY components customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation glob...

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

146. align=center的文本框,文字内容超出宽度时居中布局无效 [ 79%]

...居中布局无效 一个文本,设置align=center,并且设置了宽度值width 但是发现一个问题,当这个文本较长,里面文本的宽度超出了文本框的width的时候,就不会居中了,实际效果看上去是左对齐。 一定要在给设置width的时候,考虑最长...

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

147. laya.ani.bone.Skeleton_API3.0 [ 79%]

...hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY aniMode animationName blendMode cacheAs components customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globa...

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

148. HTML文本 · LayaAir3.0文档 · LAYABOX [ 79%]

...中设置字体、颜色不同3.3 获取html文本的实际宽高(contextWidth、contextHeight)3.4 设置文本的水平居中对齐(align需要和width配合使用)3.5 实现超链接3.6 实现html页面跳转3.7 HtmlDivElement设置行间距,leading属性,注意,必须设置valign=’...

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

149. laya.ui.Image_API3.0 [ 79%]

...置。 bg.sizeGrid = "40,10,5,10";//设置 bg 对象的网格信息。 bg.width = 150;//设置 bg 对象的宽度。 bg.height = 250;//设置 bg 对象的高度。 Laya.stage.addChild(bg);//将此 bg 对象添加到显示列表。 var image:Image = new Image("resource/ui/image.png");//创建一个 I...

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

150. laya.resource.TextureCube_API3.0 [ 79%]

...Memory height id maxMipmapLevel mipmap mipmapCount obsolute referenceCount width wrapModeU wrapModeV wrapModeW blackTexture cpuMemory errorTexture gpuMemory grayTexture whiteTexture Methods _addReference _clearReference _removeReference _setCPUMemory _setCreateURL _setGPUMemory destroy event gpuComp...

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