Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

set particle system start colour + random between two

//Main Particle system attached to the thruster
ParticleSystem thrusterPS = thruster.GetComponent<ParticleSystem>();
var main = thrusterPS.main;
main.startColor = new ParticleSystem.MinMaxGradient(thrusterColour1, thrusterColour2);
Comment

PREVIOUS NEXT
Code Example
Csharp :: round double c# 
Csharp :: unity destroy all children 
Csharp :: c# create instance from type 
Csharp :: what type of variable is true or false in c# 
Csharp :: c# string to enum 
Csharp :: net use delete 
Csharp :: c# get pixel color from image 
Csharp :: unity check load scene 
Csharp :: beep sound in c# 
Csharp :: c# int to hex 
Csharp :: c# convert object to string 
Csharp :: how consider the first caracter in Split c# 
Csharp :: print an array c# 
Csharp :: c# split text by spaces 
Csharp :: google sheets sum if check contains string 
Csharp :: Check if two linked lists merge. If so, where? 
Csharp :: Compare trees 
Csharp :: .net mvc c# alert to client browswer window 
Csharp :: generate random name c# 
Csharp :: c# split a string and return list 
Csharp :: how to get the current time in milliseconds .net 
Csharp :: C# push list 
Csharp :: how to get the width of the screen C# 
Csharp :: loop through string array c# 
Csharp :: c# map 
Csharp :: how to create a file through c# script 
Csharp :: c# socket connect timeout 
Csharp :: look rotation only on y axis in unity 
Csharp :: log to console c# unity 
Csharp :: serilog minimum log level 
ADD CONTENT
Topic
Content
Source link
Name
7+6 =