var
ComponentRoot, ComponentOwner: TComponent;
MySound: TCastleSound;
MyFont: TCastleFont;
begin
ComponentOwner := TComponent.Create(Application);
ComponentRoot := ComponentLoad('castle-data:/my_design.castle-component', ComponentOwner);
MySound := ComponentOwner.FindRequiredComponent('MySound') as TCastleSound;
MyFont := ComponentOwner.FindRequiredComponent('MyFont') as TCastleFont;
end;