Class AssetReferenceResolver
Inheritance
System.Object
UnityEngine.Object
UnityEngine.ScriptableObject
AssetReferenceResolver
Inherited Members
UnityEngine.ScriptableObject.SetDirty()
UnityEngine.ScriptableObject.CreateInstance(System.String)
UnityEngine.ScriptableObject.CreateInstance(System.Type)
UnityEngine.ScriptableObject.CreateInstance<T>()
UnityEngine.Object.GetInstanceID()
UnityEngine.Object.GetHashCode()
UnityEngine.Object.Equals(System.Object)
UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Vector3, UnityEngine.Quaternion)
UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Vector3, UnityEngine.Quaternion, UnityEngine.Transform)
UnityEngine.Object.Instantiate(UnityEngine.Object)
UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Transform)
UnityEngine.Object.Instantiate(UnityEngine.Object, UnityEngine.Transform, System.Boolean)
UnityEngine.Object.Instantiate<T>(T)
UnityEngine.Object.Instantiate<T>(T, UnityEngine.Vector3, UnityEngine.Quaternion)
UnityEngine.Object.Instantiate<T>(T, UnityEngine.Vector3, UnityEngine.Quaternion, UnityEngine.Transform)
UnityEngine.Object.Instantiate<T>(T, UnityEngine.Transform)
UnityEngine.Object.Instantiate<T>(T, UnityEngine.Transform, System.Boolean)
UnityEngine.Object.Destroy(UnityEngine.Object, System.Single)
UnityEngine.Object.Destroy(UnityEngine.Object)
UnityEngine.Object.DestroyImmediate(UnityEngine.Object, System.Boolean)
UnityEngine.Object.DestroyImmediate(UnityEngine.Object)
UnityEngine.Object.FindObjectsOfType(System.Type)
UnityEngine.Object.DontDestroyOnLoad(UnityEngine.Object)
UnityEngine.Object.DestroyObject(UnityEngine.Object, System.Single)
UnityEngine.Object.DestroyObject(UnityEngine.Object)
UnityEngine.Object.FindSceneObjectsOfType(System.Type)
UnityEngine.Object.FindObjectsOfTypeIncludingAssets(System.Type)
UnityEngine.Object.FindObjectsOfType<T>()
UnityEngine.Object.FindObjectOfType<T>()
UnityEngine.Object.FindObjectsOfTypeAll(System.Type)
UnityEngine.Object.FindObjectOfType(System.Type)
UnityEngine.Object.ToString()
UnityEngine.Object.name
UnityEngine.Object.hideFlags
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly : Bayat.Core.Runtime.dll
Syntax
public class AssetReferenceResolver : ScriptableObject
Fields
|
Improve this Doc
View Source
dependencies
Declaration
[SerializeField]
protected List<Object> dependencies
Field Value
Type
Description
System.Collections.Generic.List <UnityEngine.Object >
|
Improve this Doc
View Source
guids
Declaration
[SerializeField]
protected List<string> guids
Field Value
Type
Description
System.Collections.Generic.List <System.String >
|
Improve this Doc
View Source
guidToReference
Declaration
[SerializeField]
protected GuidToReferenceDictionary guidToReference
Field Value
|
Improve this Doc
View Source
Declaration
[SerializeField]
protected string[] invalidGameObjectTags
Field Value
Type
Description
System.String []
|
Improve this Doc
View Source
referenceToGuid
Declaration
protected ReferenceToGuidDictionary referenceToGuid
Field Value
Type
Description
Bayat.Core.Utilities.ReferenceToGuidDictionary
Properties
|
Improve this Doc
View Source
Current
Gets the current asset reference resolver.
Declaration
public static AssetReferenceResolver Current { get; }
Property Value
|
Improve this Doc
View Source
Dependencies
Gets the project dependencies list.
Declaration
[Obsolete("This property will be removed in future releases, use GuidToReference or ReferenceToGuid instead.", false)]
public virtual List<Object> Dependencies { get; }
Property Value
Type
Description
System.Collections.Generic.List <UnityEngine.Object >
|
Improve this Doc
View Source
Guids
Declaration
[Obsolete("This property will be removed in future releases, use GuidToReference or ReferenceToGuid instead.", false)]
public virtual List<string> Guids { get; }
Property Value
Type
Description
System.Collections.Generic.List <System.String >
|
Improve this Doc
View Source
GuidToReference
Declaration
public virtual GuidToReferenceDictionary GuidToReference { get; set; }
Property Value
|
Improve this Doc
View Source
ReferenceToGuid
Declaration
public virtual ReferenceToGuidDictionary ReferenceToGuid { get; set; }
Property Value
Type
Description
Bayat.Core.Utilities.ReferenceToGuidDictionary
Methods
|
Improve this Doc
View Source
Add(Object)
Adds the object to the database by generating a new GUID if it is not already in the database.
Declaration
public virtual string Add(Object obj)
Parameters
Type
Name
Description
UnityEngine.Object
obj
Returns
Type
Description
System.String
|
Improve this Doc
View Source
Add(Object, String)
Adds the object to the database with the given GUID if it is not empty, otherwise generates a new GUID.
Declaration
public virtual void Add(Object obj, string guid)
Parameters
Type
Name
Description
UnityEngine.Object
obj
System.String
guid
|
Improve this Doc
View Source
ChangeGuid(String, String)
Changes the old GUID to the new GUID in the database.
Declaration
public virtual void ChangeGuid(string oldGuid, string newGuid)
Parameters
Type
Name
Description
System.String
oldGuid
System.String
newGuid
|
Improve this Doc
View Source
Clear()
Declaration
public virtual void Clear()
|
Improve this Doc
View Source
Contains(String)
Checks whether the database contains the given GUID or not.
Declaration
public virtual bool Contains(string referenceID)
Parameters
Type
Name
Description
System.String
referenceID
Returns
Type
Description
System.Boolean
|
Improve this Doc
View Source
Contains(Object)
Checks whether the database contains the given object or not.
Declaration
public virtual bool Contains(Object obj)
Parameters
Type
Name
Description
UnityEngine.Object
obj
Returns
Type
Description
System.Boolean
|
Improve this Doc
View Source
Get(String)
Gets the object associated with the given GUID.
Declaration
public virtual Object Get(string guid)
Parameters
Type
Name
Description
System.String
guid
Returns
Type
Description
UnityEngine.Object
|
Improve this Doc
View Source
Get(Object)
Gets the given object reference GUID.
Declaration
public virtual string Get(Object obj)
Parameters
Type
Name
Description
UnityEngine.Object
obj
Returns
Type
Description
System.String
|
Improve this Doc
View Source
HasNullValues()
Returns true if the database has null references, otherwise true.
Declaration
public virtual bool HasNullValues()
Returns
Type
Description
System.Boolean
|
Improve this Doc
View Source
OnAfterDeserialize()
Declaration
public virtual void OnAfterDeserialize()
|
Improve this Doc
View Source
OnBeforeSerialize()
Declaration
public virtual void OnBeforeSerialize()
|
Improve this Doc
View Source
Remove(String)
Removes the GUID and the associated object from the database.
Declaration
public virtual void Remove(string referenceID)
Parameters
Type
Name
Description
System.String
referenceID
|
Improve this Doc
View Source
Remove(Object)
Removes the object and its GUID from the database.
Declaration
public virtual void Remove(Object obj)
Parameters
Type
Name
Description
UnityEngine.Object
obj
|
Improve this Doc
View Source
RemoveDuplicateValues()
Removes the duplicate values.
Declaration
public virtual void RemoveDuplicateValues()
|
Improve this Doc
View Source
RemoveNullValues()
Removes null values and references from the database.
Declaration
public virtual void RemoveNullValues()
|
Improve this Doc
View Source
Reset()
Declaration
public virtual void Reset()
Please enable JavaScript to view the comments powered by Disqus.