大约有 3,124 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0089 秒)
...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
...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
...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
...2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? Texture图片能否进行翻转? IDE通过.ui自动生成的ui代码报错 为什么给Sprite容器添加点击事件没反应 3d 添加灯光 模型变的黑呼呼的 很多黑面 JS 是没有自动补全提示...
来源: Laya_社区 发布时间: 20171025
...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
...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
...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
...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
...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
...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