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

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

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

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

192. 输入文本组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 73%]

...,此方法只执行一次 */ onAwake(): void { this.txtin.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 this.txtin.size(500, 60); //大小 this.txtin.pivot(this.txtin.width/2, this.txtin.height/2); //轴心点 this.txtin.font = "宋体"; //字体 this.txtin.fontSize = 50...

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

193. laya.ui.Slider_API3.0 [ 73%]

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

194. [LayaAirIDE3]getTextWidth报null is not an object (evaluating \'i.width\') [ 73%]

[LayaAirIDE3]getTextWidth报null is not an object (evaluating \'i.width\') 尊敬的开发者大大: 在微信小程序(项目用的引擎版本是3.0.11)后台的JS报错日志里面有一种和getTextWidth相关(每天都有数千人报错),其中一类如图: 我全局搜了这个...

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

195. laya.ui.TextInput_API3.0 [ 73%]

...性 y 的值,用于控制 textInput 对象的显示位置。 textInput.width = 300;//设置 textInput 的宽度。 textInput.height = 200;//设置 textInput 的高度。 Laya.stage.addChild(textInput);//将 textInput 添加到显示列表。 } } } example Laya.init(640, 800);//设置游戏画布...

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

196. 缓动动画(TypeScript-LayaAir基础篇(TS)-动画基础) [ 73%]

...运算符,相当于/2 用>>效率更高) var offsetX:number = Laya.stage.width - w >> 1; //显示的字符串 var demoString:string = "LayaBox"; var letterText:Laya.Text; //根据"LayaBox"字符串长度创建单个字符,并对每个单独字符使用缓动动画 for(var i:number = 0,len:number...

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

197. laya.ui.TextArea_API3.0 [ 73%]

...属性 y 的值,用于控制 textArea 对象的显示位置。 textArea.width = 300;//设置 textArea 的宽度。 textArea.height = 200;//设置 textArea 的高度。 Laya.stage.addChild(textArea);//将 textArea 添加到显示列表。 } } } example Laya.init(640, 800);//设置游戏画布宽高...

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

198. laya.ui.View_API3.0 [ 73%]

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

199. 这是图文混排谷歌浏览器查看正常打包后的APP文字消失表情变大 [ 73%]

....valign = "middle"; // div.style.fontFamily = "Microsoft YaHei"; div.style.width = 200; div.style.color = "#black"; for(let i=0; i<FaceView.faceArray.length; i++) { txt = txt.replace(FaceView.repl,'<img src="res/face/face'+i+'.png" style="width:36px;height:36px;position:relative;top:30px;">...

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

200. 这是图文混排谷歌浏览器查看正常打包后的APP文字消失表情变大 [ 73%]

....valign = "middle"; // div.style.fontFamily = "Microsoft YaHei"; div.style.width = 200; div.style.color = "#000000"; for(let i=0; i<FaceView.faceArray.length; i++) { txt = txt.replace(FaceView.repl,'<img src="res/ChatFace/face'+i+'.png" style="width:28px;height:28px;"></img>'); } div....

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