to take a simple picture, you can first set your player and AI guys on a layer, and set culling mask property of the camera to those/that layer only. then take a screenshot, load it from the path you saved it to via Texture2D and WWW, then resize and re-save and/or use in-game, like alexz said.
I got it to work myself…i was able to tweak the parameter in the basic screen shot script in unifycommunity and was able to finish after like a hour or two after posting this…
I’ll post the sample here…so we can have more people posting in game screen shots…
thank you all
var grab: boolean; // The “display” is the object whose texture will be set // to the captured image.
var display: Renderer;
var ray111: Ray ;
function OnPostRender() {
if (grab !captureOnce) {
// Make a new texture of the right size and
// read the camera image into it.
var tex = new Texture2D(150, 150, TextureFormat.ARGB32, false);
var screenPos : Vector3 = camera.WorldToScreenPoint (player.transform.position);
// Set the display texture to the newly captured image.
customMats.gameObject.renderer.material.mainTexture = tex;
// customMats.gameObject.active = true;
// Reset the grab variable to avoid making multiple
// captures.