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

大约有 1,229 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0053 秒)

861. 使用2.1.1.1引擎创建的ts小游戏升级2.3.0版本之后无法进入游戏 [ 55%]

...2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? 2.1.1.1引擎微信小游戏掉帧严重 问题状态 最新活动: 2019-11-15 17:52 浏览: 1922 关注: 2 人 选 • 2019-11-15 17:50 可是我已经是用新版的IDE升级的引擎库啊,而且也重新编...

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

862. LayaAir3D UnityPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) [ 54%]

... Setting   ---    其他设置                  Cover Original Export Files                          导出时覆盖原始导出文件                  Customize Export Root Directory Name     自定义导出文件夹名称                  Automatically ...

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

863. 音频-播放演示 [ 54%]

... = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Sound_SimpleDemo { //声明一个信息文本 private txtInfo: Text; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stag...

来源: Laya_示例 发布时间: 20241001

864. 物理引擎-牛顿摆 [ 54%]

...er = Laya.Browser; import WebGL = Laya.WebGL; import Render = Laya.Render; export class Physics_NewtonsCradle { private stageWidth: number = 800; private stageHeight: number = 600; private Matter: any = Browser.window.Matter; private LayaRender: any = Browser.window.LayaRender; private mouseConstrai...

来源: Laya_示例 发布时间: 20241001

865. laya.resource.Resource_API3.0 [ 54%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/resource/Resource" Resource Class Resource Resource 资源存取类。 Hierarchy EventDispatcher Resource BaseTexture BaseShader TextTexture HTMLCanvas BitmapFont Prefab Material Mesh Texture Atlas...

来源: Laya3.0_api 发布时间: 20231115

866. laya.physics.Physics_API3.0 [ 54%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/physics/Physics" Physics Class Physics 2D物理引擎,使用Box2d驱动 Hierarchy EventDispatcher Physics Index Constructors constructor Properties box2d positionIterations velocityIterations wor...

来源: Laya3.0_api 发布时间: 20231115

867. prop 识别不到 [ 54%]

...到了,但vscode报未定义,IDE F8编译时也不通过   代码: export default class Index extends Laya.Script {     /* @prop {name: speed, tips: "速度", type: Number, default: 10} */      constructor() {         super();     }      onAwake() {...

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

868. 区块地图-滚动地图 [ 54%]

...andler = Laya.Handler; import Stat = Laya.Stat; import WebGL = Laya.WebGL; export class TiledMap_SimpleDemo { private tiledMap: TiledMap; private mLastMouseX: number = 0; private mLastMouseY: number = 0; private mX: number = 0; private mY: number = 0; constructor() { // 不支持WebGL时自动切换...

来源: Laya_示例 发布时间: 20241001

869. 在开启webgl模式下,每次运行texture类的getPixels方法内存都会增加 [ 54%]

... = Laya.Sprite import Texture = Laya.Texture import Handler = Laya.Handler export class MaskDemo { private Res: string; private img: Laya.Image; constructor() { //Laya.init(400, 640, Laya.WebGL); //设置舞台背景色 Laya.stage.bgColor = "#ffffff" Laya.Stat.show() //资源路径 this.Res = "test....

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

870. 2D物理-桥 [ 54%]

... import { WebGL } from "laya/webgl/WebGL"; import { Main } from "../Main"; export class Physics_Physics_Bridge { Main: typeof Main = null; private ecount = 30; private label: Label; constructor(maincls: typeof Main) { this.Main = maincls; Laya.Config.isAntialias = true; Laya.init(1200, 700, WebGL); ...

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