Show / Hide Table of Contents

Class PrefabManager.Cache

The global cache of prefabs per scene.
Inheritance
System.Object
PrefabManager.Cache
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.Managers
Assembly: Jotunn.dll
Syntax
public static class Cache

Methods

| Improve this Doc View Source

GetPrefab(Type, String)

Get an instance of an Unity Object from the current scene with the given name.
Declaration
public static UnityEngine.Object GetPrefab(Type type, string name)
Parameters
Type Name Description
System.Type type System.Type to search for.
System.String name Name of the actual object to search for.
Returns
Type Description
UnityEngine.Object
| Improve this Doc View Source

GetPrefab<T>(String)

Get an instance of an Unity Object from the current scene by name.
Declaration
public static T GetPrefab<T>(string name)

    where T : UnityEngine.Object
Parameters
Type Name Description
System.String name
Returns
Type Description
T
Type Parameters
Name Description
T
| Improve this Doc View Source

GetPrefabs(Type)

Get all instances of an Unity Object from the current scene by type.
Declaration
public static Dictionary<string, UnityEngine.Object> GetPrefabs(Type type)
Parameters
Type Name Description
System.Type type System.Type to search for.
Returns
Type Description
System.Collections.Generic.Dictionary<System.String, UnityEngine.Object>
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾