Click or drag to resize

SoftReferenceT Class

A class that allows one to select assets in the inspector without hard-referencing them. Saves their path instead which can later be used to load with Load or manually with ResourceManager or Resources.Load(String).
Inheritance Hierarchy
SystemObject
  Kit.UISoftReferenceT
    Kit.UISceneReference
    Kit.UIWindowReference

Namespace:  Kit.UI
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0
Syntax
C#
[SerializableAttribute]
public class SoftReference<T>
where T : Object
Request Example View Source

Type Parameters

T
Type of the unity object. Used to filter assets.

The SoftReferenceT type exposes the following members.

Properties
  NameDescription
Public propertyFullPath
Full path to the asset.
Public propertyPath
Path to the asset with the location to ResourcesFolder removed.
Top
Methods
Operators
Fields
  NameDescription
Public fieldStatic memberResourcesFolder
Text to trim paths till.
Top
Remarks
Can be used directly as a string without needing to call ToString.
See Also