I saw this but Visual Studio is not highlight correct so I thought the syntax must be out of date- what is the correct syntax?
instantiate still works,
at which line you get the error?
Fix this first.
This may help you with intellisense and possibly other Visual Studio integration problems:
Sometimes the fix is as simple as doing Assets → Open C# Project from Unity. Other times it requires more.
https://discussions.unity.com/t/778503
Also, try update the VSCode package inside of Unity: Window → Package Manager → Search for Visual Studio Code Editor → Press the Update button
Also, this: https://discussions.unity.com/t/805330/7
Not sure if correctly or as correct.
I would give you screenshot but not much time to reply.
The declaration:
public Gameobject(nTile);
nTile being a prefab
is both highlighted but Gameobject requires arguments unlike the given example video.
public Sprite has only public highlighted and Sprite is not on the rolldown menu. So I thought given this is 5 year old video the syntax is wrong because it changed with the last 2020 version- I have Unity and Visual as the most recent versions not betas.
This is not valid in any meaningful way.
C# syntax was never valid above. Make sure you’re not using a Javascript video.
Also, if you just want to make N objects, as @mgear points out, use Instantiate() in a loop.
Also, don’t needlessly make it hard on yourself: start with a video from the past year or two at the oldest.