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

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

91. laya.physics.BoxCollider [ 67%]

...lean[override] [read-only] 获取是否为单实例组件。 ColliderBase label : String标签ColliderBase owner : Node [只读]获取所属Node节点。 Component restitution : Number弹性系数,取值范围0-1,值越大,弹性越大,默认值为0ColliderBase rigidBody : RigidBody[只...

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

92. 微信浏览器,input输入完成后,游戏不能还原 [ 67%]

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

93. ToolTip鼠标悬停的使用 [ 67%]

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

94. laya.display.AnimationPlayerBase [ 67%]

...置。 Node addChildren(... args):void 批量增加子节点 Node  addLabel(label:String, index:int):void 增加一个帧标签到指定索引的帧上。当动画播放到此索引的帧时会派发Event.LABEL事件,派发事件是在完成当前帧画面更新之后。 AnimationPlayerBase  ...

来源: laya_api 发布时间: 20170929

95. 骨骼动画-Spine事件 [ 67%]

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

96. 为什么laya的Button渲染逻辑顺序是先渲染,再获取素材切片? [ 67%]

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

97. 在Unity中设置动画事件(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 67%]

...组件(脚本) 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

98. laya.display.AnimationBase [ 67%]

...ent):* 添加组件实例。 Node addInputChild(node:Node):NodeNode  addLabel(label:String, index:int):void 增加一个帧标签到指定索引的帧上。当动画播放到此索引的帧时会派发Event.LABEL事件,派发事件是在完成当前帧画面更新之后。 AnimationBase callLa...

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

99. 龙骨skeleton鼠标点击区域的设置 [ 67%]

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

100. 斜角透视的感觉怎么弄出来呀?? [ 66%]

...加载,就只占一点内存,然后也没有感觉游戏运行不畅 label 和text 有啥区别 感觉差不多? 游戏3D整体重力感觉很飘! 相对布局只能继承Laya.View吗?我感觉Scene太重了,只需要Laya.Sprite有什么办法? laya2d的粒子,毫无办法,感觉...

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