public static void TriggerRebuildAllVTsInScene(AmplifyTexture.InternalEditor AmplifyInst) { if (AmplifyTextureManagerBase.Instance != null) { // TODO: use a different update frequency for this VirtualTextureBase[] uniqueVirtualTextures = AmplifyTextureManagerBase.Instance.VirtualTextures.Distinct().ToArray(); foreach (VirtualTextureBase asset in uniqueVirtualTextures) { asset.UpdateProperties(); asset.RequestRebuild(); AmplifyInst.BuildCheck(asset); } } }
public static void TriggerBuildAllVTsInScene(AmplifyTexture.InternalEditor AmplifyInst) { if (AmplifyTextureManagerBase.Instance != null) { // TODO: use a different update frequency for this VirtualTextureBase[] uniqueVirtualTextures = AmplifyTextureManagerBase.Instance.VirtualTextures.Distinct().ToArray(); foreach (VirtualTextureBase asset in uniqueVirtualTextures) { GetPrivateField <HashSet <VirtualTextureBase> >(AmplifyInst, "m_scheduledBuildAssets").Add(asset); } SetPrivateField(AmplifyInst, "m_scheduledBuild", true); SetPrivateField(AmplifyInst, "m_scheduledBuildTime", 0.0f); CallPrivateVoidMethod(AmplifyInst, "OnEditorUpdate"); } }