Method FixReferences
| Improve this Doc View SourceFixReferences(object)
Will attempt to fix every field that are mocks gameObjects / Components from the given object.
Declaration
public static void FixReferences(this object objectToFix)
Parameters
Type | Name | Description |
---|---|---|
object | objectToFix |
FixReferences(GameObject)
Resolves all references for mocks in this GameObject's components recursively
Declaration
public static void FixReferences(this GameObject gameObject)
Parameters
Type | Name | Description |
---|---|---|
GameObject | gameObject |
FixReferences(GameObject, bool)
Resolves all references for mocks in this GameObject recursively.
Can additionally traverse the transforms hierarchy to fix child GameObjects recursively.
Declaration
public static void FixReferences(this GameObject gameObject, bool recursive)
Parameters
Type | Name | Description |
---|---|---|
GameObject | gameObject | This GameObject |
bool | recursive | Traverse all child transforms |