大约有 640 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0078 秒)
Laya3.0_api(295) Laya_社区(269) Laya2.0_文档(32) Laya3.0_文档(30) Laya2.0_示例(5) Laya2.0_api(5) laya_api(2) Laya_示例(2)
...面是好的,在谷歌下报错运行不了 报的是这个错 Image from origin 'file://' has been blocked from loading by Cross-Origin Resource Sharing policy: Invalid response. Origin 'null' is therefore not allowed access. 2016-08-31 0 2 分享 微博 QZONE 微信 xiaobear250 赞同来自: ...
来源: Laya_社区 发布时间: 20160722
...e(Context.CLIPBOARD_SERVICE); plus.android.invoke(clip,"setText","I'm copy from Native.js"); }在 ios 下,这样写: var UIPasteboard = plus.ios.importClass("UIPasteboard"); var generalPasteboard = UIPasteboard.generalPasteboard(); // 设置/获取文本内容: generalPasteboard.setValueforPaste...
来源: Laya_社区 发布时间: 20170531
...加如下代码: const { regClass } = Laya; import { RuntimeScriptBase } from "./RuntimeScript.generated"; @regClass() export class RuntimeScript extends RuntimeScriptBase { onAwake(): void { this.closeBtn.on(Laya.Event.CLICK, this, () => { this.close(); }); } } 1.3.3 关联场景 设置好弹...
来源: Laya3.0_文档 发布时间: 20251024
...脚本。示例代码如下: //引入自定义脚本TSDemo import TSDemo from "./TSDemo"; /** * TypeScript语言示例 */ export default class GameUI extends GameUIBase { /* ……省略若干代码 */ private addBox(): void { //创建盒型体 let box = new Laya.Sprite3D; let boxMesh = box.addCom...
来源: Laya3.0_文档 发布时间: 20251010
...表渲染所需的格式。 示例代码如下: import { ItemBoxBase } from "./ItemBox.generated"; const { regClass, property } = Laya; @regClass() export class Script extends ItemBoxBase { constructor() { super(); } get dataSource(): any { return super.dataSource; } set dataSource(value: any) { s...
来源: Laya3.0_文档 发布时间: 20251010
...相关的链接 提交 5 个回复 Laya_Aaron 赞同来自: import { ui } from "./../ui/layaMaxUI"; /** * 本示例采用非脚本的方式实现,而使用继承页面基类,实现页面逻辑。在IDE里面设置场景的Runtime属性即可和场景进行关联 * 相比脚本方式,继承式...
来源: Laya_社区 发布时间: 20181227
...到场景中,并用鼠标点击屏幕来切换动画 import { MainBase } from "./Main.generated"; import KeyBoardManager = Laya.InputManager; import Keyboard = Laya.Keyboard; const { regClass, property } = Laya; @regClass() export class Main extends MainBase { private _animator: Laya.Animator; pri...
来源: Laya3.0_文档 发布时间: 20251010
...of your Apple Developer account, as well as removal of all associated apps from the App Store. 2018-02-28 0 2 分享 微博 QZONE 微信 riven 赞同来自: 请问你们新的库什么时候能弄好,我们等着提交app store审核,很紧急呀 2018-03-01 0 1 分享 微博 QZONE 微信 kaix...
来源: Laya_社区 发布时间: 20180225
...lesTemp: Vector3 = new Vector3(); /// <summary> /// Current distance from camera to target. /// </summary> public CurrentDistance: number; /// <summary> /// Camera target angls. /// </summary> protected targetAngles: Vector3 = new Vector3(); /// <summary> /// Target dis...
来源: Laya_社区 发布时间: 20170714
...AE&type=p&spm=a220m.1000858.a2227oh.d100&xl=%BB%A8%D3%A1_2&from=.list.pc_1_suggest'; if(window.innerHeight>=1000)//自动排版 { this.StartLeft.top= this.StartLeft.top-100; this.StartLeft.bottom= this.StartLeft.bottom+100; this.StartRight.top= this.StartRight.top-100; th...
来源: Laya_社区 发布时间: 20180810