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

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

241. 为什么创建的脚本 变量在编辑模式赋值后 运行时为undfined [ 61%]

...名的无头像者 • 2018-10-24 18:14 写一个ts文件,写上 export default class Move extends Laya.Script{ /** @prop {name:target,tips:"目标容器",type:Prefab}*/ targetPrefab:Laya.Prefab; } 将文件在编辑模式下赋给点添加组件=》code=》move 然后创建一个box拖...

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

242. 3D场景中背景无法透明,版本2.7.1 [ 61%]

...版本2.7.1 版本为2.7.1,无法背景透明,永远是黑色 export default class GameUI extends Laya.Scene { constructor() { super(); Config.isAlpha = true; Laya.init(480, 900); Laya.stage.bgColor = null; //加载场景文件 this.loadScene("test/TestScene.scene"); //添加3D场景 var scene =...

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

243. laya.resource.RenderTexture2D_API3.0 [ 61%]

...r defuv flipyuv Accessors anisoLevel baseMipmapLevel compareMode cpuMemory defaultTexture depthStencilFormat destroyed dimension filterMode format gammaCorrection gammaSpace generateMipmap gpuMemory height id isCube maxMipmapLevel mipmap mipmapCount obsolute offsetX offsetY referenceCount samples so...

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

244. laya.d3.core.particleshuriken.ShuriKenParticle3D_API3.0 [ 61%]

...rs method: Function 要执行的函数的名称。例如,functionName。 Default value args: any[] = null 传递给 method 函数的可选参数列表。 Returns void clearTimer clearTimer(caller: any, method: Function): void Inherited from Node.clearTimer Defined in laya/display/Node.ts:609 清...

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

245. laya.d3.math.Vector3_API3.0 [ 61%]

... dot fromArray length lengthSquared normalize scale set setValue toArray toDefault vadd vsub writeTo Clamp TransformNormal add cross distance distanceSquared dot equals lerp max min multiply normalize scalarLength scalarLengthSquared scale subtract transformCoordinate transformQuat transformV3ToV3 t...

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

246. 3Ddemo加载Unity导出场景报错resou._removeReference is not a function [ 61%]

...能单一,建议用脚本方式实现,比如子弹脚本。 */ export default class GameUI extends ui.test.TestSceneUI { constructor() { super();          //加载3D场景 //var scene: Laya.Scene3D = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scene3D; Laya.Scene3D.load("res/LayaScen...

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

247. laya.d3.core.pixelline.PixelLineSprite3D_API3.0 [ 61%]

...ixelLineSprite3D.ts:45 创建一个 PixelLineSprite3D 实例。 Parameters Default value maxCount: number = 2 最大线段数量。 Default value name: string = null 名字。 Returns PixelLineSprite3D Properties Optional _extra _extra: INodeExtra Inherited from Node._extra Defined in laya/display/N...

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

248. 2D网格渲染器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 61%]

...robe:true, shaderType:2, uniformMap:{ u_gradientDirection: {type: Vector2, default:[1,1]}, // 渐变方向 u_gradientStartColor: {type:Vector4, default:[1,1,1,1]}, // 渐变起始颜色 u_gradientEndColor: {type:Vector4, default:[1,1,1,1]} // 渐变结束颜色 }, attributeMap: { a_position: Vector4...

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

249. laya.d3.graphics.vertex.VertexMesh_API3.0 [ 61%]

...式为:"POSITION,NORMAL,COLOR,UV,UV1,BLENDWEIGHT,BLENDINDICES,TANGENT"。 Default value compatible: boolean = true Returns VertexDeclaration 顶点声明。 Globals "laya/d3/graphics/Vertex/VertexMesh" VertexMesh MESH_BLENDINDICES0 MESH_BLENDWEIGHT0 MESH_COLOR0 MESH_CUSTOME0 MESH_CUSTOME1 MESH_CUSTO...

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

250. LayaBox加载TiledMap地图和注意事项 [ 60%]

.../*] [*] [/*] [*] [/*] [*] [/*] [*] [/*] [*] [/*] [/list] [code]export default class DesertUI extends Laya.Scene {    constructor() { super();        DesertUI.instance = this; Laya.MouseManager.multiTouchEnabled = false;        this.loadScene("Desert.scene"); //初始化...

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