Show / Hide Table of Contents

Method GetSoftReference

| Edit this page View Source

GetSoftReference(Type, string)

Finds the AssetID by an asset name at runtime and returns a SoftReference to the asset.
Declaration
public SoftReference<UnityEngine.Object> GetSoftReference(Type type, string name)
Parameters
Type Name Description
Type type Asset type to search for
string name Asset name to search for
Returns
Type Description
SoftReference<Object>
| Edit this page View Source

GetSoftReference<T>(string)

Finds the AssetID by an asset name at runtime and returns a SoftReference to the asset.
Declaration
public SoftReference<T> GetSoftReference<T>(string name) where T : UnityEngine.Object
Parameters
Type Name Description
string name Asset name to search for
Returns
Type Description
SoftReference<T>
Type Parameters
Name Description
T Asset type to search for
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾