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

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

581. 【简单跑酷--JS版】---Lv.2 类之间的引用以及背景滚动实现 [ 42%]

...面是好的,在谷歌下报错运行不了   报的是这个错 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

582. 如何将一段文字放置到粘贴板 , 或者说点击一个按钮后复制copy一段文字? [ 42%]

...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

583. 弹窗视图组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 42%]

...加如下代码: 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

584. 3D物理系统 · LayaAir3.3 · 引擎文档 · LAYABOX [ 42%]

...脚本。示例代码如下: //引入自定义脚本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

585. 基础使用与构成 · LayaAir3.3 · 引擎文档 · LAYABOX [ 41%]

...表渲染所需的格式。 示例代码如下: 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

586. laya加载unity插件导出的场景 physics3D is not a function [ 41%]

...相关的链接 提交 5 个回复 Laya_Aaron 赞同来自: import { ui } from "./../ui/layaMaxUI"; /** * 本示例采用非脚本的方式实现,而使用继承页面基类,实现页面逻辑。在IDE里面设置场景的Runtime属性即可和场景进行关联 * 相比脚本方式,继承式...

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

587. 模型与动画的导入使用 · LayaAir3.3 · 引擎文档 · LAYABOX [ 41%]

...到场景中,并用鼠标点击屏幕来切换动画 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

588. 重要问题:关于苹果审核被拒 [ 41%]

...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

589. 3D中摄像机绕物体旋转该如何实现? [ 41%]

...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

590. 按钮失效,同UI里的一个图片超链接点击后再返回,出现按钮失效。 [ 41%]

...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