Show / Hide Table of Contents

Method FixReferences

| Edit this page View Source

FixReferences(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
| Edit this page View Source

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
| Edit this page View Source

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
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾