Main Content

vrworld/view

(To be removed) View virtual world

vrworld/view will be removed in a future release. For more information, see Version History.

Syntax

view(vrworld_object)
x = view(vrworld_object)
x = view(vrworld_object,'-internal')
x = view(vrworld_object,'-web')

Arguments

vrworld_object

A vrworld object representing a virtual world.

Description

The view method opens the default virtual world viewer on the host computer and loads the virtual world associated with the vrworld object into the viewer window. You specify the default virtual world viewer using the DefaultViewer preference. The virtual world must be open for you to use this method.

x = view(vrworld_object) opens the default virtual world viewer on the host computer and loads the virtual world associated with the vrworld object into the viewer window. If the Simulink® 3D Animation™ Viewer is used, view also returns the vrfigure handle of the viewer window. If a Web browser is used, view returns an empty array of vrfigure handles.

x = view(vrworld_object,'-internal') opens the virtual world in the Simulink 3D Animation Viewer.

x = view(vrworld_object,'-web') opens the virtual world in the Web browser.

If the virtual world is disabled for viewing (that is, the View property for the associated vrworld object is set to 'off'), the view method does nothing.

Examples

myworld = vrworld('virtual world object name')
open(myworld)
view(myworld)

Version History

Introduced before R2006a

collapse all

R2023b: To be removed

The vrworld/view will be removed in a future release. Instead, use sim3d classes and Simulation 3D blocks to interface MATLAB® and Simulink with the Unreal Engine® 3D simulation environment. To get started, see Create 3D Simulations in Unreal Engine Environment.

See Also

|