大约有 2,837 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0090 秒)
Laya_社区(1676) Laya3.0_api(668) Laya2.0_文档(133) Laya2.0_api(128) laya_api(122) Laya3.0_文档(83) Laya2.0_示例(16) Laya_示例(11)
...nH = Laya.Stage.ALIGN_CENTER; Laya.loader.load([{url:"res/atlas/comp.json",type:Laya.Loader.ATLAS}],Laya.Handler.create(this,this.loadComp)); } private loadComp():void{ var parent:ui.ParentViewUI = new ui.ParentViewUI(); Laya.stage.addChild(parent); //当注释掉设置rotaion的代码则没有问...
来源: Laya_社区 发布时间: 20170829
...Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Radio }) public radio: Laya.Radio; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.radio.skin = "atlas/comp/radio.png"; //皮肤 this.rad...
来源: Laya3.0_文档 发布时间: 20251010
...ow.webkitURL || window; var img = new Image(); var svg = new Blob([data], {type: 'image/svg+xml'}); var url = DOMURL.createObjectURL(svg); img.src = url; img.style.position ="absolute"; img.style.zIndex = 99999 document.body.appendChild(img); ``` 怎么运行呢?打开谷歌浏览器,随便打...
来源: Laya2.0_文档 发布时间: 20210715
...小游戏如何使用ttf字体? 使用3D时候,Property 'getComponentByType' does not exist on type 'Node'. LayaAirIDE下如何使用mask? 微信小游戏:HTMLDivElement的使用 有什么容器能够实现当子元素达到显示上限后自动滚屏,使得新添加的元素始终保持...
来源: Laya_社区 发布时间: 20240305
...配LayaAir版本的PureMVC框架 使用3D时候,Property 'getComponentByType' does not exist on type 'Node'. 分享:打地鼠 AS、JS、TS版本 Demo! LayaAirIDE下如何使用mask? 动画混合无效(版本2.6) 求助关于TiledMap的版本问题 版本不匹配! 全局 tsc (2.2.2) != V...
来源: Laya_社区 发布时间: 20160912
...ttps://layaair2.ldc2.layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=Core&category=Utils&class=laya.utils.Tween) `Ease`类的API中对缓动函数进行了基础的介绍,点击链接可直接查看API:[https://layaair.ldc.layabox.com/api/?category=Core&class=laya.utils.Ease](https://...
来源: Laya2.0_文档 发布时间: 20210715
...ttps://layaair2.ldc2.layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=2D&category=UI&class=laya.ui.HScrollBar)。 HScrollBar 组件的图像资源示例:  (图1)  (图2)  (图...
来源: Laya2.0_文档 发布时间: 20210714
...dler; Laya.loader.load([{ url: ['res/bitmapFont/test.fnt'], type: Laya.Loader.FONT }], Handler.create(this, () => { console.log('bitmapFont loaded'); this.onFontLoaded(); }), Handler.create(this, (progress) => {...
来源: Laya_社区 发布时间: 20190221
TypeScript在LayaAir 1.X和2.X中对待module和namespace的异同,求2.x使用自定义namespace的方法(module已经找到方法) 我发现1.x版本把每个ts编译成为一个js。并且namespace和module暴露在全局空间里,不用import就可以namespace.XXX和module.xxx引用。 ...
来源: Laya_社区 发布时间: 20181026
...itFlag __init__ changeVertexDefine shaderValueInit Legend Class Class with type parameter Constructor Property Method Accessor Object literal Variable Function Type alias Inherited property Inherited method Inherited accessor Enumeration Interface Static method
来源: Laya3.0_api 发布时间: 20231115