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

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

361. 类似古文显示方式脚本,文字垂直显示,可以控制显示速度出现打字效果等 [ 94%]

...", type:number, default:5}*/ public horizontalSpace: number = 5; private sprite: Laya.Sprite; constructor() { super(); this.sprite = new Laya.Sprite(); } drawText(x: number, y: number, w: number, h: number) { console.log(2222); var j = 0;//控制行列 var printNumber = 0;//当前输出字数 var fo...

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

362. sprite绕轴心点旋转问题 [ 94%]

sprite绕轴心点旋转问题 要实现功能:小车绕一个点旋转,然后画出旋转轨迹,还有就是小车在旋转时实时的画出小车和旋转点的连线。 思路:小车sprite,用来划线的sprite,设置小车的轴心点pivot,然后rotation改变旋转小车,根据...

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

363. 屏幕适配-缩放-Extract Fit [ 94%]

...Color = "#232628"; this.createCantralRect(); } createCantralRect() { const Sprite = Laya.Sprite; this.rect = new Sprite(); this.rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(this.rect); this.updateRectPos(); } updateRectPos() { this.rect.x = Laya.stage.width / 2; this.rec...

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

364. 屏幕适配-缩放-Show All [ 94%]

...Color = "#232628"; this.createCantralRect(); } createCantralRect() { const Sprite = Laya.Sprite; this.rect = new Sprite(); this.rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(this.rect); this.updateRectPos(); } updateRectPos() { this.rect.x = Laya.stage.width / 2; this.rec...

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

365. 有sprite 的坐标变更后触发的事件吗 [ 94%]

sprite 的坐标变更后触发的事件吗 有sprite 的坐标变更后触发的事件吗 2017-02-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_XS 赞同来自: sprite的坐标发生改变不会触...

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

366. 滤镜-模糊滤镜 [ 94%]

...; } setup() { this.createApe(); this.applayFilter(); } createApe() { const Sprite = Laya.Sprite; this.ape = new Sprite(); Laya.stage.addChild(this.ape); let texture = Laya.loader.getRes(apePath); this.ape.graphics.drawTexture(texture); this.ape.x = (Laya.stage.width - texture.width) / 2; this.ape.y ...

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

367. 重复使用Laya.Sprite3D.load加载同一个lh类型的资源,发现第二次加载到的资源是无效的 [ 94%]

LayaAir引擎 重复使用Laya.Sprite3D.load加载同一个lh类型的资源,发现第二次加载到的资源是无效的 Laya.Sprite3D.load(path, Laya.Handler.create(this, this.loadCompleted));   public loadCompleted(sp:Laya.Sprite3D):void {     this._loaded = true;          ...

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

368. 灯光-聚光 [ 94%]

...spotLight.range = 6.0; spotLight.spot = 32; var grid = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/staticModel/grid/plane.lh")); var layaMonkey = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); layaMonkey.once(Laya.Event.HIERARCHY_LOADED, th...

来源: Laya_示例 发布时间: 20260303

369. laya.utils.Utils [ 93%]

...后的函数。 Utils  fitDOMElementInArea(dom:Object, coordinateSpace:Sprite, x:Number, y:Number, width:Number, height:Number):void[static] 使DOM元素使用舞台内的某块区域内。 Utils  getGID():int[static] 获取一个全局唯一ID。Utils  getGlobalPosAndScale(sprite:Sprite):Rect...

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

370. 碰撞检测 和 sprite问题【js】 [ 93%]

碰撞检测 和 sprite问题【js】 看文档没找到怎么编辑模式使用碰撞检测功能 是只能使用代码写碰撞检测范围吗 。 sprite 2d 的 在编辑模式下不能贴图片素材吗 只能代码赋予吗 那做2d游戏 使用image 做主角 要比 sprite方便的多啊 新...

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