Show / Hide Table of Contents

Class AssetDatabaseUtility

AssetDatabase utility methods.

Inheritance
System.Object
AssetDatabaseUtility
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.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: StansAssets.Foundation.Editor
Assembly: cs.temp.dll.dll
Syntax
public static class AssetDatabaseUtility

Methods

GetAssetAbsolutePath(Object)

Returns the absolute path name for the asset.

Declaration
public static string GetAssetAbsolutePath(object asset)
Parameters
Type Name Description
System.Object asset

A reference to the asset.

Returns
Type Description
System.String

The asset path name, or null, or an empty string if the asset does not exist.

GetLocalIdentifierInFile(Object)

Gets the local Identifier In File, for the given GameObject Return 0 in case Game Object wasn't yet saved

Declaration
public static int GetLocalIdentifierInFile(object unityObject)
Parameters
Type Name Description
System.Object unityObject

GameObject tou want to check

Returns
Type Description
System.Int32
In This Article
Back to top Generated by DocFX