Scripting API

Scripting API

PrefabAddress

Class in Abyss.Core, from Abyss.Core.

A prefab's or a model's key, which AssetAccess.LoadPrefab takes. A model's own key, which the build writes, has its clips on it: Addresses.Fox.Walk.

public class PrefabAddress : AssetKey

Constructors

PrefabAddress

public PrefabAddress(string address, string? id = null)

A key for the asset at address, of the identity id.

Parameters

  • address: What it is loaded by: scenes/moons.scene, fox#Walk.
  • id: Its identity, as its sidecar writes it; null for none, when it is found by its address alone.

Methods

FromId

public static PrefabAddress FromId(AssetGuid id)

The key of the file of the identity id: one saved, made again.

Parameters

  • id

Exceptions

  • ArgumentException: The identity is none.