Combine text and image. For example a mission briefing.

What i try to do, is make some text and images show in textfield/window/scrollfield/whatever to show to the player when he is at some point in the game (is in a triggerbox).

I try to make something that will look like a mission briefing with multiple pages that shows text and images within the text, a bit like a Word-document.
I coulnt fint anything in the doc’s how to create such a thing.

could anyone help me out a bit by pointing me in the right direction? :face_with_spiral_eyes:
thank you

The GUI.{whatever} functions accept “GUIContent” parameters - and a GUIContent can contain a texture.

For example, try this:

var texture : Texture2D;

function OnGUI() {
  GUILayout.Button( GUIContent( texture ) );
  // you can also GUILayout.Button( texture );
}

You can use the GUI. functions instead of GUILayout to specify exact screen coordinates, and draw text on top of textures.
You can also create GUISkin objects and assign repeating textures to them:

var mySkin : GUISkin;

function OnGUI() {
  GUI.skin = mySkin;
  // GUI functions...
}