Unity Stylized FX


#21

Looks great :o Thanks!


#22

Really nice ! :grinning: And thank you for the breakdown


#23

Looks fantastic! Look forward to seeing more!


#24

Thanks comments everyone!:grinning:
I made simple color pattern tool.
Change prefab name and particle start color.
https://www.youtube.com/watch?v=Kb-m-HzF3Y0


#25

Ohhhhh wowow

Are you using pre-made gradient maps (blue cyan green orange etc.) and plugging them into the particle with the script to change the colors on what I’m assuming are black and white textures? That seems SUPER useful for cranking out lots of work relatively quickly!


#26

I’m changing only the start color of the particle.(it’s very simple way)
It’s not a gradation but a solid color.
I want to change the value by accessing color over lifetime, but I don’t know how to do it…
I think that it is possible to change colors using a gradation map with shader.


#27

I really love this stuff :slight_smile: good work mate! And thanks for the breakdowns. I love how simple yet well designed those are!


#28

You should be able to access the gradient like the example here:
https://docs.unity3d.com/ScriptReference/ParticleSystem.ColorOverLifetimeModule-color.html


#29

Thanks!
Yes, I checked this page.
However, I did not know how to access the gradation key even if I look at this page…


#30

See these pages:
https://docs.unity3d.com/ScriptReference/ParticleSystem.MinMaxGradient.html
https://docs.unity3d.com/ScriptReference/Gradient.html
https://docs.unity3d.com/ScriptReference/GradientColorKey.html

var ps = GetComponent();
var colorOverLifetime = ps.colorOverLifetime;
MinMaxGradient minMaxGradient = colorOverLifetime.color;
Gradient gradient = minMaxGradient.gradient;
Color colorKey = gradient.colorKeys[2].color;

Then I think you just have to set the color on the key, and set the minMaxGradient on the colorOverLifetime.color and it’ll be set.


#31

Edit: too late D:
Maybe something like this? Not sure never actually worked with them.

	//Get the gradient
	Gradient gradient = particlesystem.colorOverLifetime.color.gradient;
	//Get the keys
	GradientAlphaKey[] alphaKeys = gradient.alphaKeys;
	GradientColorKey[] colorKeys = gradient.colorKeys;
	//Work on the keys here
	...
	//Set the keys back
	gradient.SetKeys(colorKeys, alphaKeys);

#32

Thanks your comment Vovosunt and bgolus!
I succeeded changed color keys.
This code set to color lifetime key[1] to red.

void OnGUI () {
		prefab = EditorGUILayout.ObjectField (prefab, typeof(GameObject), true)as GameObject;


	if (GUILayout.Button ("RED")) {	
		ParticleSystem myParticleSystem;
		ParticleSystem.ColorOverLifetimeModule colorModule;
		Gradient ourGradient;
		myParticleSystem = prefab.GetComponent<ParticleSystem>();
		colorModule = myParticleSystem.colorOverLifetime;

		GradientColorKey[] gcol = colorModule.color.gradient.colorKeys;
		GradientAlphaKey[] galp = colorModule.color.gradient.alphaKeys;

		gcol [1].color = Color.red;
		
		ourGradient = new Gradient();
		ourGradient.SetKeys(gcol, galp);

		colorModule.color = ourGradient;
	}
}

#33

I’m uploaded webGL demo :grinning:


#34

Hi,

Really love your work !
Do you intent to put this pack of FX on Unity Asset Store ?

I buy your FT infinity, but this one is more interesting for me, i really need stylized FX, and yours look so fucking cool !


#35

Hey there! I’m only begin to study fx. Can you make a little tutorial how to make animated texture in unity? .н.


#36

Hi!
I’m making animation textures with AfterEffects and Photoshop.
I tried to capture the process of making a simple flame texture.
langage is Japanese.
Effect name “ラフエッジ” is “rough edge” and “モーションタイル” is “motion tile”


#37

I did not express myself clearly, sorry. I’m familiar with 2D fx, and I can draw 2D animation. But I don’t know how to apply a texture animation to a mesh in Unity.

I can model a mesh, add a single (non-animated) texture to this mesh, but how to make animated texture?
Frame by frame animation but on a mesh, like you did here


#38

Do you want to know how to make a texture animation sheet?
Or how to apply animated texture to the mesh with Shuriken?


#39

How to apply animated texture to mesh with Shuriken, yes .н.


#40

OK, like this?