大约有 317 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0051 秒)
....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
..."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
...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
...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
...IDE继承自定义类要怎么写? 比如我有这样一个基类 export default class UIBase extends Laya.View{} 然后在编译界面按F9 添加UIbase到 场景类型里面,这样在创建新的场景的时候就会有UIBase可以继承,但生成的LayaMaxUI.ts文件会报错,请问下我...
来源: Laya_社区 发布时间: 20181208
...prite3D _createSceneNode _createSkinnedMeshSprite3D _createSprite3D _createdefaultMaterial applyPBRMetallicRoughness applyTransform calSkinnedSpriteLocalBounds getAccessorComponentsNum getAnimationRoot getAttributeNum getBufferwithAccessorIndex getTextureConstructParams getTextureFilterMode getTextu...
来源: Laya3.0_api 发布时间: 20231102
...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
...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
...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
...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