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

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

741. 内嵌模式创建scene,运行时报找不到json文件 [ 69%]

...ds Scene { public static uiView:any ={"type":"Scene","props":{"width":640,"height":1136},"compId":2,"child":[{"type":"Label","props":{"y":64,"x":214.5,"width":211,"text":"label","styleSkin":"comp/label.png","height":67},"compId":3}],"loadList":["comp/label.png"],"loadList3D":[]}; constructor(){ supe...

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

742. [LayaAir 2.0] 如何用代码为Spirte添加2d物理特性 [ 69%]

...sics.BoxCollider = this._boll1.addComponent(laya.physics.BoxCollider); box.height = 60; box.width = 28; //添加刚体 this._boll1.addComponent(Laya.RigidBody); //创建挡板 this.createPanel(); } private createPanel():void { let panel:Laya.Sprite = new Laya.Sprite(); panel.graphics.drawRect(0,100,...

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

743. SpineSkeleton 创建的骨骼动画,在置灰状态,不能完全灰化 [ 69%]

...方式有关; ABC • 2021-10-18 20:09 Laya.init(Browser.width, Browser.height, Laya.WebGL);采用WebGL初始化,骨骼动画就无法完全置灰; ABC • 2021-10-18 20:10 Laya.init(Browser.width, Browser.height)这种方式初始化,正常的 ABC • 2021-10-18 20:17 WebGL方式渲染导...

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

744. laya.ui.ScaleBox_API3.0 [ 69%]

...url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY bgColor blendMode bottom cacheAs centerX centerY components customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage dra...

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

745. laya.display.EffectAnimation_API3.0 [ 69%]

...apMode WRAP_PINGPONG WRAP_POSITIVE WRAP_REVERSE drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode cacheAs components count customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize effectClass effectData filters ...

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

746. 鼠标 MOUSE_DOWN Event 回来的信息不符合 [ 69%]

...a.loader.getRes(picturePath); picturePath.pivot(texture.width / 2, texture.height / 2); picture.x = Laya.stage.width / 2; picture.y = Laya.stage.height / 2; picture.scale(cardScaleValue, cardScaleValue, true); picture.on(Event.MOUSE_DOWN, this, onStartPicture(Picture); } function onStartDragPicture(...

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

747. laya.ui.Box_API3.0 [ 69%]

...url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY bgColor blendMode bottom cacheAs centerX centerY components customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage dra...

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

748. laya.ui.Tree_API3.0 [ 69%]

... 对象的显示位置。 tree.width = 200;//设置 tree 的宽度。 tree.height = 100;//设置 tree 的高度。 Laya.stage.addChild(tree);//将 tree 添加到显示列表。 } } } import laya.ui.Box; import laya.ui.Clip; import laya.ui.Label; class Item extends Box { public function Item() { this...

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

749. 这样写的代码,Tween动画里面只有alpha有效果,scalex和scaley没有变化,怎么回事啊? [ 69%]

... "#ff0000", 4); sprite.pivotX = sprite.width * 0.5; sprite.pivotY = sprite.height * 0.5; sprite.x = this.width * 0.5; sprite.y = this.height * 0.5; this.addChild(sprite);  Laya.Tween.to(sprite, {scaleX:1.5, scaleY:1.5, alpha:0}, 5000); 2018-07-08 添加评论 免费帖 --> 分享 微博 QZONE 微...

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

750. 其他引擎的Demo-Example_04 [ 69%]

...y = 1.0 + (Math.random() / 20), stars = [], w = Browser.width, h = Browser.height, slideX = w / 2, slideY = h / 2, speedInfo; class PIXI_Example_04 { constructor() { const WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler, Loader = Laya.Loader; // 不支持WebGL时自...

来源: Laya2.0_示例 发布时间: 20251209