大约有 228 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0043 秒)
Laya_社区(93) Laya3.0_api(41) Laya2.0_文档(29) Laya2.0_api(18) laya_api(17) Laya2.0_示例(12) Laya3.0_文档(9) Laya_示例(9)
...lean[override] [read-only] 获取是否为单实例组件。 ColliderBase label : String标签ColliderBase owner : Node [只读]获取所属Node节点。 Component restitution : Number弹性系数,取值范围0-1,值越大,弹性越大,默认值为0ColliderBase rigidBody : RigidBody[只...
来源: Laya2.0_api 发布时间: 20190513
... inputText.fontSize = 20; scene.addChild(inputText); var tip1 = new Laya.Label(); tip1.bgColor = "#666666"; tip1.color = "#ffffff"; tip1.fontSize = 20; tip1.x = Laya.stage.width - 500; tip1.y = Laya.stage.height * 0.8; tip1.text = "问题,输入完成后,键盘收起了,游戏界面没有还...
来源: Laya_社区 发布时间: 20200223
...提示 var button:Button=new Button(); Laya.stage.addChild(button); button.label="button One"; button.pos(100,100); button.skin="comp/button.png"; button.toolTip="我是button One!"; //自定义鼠标提示 var button2:Button=new Button(); Laya.stage.addChild(button2); button2.label="button Two"; bu...
来源: Laya_社区 发布时间: 20161115
...置。 Node addChildren(... args):void 批量增加子节点 Node addLabel(label:String, index:int):void 增加一个帧标签到指定索引的帧上。当动画播放到此索引的帧时会派发Event.LABEL事件,派发事件是在完成当前帧画面更新之后。 AnimationPlayerBase ...
来源: laya_api 发布时间: 20170929
...mCurrIndex = 0; var mArmature; var mCurrSkinIndex = 0; var mFactory2; var mLabelSprite; (function(){ Laya.init(Browser.width, Browser.height,WebGL); Laya.stage.bgColor = "#ffffff"; Stat.show(); mLabelSprite = new Sprite(); startFun(); })(); function startFun() { mAniPath = "../../res/spine/spineRes6...
来源: Laya_示例 发布时间: 20251130
...s._sources && (this._bitmap.source=this._sources[index]); if (this.label){ this._text.color=this._labelColors[index]; if (this._strokeColors)this._text.strokeColor=this._strokeColors[index]; } } __proto.changeClips=function(){ var img=Loader.getRes(this._skin); if (!img){ console.log("lose s...
来源: Laya_社区 发布时间: 20170516
...组件(脚本) var _script:SceneScript = cube.addComponent(SceneScript); //label用于显示 var _lab:Label = new Label(); _lab.text = "test"; _lab.height = 100; _lab.width = 100; _lab.fontSize = 40; _lab.pos(200,200); Laya.stage.addChild(_lab); //给脚本的加强表现用方法赋值 _script.show...
来源: Laya2.0_文档 发布时间: 20210715
...ent):* 添加组件实例。 Node addInputChild(node:Node):NodeNode addLabel(label:String, index:int):void 增加一个帧标签到指定索引的帧上。当动画播放到此索引的帧时会派发Event.LABEL事件,派发事件是在完成当前帧画面更新之后。 AnimationBase callLa...
来源: Laya2.0_api 发布时间: 20190513
...tureSpr.addChild(this.mArmature); this.mArmature.on(Laya.Event.LABEL, this, this.onEvent); this.mArmature.on(Laya.Event.STOPPED, this, this.completeHandler); this.play(); let bound: Laya.Rectangle = this.mArmature.getBounds(); this.mArmatur...
来源: Laya_社区 发布时间: 20161122
...加载,就只占一点内存,然后也没有感觉游戏运行不畅 label 和text 有啥区别 感觉差不多? 游戏3D整体重力感觉很飘! 相对布局只能继承Laya.View吗?我感觉Scene太重了,只需要Laya.Sprite有什么办法? laya2d的粒子,毫无办法,感觉...
来源: Laya_社区 发布时间: 20160815