大约有 3,517 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0076 秒)
Laya_社区(2610) Laya3.0_api(265) Laya2.0_文档(227) Laya2.0_api(113) laya_api(98) Laya_示例(83) Laya3.0_文档(76) Laya2.0_示例(45)
...(this, () => { this.store.isDemo = true; Laya.Scene.open("scene/Home.scene") }), new Laya.Handler(this, (value: number) => { this._page = this.page ...
来源: Laya_社区 发布时间: 20201102
...,{y:100},3,Laya .Ease.backOut,new Handler(this,this.onEaseComplete),1,null,true); function onEaseComplete(){ console.log("ease complete"); Laya.stage.addChild(letterText); } ``` 以上的代码主要存在三个问题: 1. from()中的duration和delay都是以毫秒为单位,所以3,1想表示3秒,1...
来源: Laya_社区 发布时间: 20180620
... 1.使用layaide2.1打开工程 2.修改Label, this.tipLbll.italic = true; this.tipLbll.bold = false; this.tipLbll.text = "测试"; 3.然后使用LayaNative生成安卓项目, 进游戏会发现没显示文字 如果将this.tipLbll.text = " 测试";//前面加四个空格 那么游戏会...
来源: Laya_社区 发布时间: 20190716
...getBounds函数获取;也可手动设置宽高;还可以设置autoSize=true,然后再获取宽高。Sprite的宽高一般用于进行碰撞检测和排版,并不影响显示图像大小,如果需要更改显示图像大小,请使用 scaleX , scaleY , scale。 Sprite 默认不...
来源: Laya_社区 发布时间: 20180205
...r: AudioBuffer, playbackRate: AudioParam, detune: AudioParam, loop: true, loopStart: 0, …} completeHandler:null context:AudioContext {baseLatency: 0.01, destination: AudioDestinationNode, currentTime: 3.7706666666666666, sampleRate: 48000, listener: AudioListener, …} gain:Ga...
来源: Laya_社区 发布时间: 20171006
...ameters size: number format: TextureFormat Default value mipmap: boolean = true Default value sRGB: boolean = false Returns TextureCube Properties destoryedImmediately destoryedImmediately: boolean Inherited from Resource.destoryedImmediately Defined in laya/resource/Resource.ts:104 是否在引用...
来源: Laya3.0_api 发布时间: 20231102
...果发现子纹理被替换成一个动画序列,animationKey会被设为true 即animationKey为true,就使用TileAniSprite来做显示,把动画序列根据时间画到TileAniSprite上 Public Properties PropertyDefined By animationTotalTime : Number = 0 动画播放的总时间 TileTexSet ...
来源: laya_api 发布时间: 20170929
...提:把所有可能与3D物体重叠的UI元素的 mouseEnable 设置为 true ,接收鼠标点击 onAwake() { this.isClick = false; //对舞台stage添加点击事件(这里由于有scene的缘故,点击空白处返回的对象是scene) Laya.stage.on(Laya.Event.CLICK,this,function(e) { if(...
来源: Laya_社区 发布时间: 20210122
...数来控制是否关闭其他场景 是否关闭其他场景,默认为true(可选),【注意】被关闭的场景,如果没有设置autoDestroyAtRemoved=true,则资源可能不能被回收,需要自己手动回收
来源: Laya_社区 发布时间: 20190510
...r event = document.createEvent(specialEvents[type] || 'Events'), bubbles = true if (props) for (var name in props) (name == 'bubbles') ? (bubbles = !!props[name]) : (event[name] = props[name]) event.initEvent(type, bubbles, true) // 这行就是那个报错的那行 如何解决呢 ...
来源: Laya_社区 发布时间: 20170301