x


How to issue render call from script

Is it possible to override unity rendering and render from a script. By this I mean something like this:

void RenderMyStuff() {
  foreach (MyRenderObj ro in renderObjList)
    ro.gameObject.renderer.Render(0);
}

Where the gameObject is Unity's GameObject which is disabled so that unity won't draw it automatically.

more ▼

asked Aug 04 '11 at 01:24 PM

naro gravatar image

naro
18 2 2 7

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

ok, i was rather blind with this - Graphics.DrawMesh(...); did the trick :)

more ▼

answered Aug 17 '11 at 07:45 AM

naro gravatar image

naro
18 2 2 7

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x2090
x276
x266
x40
x21

asked: Aug 04 '11 at 01:24 PM

Seen: 1108 times

Last Updated: Aug 17 '11 at 07:45 AM