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

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

791. laya.ui.UIUtils_API3.0 [ 72%]

...eters target: Sprite 目标显示对象。 Default value isGray: boolean = true 如果值true,则添加灰度滤镜,否则移除灰度滤镜。 Returns void Static toColor toColor(color: number): string Defined in laya/ui/UIUtils.ts:37 转换uint类型颜色值为字符型颜色值。 Parameters...

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

792. laya.d3.core.MeshSprite3D_API3.0 [ 72%]

...s:310 inheritdoc override Parameters Default value destroyChild: boolean = true Returns void destroyChildren destroyChildren(): void Inherited from Node.destroyChildren Defined in laya/display/Node.ts:211 销毁所有子对象,不销毁自己本身。 Returns void event event(type: string, data?: ...

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

793. 为啥我在批量removeself 会报错卡死 [ 72%]

... []; if(selectImg != null) { selectImg.removeSelf(); } this.mouseEnabled = true; if(this.visible == false) { this.visible = true; } super.removeSelf(); if(itemCountTx != null) { itemCountTx.removeSelf(); } return this; }   2017-11-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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

794. layabox有播放图片内指定小图帧的API吗? [ 72%]

...box 有类似这样的API吗? this.animations.add('down', [0, 1, 2], 10, true); this.animations.add('left', [12, 13, 14], 10, true); 就是一个角色的上下左右动作都放一张图片里面了 2017-12-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...

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

795. 物理触发器(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 72%]

...lider); //标记为触发器,取消物理反馈 staticCollider.isTrigger = true; ``` 有刚体的物体设置触发器的方法如下: ```typescript //创建一个球体 var sphere = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createSphere(radius))); //给球体添加刚体 var rigidBo...

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

796. laya.spine.SpineSkeleton_API3.0 [ 72%]

...变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 hitTestPrior hitTestPrior: boolean = false Inherited from Text.hitTestPrior Defined in laya/display/Sprite.ts:273 指定鼠标事件检测...

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

797. 开启全屏后标题栏变成了黑边遮挡住了UI [ 72%]

...启全屏后标题栏变成了黑边遮挡住了UI Laya3D.init(1920,1080,true); Laya.stage.fullScreenEnabled = true; Laya.stage.screenMode = Stage.SCREEN_HORIZONTAL; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.alignV = Stage.ALIGN_MIDDLE; 2017-12-12 添加评论 免费帖 --> 分享 微博 QZ...

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

798. 计时器-间隔循环 [ 72%]

... = new Text(); t.text = text; t.fontSize = 30; t.color = "white"; t.bold = true; t.pivot(t.width / 2, t.height / 2); t.pos(x, y); Laya.stage.addChild(t); return t; } function animateTimeBased() { rotateTimeBasedText.rotation += 1; } function animateFrameRateBased() { rotateFrameRateBasedText.rotatio...

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

799. laya.html.dom.HTMLDivElement_API3.0 [ 72%]

...个css文件来当style使用,比如: style支持的属性如下: italic:true|false; 是否是斜体 bold:true|false; 是否是粗体 letter-spacing:10px; 字间距 font-family:宋体; 字体 font-size:20px; 字体大小 font-weight:bold:none; 字体是否是粗体,功能同bold color:#ff0000; ...

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

800. laya.d3.core.SkinnedMeshSprite3D_API3.0 [ 72%]

...s:126 inheritdoc override Parameters Default value destroyChild: boolean = true Returns void destroyChildren destroyChildren(): void Inherited from Node.destroyChildren Defined in laya/display/Node.ts:211 销毁所有子对象,不销毁自己本身。 Returns void event event(type: string, data?: ...

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