Table of Contents

Class PrefabObject

Namespace
Axolotl2D.Prefabs
Assembly
Axolotl2D.dll

One GameObject definition inside a prefab hierarchy.

public sealed record PrefabObject : IEquatable<PrefabObject>
Inheritance
PrefabObject
Implements
Inherited Members

Constructors

PrefabObject(string?, string, bool, IReadOnlyList<string>, PrefabTransform, IReadOnlyList<PrefabComponent>, IReadOnlyList<PrefabObject>)

One GameObject definition inside a prefab hierarchy.

public PrefabObject(string? Id, string Name, bool Active, IReadOnlyList<string> Tags, PrefabTransform Transform, IReadOnlyList<PrefabComponent> Components, IReadOnlyList<PrefabObject> Children)

Parameters

Id string
Name string
Active bool
Tags IReadOnlyList<string>
Transform PrefabTransform
Components IReadOnlyList<PrefabComponent>
Children IReadOnlyList<PrefabObject>

Properties

Active

public bool Active { get; init; }

Property Value

bool

Children

public IReadOnlyList<PrefabObject> Children { get; init; }

Property Value

IReadOnlyList<PrefabObject>

Components

public IReadOnlyList<PrefabComponent> Components { get; init; }

Property Value

IReadOnlyList<PrefabComponent>

Id

public string? Id { get; init; }

Property Value

string

Name

public string Name { get; init; }

Property Value

string

Tags

public IReadOnlyList<string> Tags { get; init; }

Property Value

IReadOnlyList<string>

Transform

public PrefabTransform Transform { get; init; }

Property Value

PrefabTransform