大约有 645 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0080 秒)
Laya_社区(253) Laya2.0_文档(104) Laya3.0_api(98) laya_api(78) Laya2.0_api(77) Laya3.0_文档(32) Laya2.0_示例(2) Laya_示例(1)
...想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 hitTestPrior hitTestPrior: boolean = false Inherited from AnimationBase.hitTestPrior Defined in laya/display/Sprite.ts:266 指定鼠标事件检测是优...
来源: Laya3.0_api 发布时间: 20231102
...与相机的坐标根本没有变化的,您需要移动主角的话可以通过设置this.sp3Role.transform.position来移动,同样设置相机跟随也是如此来设置camera.transform.position。这样其他的怪物就不会移动了。 2、在场景中添加上百个3d模型的话,如果...
来源: Laya_社区 发布时间: 20220613
...call。Sprite anchorX : NumberX锚点,值为0-1,设置anchorX值最终通过pivotX值来改变节点轴心点。UIComponent anchorY : NumberY锚点,值为0-1,设置anchorY值最终通过pivotY值来改变节点轴心点。UIComponent autoSize : Boolean = false 指定是否自动计算宽...
来源: Laya2.0_api 发布时间: 20190513
...想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite bg : AutoBitmap 表示此对象包含的文本背景 AutoBitmap 组件实例。 TextInput bgColor : String 文本背景颜色,以字符串表...
来源: laya_api 发布时间: 20170929
...混合模式。 如果有3D与2D混合的需求,必须要把3D场景,通过摄像机的renderTarget转换为texture纹理。再把这个texture画到2D节点上。 使用示例为:https://layaair2.ldc2.layabox.com/demo2/?language=zh&category=3d&group=Advance&name=Scene2DPlayer3D...
来源: Laya_社区 发布时间: 20221130
...想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 hitTestPrior hitTestPrior: boolean = false Inherited from AnimationBase.hitTestPrior Defined in laya/display/Sprite.ts:266 指定鼠标事件检测是优...
来源: Laya3.0_api 发布时间: 20231102
...想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bottom : Number 从组件底边到其内容区域底边...
来源: laya_api 发布时间: 20170929
... 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
...,IDE中已经识别到了,但vscode报未定义,IDE F8编译时也不通过 代码: export default class Index extends Laya.Script { /* @prop {name: speed, tips: "速度", type: Number, default: 10} */ constructor() { super(); } ...
来源: Laya_社区 发布时间: 20191227
如何把加载好的二进制数据转成Texture? 通过Loader加载好文件,得到Byte,怎么创建Texture? 2017-05-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 如果你...
来源: Laya_社区 发布时间: 20170502