Hi, just found this cool free asset:
https://assetstore.unity.com/packages/vfx/shaders/simple-dissolve-shader-123865It comes with a demo scene and includes the script below.
My coding skills are extremely poor and wish to use the effect to dissolve an object, but using playmaker.
When you play the demo scene the sphere dissolves and then the effect seems to be reversed. I only want it to dissolve, Can someone help?
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DissolveSphere : MonoBehaviour {
Material mat;
private void Start() {
mat = GetComponent<Renderer>().material;
}
private void Update() {
mat.SetFloat("_DissolveAmount", Mathf.Sin(Time.time) / 2 + 0.5f);
}
}