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

大约有 7,299 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0127 秒)

371. 关于新手引导 [ 93%]

...速器不支持   destination-out    package view { import laya.display.Sprite; import laya.events.Event; import laya.resource.Context; import laya.utils.Browser; import laya.utils.HitArea; public class KouTu extends Sprite { private var box:Sprite; private var interactionArea:Sprite; private var...

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

372. 在一个sprite3D上添加子物体camera ,也能够看到其他的物体。。。请问如何在摄像机中只看到一个想看到的sprite3D对象呢? [ 93%]

在一个sprite3D上添加子物体camera ,也能够看到其他的物体。。。请问如何在摄像机中只看到一个想看到的sprite3D对象呢? 2017-08-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回...

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

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

374. laya.ui.WXOpenDataViewer_API3.0 [ 93%]

... = false Inherited from AnimationBase._ownGraphics Defined in laya/display/Sprite.ts:245 _scene _scene: Node Inherited from Node._scene Defined in laya/display/Node.ts:631 _skinBaseUrl _skinBaseUrl: string Inherited from AnimationBase._skinBaseUrl Defined in laya/display/Sprite.ts:269 如果节点...

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

375. laya.display.Text_API3.0 [ 93%]

...aya.stage.addChild(text);//将 text 添加到显示列表。 } } Hierarchy Sprite Text Input Index Constructors constructor Properties _extra _onPostLayout _ownGraphics _parseEscapeChars _scene _skinBaseUrl _url autoSize hitTestPrior ignoreLang mouseThrough name tag ELLIPSIS HIDDEN RightToLeft SCROL...

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

376. 向Sprite添加复杂的富文本 [ 93%]

Sprite添加复杂的富文本 因为HTMLDivElement支持的html标签和元素很少,我想将一个复杂html格式的字符串添加到一个sprite的上面显示,有方法可以解决吗?我的项目是用的AS,能通过嵌入JS实现吗? 2017-07-10 添加评论 免费帖 --> 分...

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

377. 设置滤镜(TypeScript-LayaAir基础篇(TS)-位图) [ 93%]

...lter:Laya.ColorFilter = new Laya.ColorFilter(colorMatrix); ``` 最后通过Spriter的filters属性将颜色滤镜效果叠加到位图中。下面我们创建一个Main.ts类,编写代码如下: ```typescript module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import ColorFilte...

来源: Laya2.0_文档 发布时间: 20210715

378. Laya.Sprite3D如何设置位置 [ 93%]

Laya.Sprite3D如何设置位置 var layaMonkey: Laya.Sprite3D = Laya.Sprite3D.load("res/skinModel/LayaMonkey/LayaMonkey.lh"); this.scene.addChild(layaMonkey); 简单的加载了官方的事例资源,猴子是加载出来了,但是使用了下面两种方法都没有成功改变它的位置。...

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

379. sprite不能设置点击区域 [ 93%]

sprite不能设置点击区域 var sp = new Laya.Sprite(); sp.graphics.drawPie(0, 0, 300, 0, 90, "#00ffff"); sp.on(Laya.Event.CLICK, this, this.aa) sp.mouseEnabled = true; // 设置点击区域没有作用 var hitArea = new Laya.HitArea(); hitArea.unhit.drawPie(0, 0, 150, 0, 90, "#00ffff"); sp.hitA...

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

380. 屏幕适配-缩放-No Scale [ 93%]

...种开发语言、LayaAirIDE让项目开发更高效。(function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var rect; (function() { Laya.init(550, 400); Laya.stage.scaleMode = Stage.SCALE_NOSCALE; Laya.stage.bgColor = "#232628"; createCantralRect(); })(); function createCantralRect() { re...

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