Parse() public static méthode

This parses the string representation of a NetworkHash into a binary object.

public static Parse ( string text ) : NetworkHash128
text string A hex string to parse.
Résultat NetworkHash128
Exemple #1
0
        private void AssignAssetID(GameObject prefab)
        {
            string assetPath = AssetDatabase.GetAssetPath(prefab);

            this.m_AssetId = NetworkHash128.Parse(AssetDatabase.AssetPathToGUID(assetPath));
        }
Exemple #2
0
        void AssignAssetID(GameObject prefab)
        {
            string path = AssetDatabase.GetAssetPath(prefab);

            m_AssetId = NetworkHash128.Parse(AssetDatabase.AssetPathToGUID(path));
        }
 private void AssignAssetID(GameObject prefab)
 {
     this.m_AssetId = NetworkHash128.Parse(AssetDatabase.AssetPathToGUID(AssetDatabase.GetAssetPath((UnityEngine.Object)prefab)));
 }