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

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

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

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

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

872. 音频-播放演示 [ 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_示例 发布时间: 20250220

873. 物理引擎-牛顿摆 [ 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_示例 发布时间: 20250220

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

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

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

877. 区块地图-滚动地图 [ 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_示例 发布时间: 20250220

878. 在开启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

879. 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_示例 发布时间: 20250220

880. 鼠标交互-双指旋转(多点触控) [ 54%]

...nt = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Interaction_Rotate { private sp: Sprite; private preRadian: number = 0; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = S...

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