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

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

211. 官方案例里摄像机绕物体旋转脚本的问题 [ 73%]

...ary> protected targetDistance: number; //protected camera: Laya.Camera; constructor() { super(); } public transform: Transform3D; onStart(): void { this.transform = (this.owner as Laya.Sprite3D).transform; this.CurrentAngles = new Vector3(-this.transform.rotationEuler.x, this.transform.rotationEu...

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

212. TypeScript语法问题,泛型 [ 72%]

...tance ==null) { Single.instance = new Single(); } return Single.instance } constructor(){ Single.instance =new Single(); } } class Car extends Single { constructor() { super(); } } var inst = Car.GetInstance<Car>() 2018-06-21 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折...

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

213. laya.physics.RigidBody_API3.0 [ 72%]

...通过代码PhysicsDebugDraw.enable(); Hierarchy Component RigidBody Index Constructors constructor Properties _extra _singleton category group label mask owner runInEditor scriptPath Accessors allowRotation allowSleep angularDamping angularVelocity awaked body bullet destroyed enabled gravityScale ...

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

214. 3D变换 · LayaAir3.3 · 引擎文档 · LAYABOX [ 72%]

... 平移距离 private translate: Laya.Vector3 = new Laya.Vector3(1, 1, 1); constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { // 平移cube this.cube.transform.translate(this.translate, false); } }...

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

215. 关于切换图片的问题 [ 72%]

...es/untitled.png"; private img: Laya.Sprite; private flag: boolean = false; constructor() { Laya.init(1000,800); this.img = new Laya.Sprite; this.img.loadImage(this.plane1); Laya.stage.addChild(this.img); this.img.graphics.clear(); this.img.loadImage(this.plane2); Laya.stage.addChild(this.img) } } ne...

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

216. laya.d3.shader.Shader3D_API3.0 [ 72%]

...lass Shader3D Shader3D 类用于创建Shader3D。 Hierarchy Shader3D Index Constructors constructor Properties PERIOD_CAMERA PERIOD_CUSTOM PERIOD_MATERIAL PERIOD_SCENE PERIOD_SPRITE RENDER_STATE_BLEND RENDER_STATE_BLEND_CONST_COLOR RENDER_STATE_BLEND_DST RENDER_STATE_BLEND_DST_ALPHA RENDER_STATE_BLE...

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

217. [LayaAirIDE3]时间轴动画调了材质引用类型的属性,调用play()接口切状态的时候调用_revertDefaultKeyframeNodes报材质属性空 [ 72%]

...   } else {                     var defaultValue = new property.constructor();                     property.cloneTo(defaultValue);                     keyframeNodeOwner.defaultValue = defaultValue;                     keyframeNodeOwner.value = new property.co...

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

218. laya.net.LoaderManager_API3.0 [ 72%]

...隔。 see laya.net.Loader Hierarchy EventDispatcher LoaderManager Index Constructors constructor Properties maxLoader retryDelay retryNum Methods cacheRes cancelLoadByUrl cancelLoadByUrls clearRes clearResByGroup clearTextureRes clearUnLoaded create decodeBitmaps event getRes hasListener load off o...

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

219. laya.d3.core.render.command.CommandBuffer_API3.0 [ 72%]

...er CommandBuffer 类用于创建命令流。 Hierarchy CommandBuffer Index Constructors constructor Accessors casterShadow context name Methods _apply _applyOne addCustomCMD blitScreenQuad blitScreenQuadByMaterial blitScreenTriangle clearRenderTarget drawMesh drawMeshInstance drawRender getCommandsS...

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

220. TypeError: Cannot read property 'length' of null [ 71%]

...误 Cannot read property 'displayObject' of null Uncaught TypeError: Class constructor Component cannot be invoked without 'new' 构建APP Android Studio打出的APK 报apploader.js:4515 TypeError: addGlobalValueDefine is not a function 关于graphics.drawTexture方法设置纹理报错TypeError: te...

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