There is absolutely no reason that unrealised gains cannot be taxed (and some tax systems do indeed tax them in various ways).
There are cases where taxes can hurt investment, but you're really talking about quite high rates. For instance, the US peak rate of income tax used to be 94%. That almost certainly _did_ hurt investment.