-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Instance of prefab issue ?? #49
Comments
So what you say is that the projectile is not activated when the activation code is run? And you say that it is the gameobject that is non-active, not just the rendering? I will try to make a test scene that does the same as you are doing and see if I can spot the problem. Otherwise, if you can share your code I will be happy to take a look at it. |
Projectile is visible and all work autonomus, diffrent speed etc itp. But when i SetRecursiveState(false) on one projectile, all particle for some millisecond blink but i invoke SetRecursiveState(false) on one projectile. |
Ok. I had the feeling that this could be a problem in the new renderer. Godd to know that the fallback renderer works at least. The shared material system is not quite done yet, so if you want to avoid the color change issue, you should set a new material for each projectile after the instantiate for the moment. |
I have also OffTopic question : A variable autoDestruct on particle emmiters is work ?? I look in code :
autodestruct i set to true but destroy always false. |
destroy will be set in FixedUpdate if the Animator have had particles Thomas Gravgaard |
yeah, OneShots in set to true. Ok i will work with this, Thanks for answer . |
I see now Unity Exporter don't export OneShots Variable, so it must be set on script :) |
Yeah. It is one of the "internal" Unity variables that you cannot get |
Really Thanks, i don't see before this exporters script ;) Sorry for take a time. |
Hello, i have question about object Instantiate; I have following code :
for (int index = 0; index < Projectiles.Length; index++)
{
Projectiles[index] = (GameObject)Instantiate(Project, transform.position, transform.rotation);
Projectiles[index].SetActiveRecursively(false);
Projectiles[index].active = false;
}
When the projectile i shoot i active object :
Projectiles[index].SetActiveRecursively(true); Projectiles[index].active = true;
and when is colision with object i do :
Projectiles[index].SetActiveRecursively(false); Projectiles[index].active = false;
but in the scene on XNA all projectile is set active to false and i ahve big problem. Can you help me with this issue ?? In unity evrythink is okey.
The text was updated successfully, but these errors were encountered: