浏览代码

added xml doc strings

/addressables-test
sleal-unity 4 年前
当前提交
4beed641
共有 3 个文件被更改,包括 25 次插入30 次删除
  1. 30
      com.unity.perception/Runtime/Randomization/Scenarios/ScenarioBase.cs
  2. 22
      com.unity.perception/Runtime/Randomization/Scenarios/AssetLoadingScenario.cs
  3. 3
      com.unity.perception/Runtime/Randomization/Scenarios/AssetLoadingScenario.cs.meta

30
com.unity.perception/Runtime/Randomization/Scenarios/ScenarioBase.cs


}
}
/// <summary>
/// A list of the addressable bundle catalog URLs to load before the scenario starts
/// </summary>
protected List<string> m_CatalogUrls = new List<string>();
/// <summary>
/// Maps bundle primary keys (the name of the bundle file) to the bundle's URL. Enables the addressable asset
/// system to use signed URLs for remote asset bundles.
/// </summary>
protected Dictionary<string, string> m_BundleToUrlMap = new Dictionary<string, string>();
/// <summary>
/// A reference to a test app-param json file to enable app-param testing in the editor
/// </summary>
protected List<string> m_CatalogUrls = new List<string>();
protected Dictionary<string, string> m_BundleToUrlMap = new Dictionary<string, string>();
/// <summary>
/// The current activity state of the scenario

throw new ScenarioException($"A Randomizer of type {typeof(T).Name} was not added to this scenario");
}
public void AddBundleUrl(string bundle, string url)
/// <summary>
/// Maps a bundle primary key to a specific URL
/// </summary>
/// <param name="bundle">The bundle's primary key (file name)</param>
/// <param name="url">The bundle's URL</param>
internal void AddBundleUrl(string bundle, string url)
public void AddCatalogUrl(string url)
/// <summary>
/// Specifies a catalog URL to load before starting the simulation
/// </summary>
/// <param name="url"></param>
internal void AddCatalogUrl(string url)
{
m_CatalogUrls.Add(url);
}

22
com.unity.perception/Runtime/Randomization/Scenarios/AssetLoadingScenario.cs


// using UnityEngine.AddressableAssets;
//
// namespace UnityEngine.Perception.Randomization.Scenarios
// {
// [AddComponentMenu("Perception/Scenarios/Asset Loading Scenario")]
// public class AssetLoadingScenario : FixedLengthScenario
// {
// bool m_AssetsLoaded;
//
//
// protected override bool isScenarioReadyToStart => m_AssetsLoaded;
//
// protected override void OnStart()
// {
// base.OnStart();
// Addressables.LoadAssetsAsync<GameObject>("", null).Completed += handle =>
// {
//
// };
// }
// }
// }

3
com.unity.perception/Runtime/Randomization/Scenarios/AssetLoadingScenario.cs.meta


fileFormatVersion: 2
guid: 1d7305f64b1a47dbb52fe9dbbbcdb931
timeCreated: 1616181370
正在加载...
取消
保存