A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store and participate in the Unity community.
Separate names with a comma.
Okay it seems this is related to the use of "Screen Space - Overlay" on the Canvas because with "Screen Space - Camera" it works totally fine!
Hey guys :) So in my game I am using a Canvas and Images to display cards and I have buttons on them to click on them. Now I wanted to create a...
Thanks pierre!
So for some reason if I name my folder "GameResources" I can't use images as e.g. background in a VisualElement. But if I rename it to something...
Hey @FMark92 :) I am sitting here thinking about how to save the cardinformation like cardname, cardtext, cardtype, etc. and got 2 solutions: 1....
Thanks! That did it! :)
Now the next thing is that my Image gets scaled when created.. I don't want that :( I have a Layout in my Panel where I put the cards in as...
I want to load a new Spriteimage to set the image of my card. Found the mistake. I wrote sprite = Resources.Load<Sprite>("/Sprites/"+cardname);...
I can but it's Null :/ Do I load it the wrong way? Idk..
If I check for existence with this code public void InitCard(string identifier){ cardname = identifier; sprite =...
@FMark92 I already did here: Post #28 :) Maybe I did something wrong with the prefab? [SPOILER] If I do this Debug.Log (sprite.name); after...
Wb @FMark92 :) Well.. I still have the problem of not being able to load the images properly.. It's always white when creating the card :(
@FMark92 Hey! Now I had a breaktime because of study^^' So what would you do instead of using resources? And my images are 2D Sprites so that's...
@FMark92 So I can draw a card and instantiate it to have a blank/white Card GameObject. Now I want to change the sprite source of the image but I...
Ahhh yeah that makes sense :)
I asked because you said that I have to have instances of my effects somewhere because I can't reference them uninstantiated. Well I wanted to...
So I can have Scripts and use them without attaching them to a gameobject, like the Effects? How to reference them then? Btw do I think about how...
I think I should read something about MonoBehaviour because I don't know anything about them..^^' That way I know if it is needed to implement it...
After googling a bit I read that you shouldn't use a constructor because it would be called multiple times when used in MonoBehaviour. Read here:...
I think I finally got it now, thank you! Shall I initiate the id, effect and sprite for the card in the Start() method or better use a...