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

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

301. 绘制直线与折线(TypeScript-LayaAir基础篇(TS)-矢量图) [ 65%]

...ite_DrawShapes {         private sp: Sprite;           constructor()         {             Laya.init(500, 300, WebGL);             this.drawSomething();         }           private drawSomething(): void {           ...

来源: Laya2.0_文档 发布时间: 20210714

302. Sprite-旋转缩放 [ 65%]

...语言、LayaAirIDE让项目开发更高效。class Sprite_RoateAndScale { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDD...

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

303. laya.d3.core.material.RenderState_API3.0 [ 65%]

...ate RenderState 类用于控制渲染状态。 Hierarchy RenderState Index Constructors constructor Properties blend blendEquation blendEquationAlpha blendEquationRGB cull depthTest depthWrite dstBlend dstBlendAlpha dstBlendRGB srcBlend srcBlendAlpha srcBlendRGB stencilOp stencilRef stencilTest sten...

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

304. 在UI类里调用启动类的静态函数失败了 [ 65%]

...态函数失败了 这是我的启动类 // 程序入口 class GameMain { constructor() { Laya.init(600, 400); Laya.stage.bgColor = "#123456"; Laya.loader.load([ { url: "res/beijing/beijing2.png", type: Laya.Loader.IMAGE }, { url: "res/atlas/comp.png", type: Laya.Loader.IMAGE }, { url: "res/atlas/co...

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

305. LayaAir 2.0 TS版编译出错GameConfig跟创建项目时生成的内容不一致了 [ 65%]

... static physicsDebug:boolean=false; static exportSceneToJson:boolean=true; constructor(){} static init(){ var reg: Function = Laya.ClassUtils.regClass; reg("script/GameUI.ts",GameUI); reg("script/GameControl.ts",GameControl); reg("script/Bullet.ts",Bullet); reg("script/DropBox.ts",DropBox); } } Game...

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

306. laya.components.AnimationClip2D_API3.0 [ 65%]

...ationClip2D Class AnimationClip2D Hierarchy Resource AnimationClip2D Index Constructors constructor Properties _id destroyedImmediately islooping lock name url uuid DEBUG Accessors cpuMemory destroyed gpuMemory id obsolute referenceCount cpuMemory gpuMemory Methods _addReference _clearReference _rem...

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

307. laya.d3.physics.Rigidbody3D_API3.0 [ 64%]

...建刚体碰撞器。 Hierarchy PhysicsTriggerComponent Rigidbody3D Index Constructors constructor Properties _extra _singleton canScaleShape owner runInEditor scriptPath userData TYPE_DYNAMIC TYPE_KINEMATIC TYPE_STATIC Accessors angularDamping angularFactor angularVelocity awaked btColliderObject c...

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

308. laya.events.Event_API3.0 [ 64%]

...ent 对象将作为参数传递给事件侦听器。 Hierarchy Event Index Constructors constructor Properties button currentTarget delta isDblClick nativeEvent target touchId touchPos type ADDED BLUR CHANGE CHANGED CLICK CLOSE COLLISION_ENTER COLLISION_EXIT COLLISION_STAY COMPLETE DEVICE_LOST DISPL...

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

309. laya.display.Node_API3.0 [ 64%]

...有子显示对象。 Hierarchy EventDispatcher Node Sprite Sprite3D Index Constructors constructor Properties _extra _scene _url name tag Accessors active activeInHierarchy components destroyed displayedInStage hideFlags is3D numChildren parent scene timer url Methods _initialize _processActive add...

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

310. List组件拖动浏览时item会出现重叠的现象 [ 64%]

...source { import List = laya.ui.List; export class ListDataSourceMediator { constructor() { } public setUp():void { var list: List = new List(); // 渲染的item list.itemRender = ListDataSourceItem; // 设置行列显示的item个数 list.repeatX = 1; list.repeatY = 4; // list居中显示 list.x = (...

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