大约有 976 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0063 秒)
Laya_社区(508) Laya2.0_示例(94) Laya_示例(89) Laya2.0_文档(88) Laya3.0_api(63) Laya2.0_api(58) laya_api(54) Laya3.0_文档(22)
...OMElementInArea设置Video的位置,对齐的位置和refence重合 Laya.stage.on(Event.RESIZE, this, Utils.fitDOMElementInArea, [videoElement, reference, 0, 0, reference.width, reference.height]); } 2018-03-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...
来源: Laya_社区 发布时间: 20180313
...aSource destroyed direction disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray group height hideFlags hitArea index interval is3D isPlaying left mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY right ro...
来源: Laya3.0_api 发布时间: 20231115
...port Handler = laya.utils.Handler; import Loader = laya.net.Loader; import Stage = laya.display.Stage; class TestUI extends ui.test.testwhUI { constructor() { super(); this.mypan.vScrollBarSkin = ""; Laya.stage.on(Laya.Event.RESIZE, this, this.fitDOMElements); this.mypan.vScrollBar.on(Laya.Event.CHA...
来源: Laya_社区 发布时间: 20170720
...读]是否已经销毁。对象销毁后不能再使用。Node displayedInStage : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以...
来源: Laya2.0_api 发布时间: 20190513
...txt.color = "#ff0000"; txt.fontSize = 30; txt.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); Laya.stage.addChild(txt); Laya.Tween.to(txt, { scaleX: 2, scaleY: 2 }, 5000); 5秒钟把文本放大2倍,感觉是 fontSize在...
来源: Laya_社区 发布时间: 20200410
... var login = (function(_super){ function login(){ login.super(this); var stageWidth = Laya.stage.width; var stageHeight = Laya.stage.height; console.log(stageWidth*0.05+":"+stageHeight); var path = [ ["moveTo",stageWidth*0.05,0], ["actTo",stageWidth*0.8,0,stageWidth*0.8,stageHeight*0.05,10], ["actTo...
来源: Laya_社区 发布时间: 20170806
...ebGL); //设置背景颜色 Laya.stage.bgColor = "#ffcccc"; //设置舞台CLICK,该CLICK作为截屏的开关,点击舞台,对舞台对应的canvas区域进行截屏 Laya.stage.on(Event.CLICK,this,onClick); ...
来源: Laya_社区 发布时间: 20170424
...中设置舞台背景透明无效 Laya.Config.isAlpha = true; Laya.stage.bgColor = "none"; 附件 : --> 2024-03-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 Laya_XS 赞同来自: layabox Laya.Conf...
来源: Laya_社区 发布时间: 20240304
...x 完毕 示例:public function Main() { Laya.init(1240,800,WebGL); Laya.stage.bgColor="#EEFFCC"; Laya.loader.load([{url:"res/atlas/comp.json",type:Loader.ATLAS},{url:"bg2.png"}],Handler.create(this,onCom)); } private function onCom():void { var img:Image=new Image(); img.skin="bg2.png"; panel=new...
来源: Laya_社区 发布时间: 20161103
...nventional/layaScene.ls", Laya.Handler.create(this, function(scene) { Laya.stage.addChild(scene); //获取cube对象 var cube = scene.getChildByName("Cube"); //添加组件(脚本) var _script = cube.addComponent(SceneScript); //label用于显示 var _lab = new Laya.Label(); _lab.text = "test"; _lab...
来源: Laya2.0_文档 发布时间: 20210715