Aggiornamento di progetti in UnrealUpgrading projects in Unreal
Quando si esegue l'aggiornamento a una nuova versione di Unreal, le funzioni deprecate vengono visualizzate come avvisi durante la compilazione dei progetti o la creazione del pacchetto del progetto.When updating to a new version of Unreal, deprecated functions show up as warnings when compiling blueprints or packaging the project. Le funzioni sono deprecate quando viene aggiunta una nuova funzione da usare in sostituzione.Functions are deprecated when a new function has been added that should be used instead.
Aggiornamenti alla versione 4.264.26 upgrades
Nella versione 4.26 tutte le piattaforme AR e VR sono state sottoposte a refactoring per aggiungere interfacce comuni e rendere il codice dell'applicazione indipendente dalla piattaforma. È quindi possibile che vengano visualizzati più avvisi del solito.In 4.26, all AR and VR platforms have been refactored to add common interfaces and keep application code platform agnostic, so you may see more warnings than usual. È consigliabile eseguire l'aggiornamento alle nuove API, in modo che il progetto possa essere facilmente convertito per altre piattaforme.Updating to the new APIs is recommended so the project can be more easily ported to other platforms.
Nei messaggi di avviso verrà visualizzata la funzione deprecata e verrà indicata la funzione da usare in sostituzione.Warning messages will show which function has been deprecated and indicate what function to use instead. Tutte le funzioni deprecate continueranno a funzionare per questa versione, ma potrebbero non funzionare nelle versioni future.All deprecated functions will continue to work for this release but may not work in future releases. Le funzioni deprecate non verranno nemmeno più elencate durante la ricerca di funzioni in un progetto.Deprecated functions will also no longer be listed when searching for functions in a blueprint.
Funzioni deprecate della versione 4.254.25 deprecations
Funzione deprecataDeprecated function | Nuova funzioneNew function |
---|---|
CreateNamedARPinCreateNamedARPin | ![]() |
LoadWMRAnchorStoreARPinsLoadWMRAnchorStoreARPins | ![]() |
LoadWMRAnchorSaveARPinToWMRAnchorStoreStoreARPinsLoadWMRAnchorSaveARPinToWMRAnchorStoreStoreARPins | ![]() |
RemoveARPinFromWMRAnchorStoreRemoveARPinFromWMRAnchorStore | ![]() |
SetEnabledMixedRealityCameraSetEnabledMixedRealityCamera | ![]() |
ResizeMixedRealityCameraResizeMixedRealityCamera | ![]() |
StartCameraCaptureStartCameraCapture | ![]() |
StopCameraCaptureStopCameraCapture | ![]() |
StartQRCodeCaptureStartQRCodeCapture | ![]() |
StopQRCodeCaptureStopQRCodeCapture | ![]() |
Il mapping spaziale viene avviato automaticamente nella versione 4.25, mentre nella versione 4.26 deve essere attivato.Spatial mapping previously automatically started in 4.25, but now needs to be toggled in 4.26. | ![]() |
ShowKeyboardShowKeyboard | Rimossa nella versione 4.26 poiché la tastiera viene visualizzata automaticamente quando si attiva lo stato di un widget di testo.Removed in 4.26 since the keyboard automatically shows when a text widget is focused on. |
HideKeyboardHideKeyboard | Rimossa nella versione 4.26 poiché la tastiera viene nascosta automaticamente quando lo stato di un widget di testo non è più attivo.Removed in 4.26 since the keyboard will automatically hide when a text widget is unfocused. |
SupportsHandTrackingSupportsHandTracking | ![]() |
IsDisplayOpaqueIsDisplayOpaque | ![]() |
GetHandJointTransform, GetPointerPoseInfo, GetControllerTrackingStatusGetHandJointTransform, GetPointerPoseInfo, GetControllerTrackingStatus | ![]() |
GetVersionStringGetVersionString | ![]() |
IsTrackingAvailableIsTrackingAvailable | ![]() |
IsButtonClicked, IsButtonDown, IsGrasped, IsSelectPressedIsButtonClicked, IsButtonDown, IsGrasped, IsSelectPressed | Usare il sistema di azione di input di Unreal.Use Unreal’s input action system. |
SetFocusPointForFrameSetFocusPointForFrame | Rimossa nella versione 4.26.Removed in 4.26. In precedenza questa funzione veniva usata per la riproiezione durante la comunicazione remota, ora supportata dalla riproiezione avanzata.Previously used for reprojection when remoting, which now supports depth reprojection. |
Modifiche della versione 4.264.26 changes
La modifica più significativa apportata consiste nel fatto che l'opzione Start in VR (Avvia in VR) disponibile in Edit > Project Settings > Project > Description > Settings (Modifica > Impostazioni progetto > Progetto > Descrizione > Impostazioni) è obbligatoria per l'avvio del plug-in Windows Mixed Reality.The significant change is that Start in VR from Edit > Project Settings > Project > Description > Settings is mandatory for starting Windows Mixed Reality plugin. Senza questo parametro, gli ologrammi non vengono visualizzati nel dispositivo.Without that parameter, you will not see your holograms on the device.