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

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

561. laya.html.dom.HTMLIframeElement_API3.0 [ 52%]

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

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

562. 相机texture内模型移动的问题 [ 51%]

...与相机的坐标根本没有变化的,您需要移动主角的话可以通过设置this.sp3Role.transform.position来移动,同样设置相机跟随也是如此来设置camera.transform.position。这样其他的怪物就不会移动了。 2、在场景中添加上百个3d模型的话,如果...

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

563. laya.ui.Button [ 51%]

...call。Sprite anchorX : NumberX锚点,值为0-1,设置anchorX值最终通过pivotX值来改变节点轴心点。UIComponent anchorY : NumberY锚点,值为0-1,设置anchorY值最终通过pivotY值来改变节点轴心点。UIComponent autoSize : Boolean = false 指定是否自动计算宽...

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

564. laya.ui.TextArea [ 51%]

...想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite bg : AutoBitmap 表示此对象包含的文本背景 AutoBitmap 组件实例。 TextInput bgColor : String 文本背景颜色,以字符串表...

来源: laya_api 发布时间: 20170929

565. 2.13版本3D场景遮挡UI的BUG [ 51%]

...混合模式。 如果有3D与2D混合的需求,必须要把3D场景,通过摄像机的renderTarget转换为texture纹理。再把这个texture画到2D节点上。   使用示例为:https://layaair2.ldc2.layabox.com/demo2/?language=zh&category=3d&group=Advance&name=Scene2DPlayer3D...

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

566. laya.html.dom.HTMLDivElement_API3.0 [ 51%]

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

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

567. laya.ui.Component [ 51%]

...想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite  bottom : Number 从组件底边到其内容区域底边...

来源: laya_api 发布时间: 20170929

568. 加载-销毁Texture使用的图片资源 [ 51%]

... GameMain.prototype.onMouseUp = function (evt) { if (this.isDestroyed) { //通过设置 visible=true ,来触发渲染,然后引擎会自动恢复资源 this.spBg.visible = true; this.aniFly.visible = true; this.isDestroyed = false; this.txt.text = "销毁"; } else { //通过设置 visible=false ...

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

569. prop 识别不到 [ 51%]

...,IDE中已经识别到了,但vscode报未定义,IDE F8编译时也不通过   代码: export default class Index extends Laya.Script {     /* @prop {name: speed, tips: "速度", type: Number, default: 10} */      constructor() {         super();     } ...

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

570. 如何把加载好的二进制数据转成Texture? [ 51%]

如何把加载好的二进制数据转成Texture? 通过Loader加载好文件,得到Byte,怎么创建Texture? 2017-05-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 如果你...

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