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

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

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

....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.png"; t...

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

692. Uncaught TypeError: Cannot read property 'regClass' of undefined [ 50%]

Uncaught TypeError: Cannot read property 'regClass' of undefined 1.使用2.12.0版本创建typescript的2D示例项目 2.运行,可以正常运行 3.按F9,默认编程语言是没有任何选择的,然后切换编程语言,选择TypeScript,点击确定 4.运行,出现错误Uncaught Type...

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

693. laya.components.AnimatorController2D_API3.0 [ 50%]

...d Menu Globals "laya/components/AnimatorController2D" AnimatorController2D Class AnimatorController2D 2D动画控制器 Hierarchy Resource AnimatorController2D Index Constructors constructor Properties _id destroyedImmediately lock name url uuid DEBUG Accessors cpuMemory destroyed gpuMemory id obsol...

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

694. laya.physics.PolygonCollider_API3.0 [ 50%]

... Only exported Menu Globals "laya/physics/PolygonCollider" PolygonCollider Class PolygonCollider 2D多边形碰撞体,暂时不支持凹多边形,如果是凹多边形,先手动拆分为多个凸多边形 节点个数最多是b2_maxPolygonVertices,这数值默认是8,所以点的数量不...

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

695. laya.resource.AtlasResource_API3.0 [ 49%]

...als Only exported Menu Globals "laya/resource/AtlasResource" AtlasResource Class AtlasResource 大图合集资源 Hierarchy Resource AtlasResource Index Constructors constructor Properties _id destroyedImmediately dir frames lock name textures url uuid DEBUG Accessors cpuMemory destroyed gpuMemory i...

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

696. laya.d3.physics.PhysicsComponent_API3.0 [ 49%]

... exported Menu Globals "laya/d3/physics/PhysicsComponent" PhysicsComponent Class PhysicsComponent PhysicsComponent 类用于创建物理组件的父类。 Hierarchy Component PhysicsComponent PhysicsTriggerComponent CharacterController Index Constructors constructor Properties _extra _singleton canS...

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

697. laya.d3.component.animator.AnimatorController_API3.0 [ 49%]

...Globals "laya/d3/component/Animator/AnimatorController" AnimatorController Class AnimatorController Hierarchy Resource AnimatorController Index Constructors constructor Properties _id clipsID data destroyedImmediately lock name url uuid DEBUG Accessors cpuMemory destroyed gpuMemory id obsolute refer...

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

698. laya.physics.ChainCollider_API3.0 [ 49%]

...nals Only exported Menu Globals "laya/physics/ChainCollider" ChainCollider Class ChainCollider 2D线形碰撞体 Hierarchy ColliderBase ChainCollider Index Constructors constructor Properties _extra _singleton fixture label owner rigidBody runInEditor scriptPath Accessors awaked density destroyed en...

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

699. [0]Spine3.8.75报错:Error: Unsupported skeleton data, please export with a newer version of Spine. [ 49%]

... = Laya.Event; var Stat = Laya.Stat; var SpineTemplet = Laya.SpineTemplet; class SpineBinary {     constructor() {         this.aniPath = "res/powerup-pro.skel";         this.index = -1;         // Laya.init(Browser.width, Browser.height, WebGL);         // Laya.stage.scaleMode = S...

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

700. laya2.0 IDE继承自定义类要怎么写? [ 49%]

...自定义类要怎么写? 比如我有这样一个基类 export default class UIBase extends Laya.View{} 然后在编译界面按F9 添加UIbase到 场景类型里面,这样在创建新的场景的时候就会有UIBase可以继承,但生成的LayaMaxUI.ts文件会报错,请问下我还需要...

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