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

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

171. 版本号:2.0.2 beta, 在sound文件夹下音乐播放不了,放入到res文件夹下可播放 [ 60%]

....Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export default class Test_11_Sound {  //声明一个信息文本 private txtInfo: Text;  constructor() { this.setup(); }  private setup(): void { var gap: number = 10;  //创建一个Sprite充当音效播放按钮 var soundButto...

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

172. Spine渲染器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 60%]

..."spine4.1/role.json"; // 设置Spine动画数据源 this.spine.skinName = "default"; // 设置皮肤名称 this.spine.play("att", true); // 播放名称为"att"的攻击动画,true表示循环播放 this.btn.on(Laya.Event.CLICK, this, this.changeAttachment); //监听点击事件,触发切换武...

来源: Laya3.0_文档 发布时间: 20251128

173. laya.resource.NativeRenderTexture2D_API3.0 [ 59%]

...G defuv flipyuv Accessors anisoLevel baseMipmapLevel compareMode cpuMemory defaultTexture depthStencilFormat destroyed dimension filterMode format gammaCorrection gammaSpace generateMipmap gpuMemory height id isCube maxMipmapLevel mipmap mipmapCount obsolute offsetX offsetY referenceCount samples so...

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

174. laya.d3.core.Camera_API3.0 [ 59%]

...ned in laya/d3/core/Camera.ts:659 创建一个 Camera 实例。 Parameters Default value aspectRatio: number = 0 横纵比。 Default value nearPlane: number = 0.3 近裁面。 Default value farPlane: number = 1000 远裁面。 Returns Camera Properties _cacheDepth _cacheDepth: boolean Defined in la...

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

175. laya2.0 IDE继承自定义类要怎么写? [ 59%]

...IDE继承自定义类要怎么写? 比如我有这样一个基类 export default class UIBase extends Laya.View{} 然后在编译界面按F9 添加UIbase到 场景类型里面,这样在创建新的场景的时候就会有UIBase可以继承,但生成的LayaMaxUI.ts文件会报错,请问下我...

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

176. laya.gltf.glTFUtils_API3.0 [ 59%]

...prite3D _createSceneNode _createSkinnedMeshSprite3D _createSprite3D _createdefaultMaterial applyPBRMetallicRoughness applyTransform calSkinnedSpriteLocalBounds getAccessorComponentsNum getAnimationRoot getAttributeNum getBufferwithAccessorIndex getTextureConstructParams getTextureFilterMode getTextu...

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

177. [LayaAir2] 在使用videoDom创建视频元素后iPad跟iPhone中位置不一样 [ 59%]

...a.HtmlVideo播放视频 * @ author:xs * @ data: 2024-03-05 16:20 */ export default class VideoDom { htmlvideo:Laya.HtmlVideo; constructor() { Laya.stage.on(Laya.Event.CLICK,this,this.onClick); } onClick(){ this.initVideo(); } initVideo() { this.htmlvideo = new Laya.HtmlVideo(); this.htmlvideo.setSou...

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

178. laya.device.geolocation.Geolocation_API3.0 [ 58%]

...ameters onSuccess: Handler 带有唯一Position参数的回调处理器。 Default value onError: Handler = null 可选的。带有错误信息的回调处理器。错误代码为Geolocation.PERMISSION_DENIED、Geolocation.POSITION_UNAVAILABLE和Geolocation.TIMEOUT之一。 Returns void Static watch...

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

179. laya.display.Scene_API3.0 [ 58%]

...verrides Sprite.constructor Defined in laya/display/Scene.ts:36 Parameters Default value createChildren: boolean = true Returns Scene Properties Optional _extra _extra: INodeExtra Inherited from Node._extra Defined in laya/display/Node.ts:56 _ownGraphics _ownGraphics: boolean = false Inherited from ...

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

180. laya.d3.webxr.core.WebXRCamera_API3.0 [ 58%]

...ned in laya/d3/core/Camera.ts:659 创建一个 Camera 实例。 Parameters Default value aspectRatio: number = 0 横纵比。 Default value nearPlane: number = 0.3 近裁面。 Default value farPlane: number = 1000 远裁面。 Returns WebXRCamera Properties _cacheDepth _cacheDepth: boolean Inherite...

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