Parse() public static method

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.
return NetworkHash128
コード例 #1
0
        private void AssignAssetID(GameObject prefab)
        {
            string assetPath = AssetDatabase.GetAssetPath(prefab);

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

            m_AssetId = NetworkHash128.Parse(AssetDatabase.AssetPathToGUID(path));
        }
コード例 #3
0
 private void AssignAssetID(GameObject prefab)
 {
     this.m_AssetId = NetworkHash128.Parse(AssetDatabase.AssetPathToGUID(AssetDatabase.GetAssetPath((UnityEngine.Object)prefab)));
 }