non serializable field unity code example
Example 1: unity no serializefield
[System.NonSerialized]
public int Num = 5;
Example 2: make all variables nonserizlized unity
[SerializeField]
private float num1;
private float num2;
private float num3;
private float num4;
[/SerializeField]