You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			17 lines
		
	
	
		
			536 B
		
	
	
	
		
			C#
		
	
			
		
		
	
	
			17 lines
		
	
	
		
			536 B
		
	
	
	
		
			C#
		
	
| using UnityEngine;
 | |
| 
 | |
| namespace AllIn1VfxToolkit
 | |
| {
 | |
|     public class All1VfxRandomTimeSeed : MonoBehaviour
 | |
|     {
 | |
|         [SerializeField] private float minSeedValue = 0;
 | |
|         [SerializeField] private float maxSeedValue = 100f;
 | |
| 
 | |
|         private void Start()
 | |
|         {
 | |
|             MaterialPropertyBlock properties = new MaterialPropertyBlock();
 | |
|             properties.SetFloat("_TimingSeed", Random.Range(minSeedValue, maxSeedValue));
 | |
|             GetComponent<Renderer>().SetPropertyBlock(properties);
 | |
|         }
 | |
|     }
 | |
| } |