Show / Hide Table of Contents

Class PrefabExtension

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

Methods

Name Description
CloneFields(GameObject, GameObject) Clones all fields from this GameObject to objectToClone.
FixReferences(GameObject) Resolves all references for mocks in this GameObject's components recursively
FixReferences(GameObject, bool) Resolves all references for mocks in this GameObject recursively. Can additionally traverse the transforms hierarchy to fix child GameObjects recursively.
FixReferences(object) Will attempt to fix every field that are mocks gameObjects / Components from the given object.
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾