Skip to content
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

Dragon hatch animation is still red #8

Open
ithinkandicode opened this issue Jun 25, 2022 · 1 comment
Open

Dragon hatch animation is still red #8

ithinkandicode opened this issue Jun 25, 2022 · 1 comment

Comments

@ithinkandicode
Copy link
Owner

The code responsible for hatching is inside SummonEgg.cs.

The flash is handled by FlashSprite.cs, which switches to a material during the flash

The material presumably being one of these:
unity-red-material

We might be able to change the color, since that's a visible setting in Unity. I don't know if that would impact other things though

This is no doubt part of a larger issue!

@ithinkandicode
Copy link
Owner Author

Update: I just realised that prefabs can have children. Here's the full set of objects and settings for the DragonEgg object (on the right). It confirms that the "Flash Sprite" does use the material "M_FlashRedMaterial", and shows the particles too, which are also red

Dragon Egg:

dragon-egg-hatch-settings

HatchParticles:

dragon-egg-hatch-particles

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant