Lets see how to make an animated object on our game.
We need an IMAGE that we will drag and drop to our EDITOR...
Lets see how to make an animated object on our game.
We need an IMAGE that we will drag and drop to our EDITOR...
Do you know how to add a background to your game/app in Unity?
Lets look how...
how to solve this error...
error CS1061: 'SpriteRenderer' does not contain a definition for 'IsUsingDeformableBuffer'
TO SOLVE THIS ERROR, GO TO "WINDOW-PACKAGEMANAGER" AND RESET PACKAGES:
"got to PackageManager, type 2D remove all, and install it again!"
thanks to https://stackoverflow.com/questions/71168878/unity-spriterenderer-error-what-i-need-to-do
Si tenemos dos scripts:
1- main.cs
2- OL1AScript.cs
Y queremos acceder desde MAIN («1») al script «2»:
EN PRIMER LUGAR, AMBOS SCRIPTS DEBEN ESTAR ASIGNADOS A UN OBJETO , mediante el editor (uno cualquiera que creemos, como ‘objeto1’)
MAIN.CS
public OL1AScript ol1ascript1;
ol1ascript1 = GameObject.Find("objeto1").GetComponent<OL1AScript>();
We go to:
EDIT-PREFERENCES-EXTERNAL TOOLS
Select «Visual Studio».
IN «Generate csproj files», check everything
PROBLEM: big size components on our editor.
SOLVE:
add your «Camera» inside your «Canvas»:
1- in «Canvas», «Render Mode» select «Screen Space-Camera»
2- drag and drop «Main Camera» to «Render Camera» Canvas ( inspector)
Lets see how to make an animated object on our game. We need an IMAGE that we will drag and drop to our EDITOR...