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

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

961. laya.filters.Filter_API3.0 [ 86%]

...Filter 实例。 Returns Filter Methods Static _filter _filter(this: RenderSprite, sprite: Sprite, context: Context, x: number, y: number): void Defined in laya/filters/Filter.ts:38 Parameters this: RenderSprite sprite: Sprite context: Context x: number y: number Returns void Globals "laya/filters/F...

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

962. TiledMap显示不完整 [ 86%]

...到stage是可以显示全部tiledmap的内容;但如果用tiledmap的mapSprite()获取tiledmap的sprite,再addChild到另外一个sprite下,这个sprite不能显示完整tiledmap的sprite的内容。 附件 : --> 2019-06-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

963. laya.d3.core.SkinnedMeshSprite3D [ 86%]

...tionAll Packages | All Classes | Index | Frames No Frames SkinnedMeshSprite3DProperties | Methods | Events | Constants Packagelaya.d3.coreClasspublic class SkinnedMeshSprite3DInheritanceSkinnedMeshSprite3D RenderableSprite3D Sprite3D Node EventDispatcher Object SkinnedMeshSprite3D 类用...

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

964. [LayaAir3]动态添加2d物理引擎shape无效 [ 86%]

[LayaAir3]动态添加2d物理引擎shape无效   let sp = new Laya.Sprite();   var rig = new Laya.RigidBody();   //rig.type = "dynamic";   rig.bullet = true;   let shape = new Laya.CircleShape2D();   shape.x = -10;   shape.y = -10;   shape.restitution = 1;   shape.friction = 1;   shape.r...

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

965. 圆形的头像怎么实现? [ 86%]

...过scale了 但是效果是这样的 :     代码 : var point = new Sprite(); this.addChild(point); point.graphics.drawCircle(88, 86, 40, 'transparent');   var tx = new Sprite(); tx.loadImage(PATH + 'tx.jpg'); tx.scale(0.3,0.3); this.addChild(tx); tx.mask = point; 2017-09-28 0 2 分享 微博...

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

966. 把摄像机添加到一个物体上,然后绕着这个物体旋转 [ 86%]

...好摄像机的默认位置角度使其朝向物体就行了 var map: Laya.Sprite3D = Laya.loader.getRes("cj/cj.lh"); this.scene.addChild(map); var cjd0: Laya.Sprite3D = new Laya.Sprite3D(); cjd0.addChild(this.camera); map.addChild(cjd0); cjd0.addComponent(CameraMoveScript); 可是,这样添加的...

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

967. 分享:避免鼠标快速移动,mouseout和mouseover触发顺序不一致的问题! [ 86%]

...mouseover触发顺序不一致的问题! package { import laya.display.Sprite; import laya.events.Event; import laya.utils.Mouse; /* 2或多个显示对象 鼠标移到显示对象上,呈现手型光标,移出呈现箭头,当鼠标快速在2个显示对象之间切换,会出现鼠标位于...

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

968. this.bitmap.activeResource is not a function. [ 86%]

...; rankTexture.bitmap.alwaysChange = true;//小程序使用,非常费 let sprite = new Laya.Sprite(); sprite.graphics.drawTexture(rankTexture, 0, 0, rankTexture.width, rankTexture.height); this._content.addChild(sprite); sprite.pos(40, 190);报:this.bitmap activeResource is not a function 2019-09...

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

969. [BUG]大量调用 graphics.drawCircle 导致错误 [ 86%]

...ics.drawCircle 导致错误 代码: for (var i = 0; i < 500; i++) { var Sprite = new Laya.Sprite(); Sprite.graphics.drawCircle(Math.random() * 500, Math.random() * 800, 50, "#666666", "#555555", 5); Laya.stage.addChild(Sprite) } 其他: Laya.init(Laya.Browser.width, Laya.Browser.height, Laya.WebG...

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

970. laya.map.TileTexSet [ 86%]

...列,animationKey会被设为true 即animationKey为true,就使用TileAniSprite来做显示,把动画序列根据时间画到TileAniSprite上 Public Properties PropertyDefined By  animationTotalTime : Number = 0 动画播放的总时间 TileTexSet  durationTimeArray : Array = null 当前动...

来源: laya_api 发布时间: 20170929