Skip to content

Game.Prefabs.TransformPrefab

Assembly: Assembly-CSharp
Namespace: Game.Prefabs

Type: class

Base: PrefabBase

Summary:
TransformPrefab is a concrete prefab type used by the game's prefab system. The class as provided does not declare additional members of its own — it serves as a specific prefab specialization (a named type) that relies on functionality provided by its base class PrefabBase. In the modding context this type is typically a lightweight container/marker used when working with transform-related prefab assets (position/rotation/scale, hierarchy references) and is expected to be managed by the game's prefab loading and serialization subsystems. Use this type when you need a prefab entry representing transform data or when you need to extend prefab behavior by subclassing.


Fields

  • This class does not declare any private or public fields.
    The implementation inherits any fields from PrefabBase.

Properties

  • This class does not declare any properties.
    Use properties provided by PrefabBase for common prefab data (name, id, asset references, etc.).

Constructors

  • public TransformPrefab()
    The default parameterless constructor is provided by the compiler. It initializes the instance using the base class constructor (PrefabBase). No additional initialization is declared in this type.

Methods

  • This class does not declare any methods.
    All behavior is provided by PrefabBase and other framework types. Override or extend functionality by deriving from TransformPrefab if you need custom behavior.

Usage Example

// Example: deriving from TransformPrefab to add custom initialization
public class CustomTransformPrefab : Game.Prefabs.TransformPrefab
{
    public string customTag;

    public CustomTransformPrefab()
    {
        customTag = "MyCustomPrefab";
    }

    // If PrefabBase exposes virtual lifecycle methods you can override them here.
    // protected override void OnLoad() { ... }
}

// Example: creating an instance (if appropriate for your mod's workflow)
var prefab = new CustomTransformPrefab();
// Configure prefab via base-class API (e.g. name, asset references) before registering/loading.

{{ This class, as shipped, is an empty specialization of PrefabBase. When modding, check PrefabBase's API to see available hooks (serialization, registration, lifecycle callbacks) and extend TransformPrefab only if you need custom data or behavior tied to transform-type prefabs. }}