Adding vr world in App Designer panel

2 ビュー (過去 30 日間)
Orest Necker DONGMO NGUEFACK
Orest Necker DONGMO NGUEFACK 2021 年 3 月 7 日
回答済み: Sai Teja G 2023 年 10 月 12 日
Hi, I'm making an app where i want to display the vrworld i've created in app Designer panel, but since Mathworks have changed Guide to App Designer, i can't find any way on how to do it now. Can any one show me how to do that?

回答 (1 件)

Sai Teja G
Sai Teja G 2023 年 10 月 12 日
Hi Orest,
I understand that you want to display the ‘vrworld’ in the AppDesigner panel.
You can find a sample code below that demonstrates how to display a 'vrworld' in App Designer:
function app_OpeningFcn(app, ~, ~, varargin)
% Create the VR world
vrworld = vrworld('path_to_your_vrworld_file.wrl');
% Open the VR world
open(vrworld);
% Create a VR figure
vrfigure = vrfigure(vrworld);
% Parent the VR figure to the App Designer panel
app.Panel.UIContainer.Children = vrfigure;
end
To learn more about the 'vrworld()' function and its details, you can refer to the following documentation:
Hope it helps!
Best Regards,
Sai Teja G

カテゴリ

Help Center および File ExchangeSpreadsheets についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by