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

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

1471. 鼠标交互-鼠标交互 [ 46%]

...s.appendText("\n鼠标滚轮滚动"); break; } } private appendText(value: String): void { this.txt.text += value; this.txt.scrollY = this.txt.maxScrollY; } /**添加提示文本*/ private createLogger(): void { this.txt = new Text(); this.txt.overflow = Text.SCROLL; this.txt.text = "请把鼠标移...

来源: Laya2.0_示例 发布时间: 20260303

1472. laya.d3.core.material.BlinnPhongMaterial [ 46%]

...Material  disableFog():void 禁用雾化。 BlinnPhongMaterial load(url:String, complete:Handler):void[static] 加载材质。 BaseMaterial setShaderName(name:String):void 设置使用Shader名字。 BaseMaterialProtected Methods Show Inherited Protected Methods Show Inherited Protected Methods...

来源: Laya2.0_api 发布时间: 20190513

1473. 打开新窗口被拦截,同样的方法用egret和其他h5工程都没有问题 [ 46%]

...a里面的点击事件 declare function goToNewWindow(url):void; { var url:string = "http://www.baidu.com"; goToNewWindow(url); } 这是index.html的js方法 <script> function goToNewWindow(payurl) { var a = $("<a href='"+payurl+"' target='_blank'>click</a>...

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

1474. 用Geolocation获取地理位置信息(TypeScript-LayaAir基础篇(TS)-硬件设备相关) [ 45%]

...获取位置失败后触发 function onError(err:Error):void { var errType:String; if (err.code = Geolocation.PERMISSION_DENIED) errType = "Permission Denied"; else if (err.code == Geolocation.POSITION_UNAVAILABLE) errType = "Position Unavailable"; else if (err.code == Geolocation.TIMEOUT) errType =...

来源: Laya2.0_文档 发布时间: 20210715

1475. 用Geolocation获取地理位置信息(JavaScript-LayaAir基础篇(JS)-硬件设备相关) [ 45%]

...获取位置失败后触发 function onError(err:Error):void { var errType:String; if (err.code = Geolocation.PERMISSION_DENIED) errType = "Permission Denied"; else if (err.code == Geolocation.POSITION_UNAVAILABLE) errType = "Position Unavailable"; else if (err.code == Geolocation.TIMEOUT) errType =...

来源: Laya2.0_文档 发布时间: 20210715

1476. ToolTip鼠标悬停的使用 [ 45%]

...utton Two" _tip.showDislayTip(_testTip); } private function showTips2(name:String):void { _testTip.my_label.text="我是:" name; _tip.showDislayTip(_testTip);//自定义鼠标悬浮提示请用showDislayTip } } }显示效果: 简单悬浮提示   自定义悬浮提示 自定义携带参数悬浮...

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

1477. Laya.SoundManager.playSound()问题,任务不是当前标签停止播放,当任务回到当前标签页,不能恢复播放 [ 45%]

...声音进行控制,以及获取声音信息。 */ static playSound(url: string, loops?: number, soundClass?: any, startTime?: number) { return new Promise((resolve, reject) => { let soundChannel: Laya.SoundChannel = Laya.SoundManager.playSound(url, loops, Laya.Handler.create(this, () => { re...

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

1478. 2.x引擎项目升级说明 · LayaAir3.4 · 引擎文档 · LAYABOX [ 45%]

...需要暴露,上面就都需要加上@property()。 @property( { type : String } ) public text: string = ""; constructor() { super(); } } 5、Runtime的使用差异 3.0的场景与2.0完全不是一个概念, 3.0的runtime只能在场景上的2D根节点Scene2D或预制体的根节点上设置...

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

1479. 用Geolocation获取地理位置信息(ActionScript-LayaAir基础篇(AS3)-硬件设备相关) [ 45%]

...获取位置失败后触发 function onError(err:Error):void { var errType:String; if (err.code = Geolocation.PERMISSION_DENIED) errType = "Permission Denied"; else if (err.code == Geolocation.POSITION_UNAVAILABLE) errType = "Position Unavailable"; else if (err.code == Geolocation.TIMEOUT) errType =...

来源: Laya2.0_文档 发布时间: 20210714

1480. 关于Laya.loader.load和getRes的问题 [ 45%]

...  加载结束回调。根据url类型不同分为2种情况:1. url为String类型,也就是单个资源地址,如果加载成功,则回调参数值为加载完成的资源,否则为null;2. url为数组类型,指定了一组要加载的资源,如果全部加载成功,则回调参...

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