示例#1
0
        string GetSourcePrefix(AssetMarkerType type)
        {
            switch (type)
            {
            case (AssetMarkerType.SyncLoadAsset):
            case (AssetMarkerType.AsyncLoadAsset):
            case (AssetMarkerType.SyncUnloadBundle):
            case (AssetMarkerType.AsyncUnloadBundle):
            case (AssetMarkerType.LoadBundle):
                return("AssetBundle: ");

            case (AssetMarkerType.LoadScene):
                return("Scene File: ");

            case (AssetMarkerType.LoadSceneObjects):
            case (AssetMarkerType.ReadObject):
            case (AssetMarkerType.SyncReadRequest):
            case (AssetMarkerType.AsyncReadRequest):
                return("File: ");

            default:
                return("");
            }
        }
示例#2
0
 public void AddMarker(string markerName, AssetMarkerType markerType, MetaDataFiller metaDataFiller, int metadataCount)
 {
     m_Markers.Add(markerName, new AssetMarkerInfo(markerType, metaDataFiller, metadataCount));
     m_MarkerToIDMap.Add(markerName, FrameDataView.invalidMarkerId);
 }
示例#3
0
 public AssetMarkerInfo(AssetMarkerType _assetMarkerType, MetaDataFiller _metadataFunction, int _metadataCount)
 {
     assetMarkerType = _assetMarkerType;
     metaDataFiller  = _metadataFunction;
     metadataCount   = _metadataCount;
 }