Class ClonerPrefabTestComponent
Identity-carrying IFoundationSettings UnityEngine.MonoBehaviour fixture for the
Clone Directory tests that copy prefabs: it declares the references a prefab component can hold — to a
settings asset and to another component, by Id and by Guid — plus one reference to something outside the
cloned folder, a string that is no reference, and a plain field a nested prefab instance can override.
Lives in the runtime Tests assembly because Unity refuses AddComponent for a type defined in
an editor script assembly.
Inheritance
ClonerPrefabTestComponent
Assembly: Tests.dll
Syntax
public sealed class ClonerPrefabTestComponent : MonoBehaviour, IFoundationSettings
Constructors
ClonerPrefabTestComponent()
Declaration
public ClonerPrefabTestComponent()
Fields
ComponentGuid
Declaration
public string ComponentGuid
Field Value
| Type |
Description |
| string |
The Guid of another prefab component of this type.
|
ComponentId
Declaration
public string ComponentId
Field Value
| Type |
Description |
| string |
The Id of another prefab component of this type.
|
Note
Declaration
Field Value
| Type |
Description |
| string |
A plain field a nested prefab instance can carry an override of.
|
OutsideSettingsId
Declaration
public string OutsideSettingsId
Field Value
| Type |
Description |
| string |
The Id of a settings asset outside the cloned folder, which must survive the clone untouched.
|
SettingsGuid
Declaration
public string SettingsGuid
Field Value
| Type |
Description |
| string |
The Guid of the same kind of settings asset.
|
SettingsId
Declaration
Field Value
| Type |
Description |
| string |
The Id of a settings asset, the way a prefab component names a definition it uses.
|
UndeclaredId
Declaration
public string UndeclaredId
Field Value
| Type |
Description |
| string |
A string that happens to equal a cloned Id but is declared as no reference.
|
Properties
Guid
Declaration
public string Guid { get; set; }
Property Value
Id
Declaration
public string Id { get; set; }
Property Value
Implements