浏览代码

Fixing issue with AssetSources not being initialized when only `count` is called

/generic-asset-sources
Jon Hogins 4 年前
当前提交
f19a8e51
共有 1 个文件被更改,包括 8 次插入1 次删除
  1. 9
      com.unity.perception/Runtime/Randomization/Randomizers/AssetSources/AssetSource.cs

9
com.unity.perception/Runtime/Randomization/Randomizers/AssetSources/AssetSource.cs


/// <summary>
/// The number of assets available within this asset source
/// </summary>
public int count => assetSourceLocation.count;
public int count
{
get
{
CheckIfInitialized();
return assetSourceLocation.count;
}
}
/// <summary>
/// Execute setup steps for this AssetSource. It is often unnecessary to call this API directly since all other

正在加载...
取消
保存