Show / Hide Table of Contents

Class PrefabExtension

Extends prefab GameObjects with functionality related to the mocking system.
Inheritance
System.Object
PrefabExtension
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Jotunn
Assembly: Jotunn.dll
Syntax
public static class PrefabExtension

Methods

| Improve this Doc View Source

CloneFields(GameObject, GameObject)

Clones all fields from this GameObject to objectToClone.
Declaration
public static void CloneFields(this GameObject gameObject, GameObject objectToClone)
Parameters
Type Name Description
GameObject gameObject
GameObject objectToClone
| Improve this Doc 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
| Improve this Doc View Source

FixReferences(GameObject, Boolean)

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
System.Boolean recursive Traverse all child transforms
| Improve this Doc 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
System.Object objectToFix
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾