public ReplicatedEntityData(WeakAssetReference guid) { AssetGuid = guid; NetId = -1; Id = -1; PredictingPlayerId = -1; }
public void SetAssetGUID(string guidStr) { var assetGuid = new WeakAssetReference(guidStr); if (!assetGuid.Equals(guid)) { guid = assetGuid; EditorUtility.SetDirty(this); } }