Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -544,19 +544,22 @@ HelpBox CreateHdrpVersionChecker()
{
m_UsedPackageRetriever.ProcessAsync(k_HdrpPackageName, (installed, packageInfo) =>
{
// installed is not used because this one will be always installed
// With recent introduction of preview srp version, our HDRP wizard don't work with Version() call
// patch it for now until this is solve.
bool compatibleWithVersionCall = version.ToString().Contains("preview") ? false : true;

// installed is not used because this one will be always installed
if (packageInfo.source == PackageManager.PackageSource.Local)
{
helpBox.kind = HelpBox.Kind.Info;
helpBox.text = String.Format(Style.hdrpVersionWithLocalPackage, packageInfo.version, version);
}
else if(new Version(packageInfo.version) < new Version(version))
else if(compatibleWithVersionCall && (new Version(packageInfo.version) < new Version(version)))
{
helpBox.kind = HelpBox.Kind.Warning;
helpBox.text = String.Format(Style.hdrpVersionNotLast, packageInfo.version, version);
}
else if (new Version(packageInfo.version) == new Version(version))
else if (compatibleWithVersionCall && (new Version(packageInfo.version) == new Version(version)))
{
helpBox.kind = HelpBox.Kind.Info;
helpBox.text = String.Format(Style.hdrpVersionLast, version);
Expand Down