a couple of scripting questions

how do I get the current camera?

how do I iterate objects currently in the viewport?

If I have two cameras how do I change from one to another?

how do I create a scene or level, and what is the difference?

how do I do a ray cast into the whole scene, rather than at a single object?

how do I do a ray cast using a selection mask?

Can I load assets from external files at runtime? standalone? on the web?

thanks.

Hi, welcome to the forum!

You can use Camera.current

Check out GeometryUtility to see how to check if objects are in the view. You have to iterate over all candidate objects yourself; there is no direct method to get all objects in the view.

Use the “enabled” property (boolean) to disable one camera and enable another.

Use File > New Scene. A scene can be used to model a level, but there is no specific concept of a level in Unity.

Physics.RaycastAll

Put objects in different layers and then use a layer mask to raycast to specific layers (see layers).

Use the WWW class. This can load files too, using a file:// url.

You’re welcome.

Andeeee, after perusing the forum, I am constantly amazed by the promptness and detail/accuracy of your responses! Thanks for the help.

Yes, thanks andeeee

BTW, how would you get a web page to display rather than just a texture from the web page (if it’s possible)

thanks

The only thing I know of is the HTML plug-in (which you’ll find in this thread), but I don’t know what the status of this project is now.