x


Material has been destroyed

I made a script

var originalPosition : Vector3;
var originalRotation : Quaternion;

function Awake()
{
    DontDestroyOnLoad(this);
}

function Start()
{
    originalPosition = transform.position;
    originalRotation = transform.rotation;
}

function Reset()
{
    transform.position = originalPosition;
    transform.rotation = originalRotation;
}

But after the new level loads...my object does not have a material on it?How do i solve this?

more ▼

asked Jan 08 '11 at 10:42 AM

Bramburyk gravatar image

Bramburyk
43 8 9 16

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

1 answer: sort voted first
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:

x3339
x819
x764

asked: Jan 08 '11 at 10:42 AM

Seen: 446 times

Last Updated: Jan 08 '11 at 11:01 AM