大约有 2,831 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0120 秒)
Laya_社区(1671) Laya3.0_api(668) Laya2.0_文档(133) Laya2.0_api(128) laya_api(122) Laya3.0_文档(82) Laya2.0_示例(16) Laya_示例(11)
...10-13 11:26 解决了吗? qq408896436 • 2017-10-16 11:53 @Moeb:<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <style type="text/css"> html,body{overflow: hidden;} *{margin: 0; padding:...
来源: Laya_社区 发布时间: 20170928
...wScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Sprite }) public sprite1: Laya.Sprite; @property({ type: Laya.Sprite }) public sprite2: Laya.Sprite; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此...
来源: 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_文档 发布时间: 20210714
...呢?比如position或者scale 使用3D时候,Property 'getComponentByType' does not exist on type 'Node'. LayaAirIDE下如何使用mask? 微信小游戏:HTMLDivElement的使用 微信小游戏如何使用ttf字体? 关于使用matterjs物理引擎鼠标问题 请问2.0的版本开始,我...
来源: Laya_社区 发布时间: 20160713
...ttps://layaair2.ldc2.layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=2D&category=UI&class=laya.ui.HSlider)。 ## 2、通过LayaAirIDE创建HSlider组件 ### 1.1 创建HSlider 点击选择资源面板里的 HSlider 组件资源,拖放到页面编辑区,即可添加 HSlider 组件...
来源: Laya2.0_文档 发布时间: 20210715
...呢?比如position或者scale 使用3D时候,Property 'getComponentByType' does not exist on type 'Node'. 微信小游戏:HTMLDivElement的使用 LayaAirIDE下如何使用mask? 微信小游戏如何使用ttf字体? 2d拖尾效果的实现方案 求高人分享使用protobuff框架的游戏...
来源: Laya_社区 发布时间: 20220531
...Laya; @regClass() export class SpotLight extends Laya.Script { @property({ type: Laya.Sprite }) private spotLight: Laya.Sprite; //组件被启用后执行,例如节点被添加到舞台后 onEnable(): void { this.setSpotLight(); } // 创建聚光灯 setSpotLight(): void { this.spotLight.pos(336, 2...
来源: Laya3.0_文档 发布时间: 20251010
...tion onMouse(e:Event):void { //存储over状态的显示对象的name if(e.type==Event.MOUSE_OVER) { arr.push(e.target.name); } //遍历arr处于over状态的显示对象,如果该显示对象已经触发了out事件,则将其从数组移除 else { for(var i:int=0;i<arr.length;i++) { if(arr[i...
来源: Laya_社区 发布时间: 20170502
...加载引擎需要的资源 Laya.loader.load([{url: "res/atlas/comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); } private function onLoaded():void { //实例UI界面 var testView:TestView = new TestView(); Laya.stage.addChild(testView); __JS__("if(window.conch)") { dd=__JS__("windo...
来源: Laya_社区 发布时间: 20160918
..., 'releasemode=normal', 'exportUICode=false', 'exportRes=false' ] type: Windows_NT appPath: C:\Users\XXX\AppData\Roaming\npm\node_modules\layacmd\ProjectExportT ools\ openProject: D:\s3mh5_client\laya\.laya loadProject: D:\s3mh5_client\laya\.laya assetsPath: D:\s3mh5_client\laya\assets Page...
来源: Laya_社区 发布时间: 20171028