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

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

2581. laya.d3.graphics.MeshInstanceGeometry_API3.0 [ 45%]

...ilable ts Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/graphics/MeshInstanceGeometry" MeshInstanceGeometry Class MeshInstanceGeometry Hierarchy GeometryElement MeshInstanceGeometry Index Constructors constructor Properties _geometryElementOBj Access...

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

2582. laya.d3.core.pixelline.PixelLineFilter_API3.0 [ 45%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/core/pixelLine/PixelLineFilter" PixelLineFilter Class PixelLineFilter PixelLineFilter 类用于线过滤器。 Hierarchy GeometryElement PixelLineFilter Index Constructors constructor Properties...

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

2583. ProtocolBuffer通信 · LayaAir3.4 · 引擎文档 · LAYABOX [ 45%]

...uf from "./libs/protobuf/protobuf"; const { regClass } = Laya; @regClass() export class ProtobufDemo extends Laya.Script { onEnable() { console.log("Game start"); } } 2.2 Protobuf示例脚本 引入了protobuf模块就可以直接在项目中使用了,这里我们写了一个简单的示例DEMO,...

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

2584. AS翻译成JS的时候能不能自动进行类型转换啊?不然每个地方都要手动在AS进行手动添加强制转换 [ 45%]

...2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? Texture图片能否进行翻转? IDE通过.ui自动生成的ui代码报错 为什么给Sprite容器添加点击事件没反应 3d 添加灯光 模型变的黑呼呼的 很多黑面 JS 是没有自动补全提示...

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

2585. 文本-字符限制 [ 45%]

...ext = Laya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Text_Restrict { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(550, 300, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.S...

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

2586. 加载TiledMap 不显示 [ 45%]

...ctangle; import Handler = Laya.Handler; import WebGL = Laya.WebGL;  export class TiledMap_IsometricWorld {     private tiledMap: TiledMap;     private layer: MapLayer;     private sprite: Sprite;      constructor ()     {         // 不支持WebGL时自...

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

2587. 版本不匹配! 全局 tsc (2.2.2) != VS Code 的语言服务(2.1.5)。可能出现不一致的编译错误 [ 45%]

...2.2.2),什么改啊? 我这边一直报“Uncaught ReferenceError: exports is not defined”,项目启动不了 http://stackoverflow.com/quest ... cript,是不是这样的 2017-04-25 0 1 分享 微博 QZONE 微信 zcx582253505 赞同来自: 就是呢,用自带的demo打包app 安装打...

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

2588. Sprite-切换纹理 [ 45%]

...r = Laya.Handler; import Browser= Laya.Browser; import WebGL = Laya.WebGL; export class Sprite_SwitchTexture { private texture1: string = "../../res/apes/monkey2.png"; private texture2: string = "../../res/apes/monkey3.png"; private flag: boolean = false; private ape: Sprite; constructor() { // 不...

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

2589. Sprite-轴心点 [ 45%]

...nt = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Sprite_Pivot { private sp1: Sprite; private sp2: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDD...

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

2590. 骨骼动画-多纹理 [ 45%]

...rowser = Laya.Browser; import Stat = Laya.Stat; import WebGL = Laya.WebGL; export class MultiTexture { private mAniPath:string; private mStartX:number = 400; private mStartY:number = 500; private mFactory:Templet; private mActionIndex:number = 0; private mCurrIndex:number = 0; private mArmature:Skel...

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