Class PrefabObject
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
IdstringNamestringActiveboolTagsIReadOnlyList<string>TransformPrefabTransformComponentsIReadOnlyList<PrefabComponent>ChildrenIReadOnlyList<PrefabObject>
Properties
Active
public bool Active { get; init; }
Property Value
Children
public IReadOnlyList<PrefabObject> Children { get; init; }
Property Value
Components
public IReadOnlyList<PrefabComponent> Components { get; init; }
Property Value
Id
public string? Id { get; init; }
Property Value
Name
public string Name { get; init; }
Property Value
Tags
public IReadOnlyList<string> Tags { get; init; }
Property Value
Transform
public PrefabTransform Transform { get; init; }