Hi
I made lot of images in photoshop and I use them with GUI.Drawtexture and for size I use Screen.weigth and Screen.height.The image is going trought all the window even when I scale it.But the problem comes when I try using GUI.Label or button,better label cuz I dont need it for clicking…I drawn some images that contain only text but it has some effects.soo by trying to use them I set it like image.width and image.height for size and position by changing those 2 paramaters.I play the game to set up the positions soo the text updates all the time soo I dont need to play and stop again and again and…soo I set the letters in right position and size with window option turned on “Maximize on Play” and everything looks really great and like it should but if I try to change the size of the window that part remains the same,it’s the same size and position and I understand that I didnt gave to him any paramaters to rescale acording the window but I dont know how.I tried to use GUI.DrawTexture but that is rescaling but it’s not the right size or position.
Is there any way of solving my problem,maybe unite DrawTexture with Label…
I am asking cuz I have lot of names and the would be like scrolling but trought 5 buttons/labels…
Also bonus questions,if I add 3D model in from of camera with GUI on will I be able to see the object?
Cuz I left a window that has transparent pixels in photoshop soo it should work…
Also I want you to help me with this code cuz everything works but when I rotate camera to some side a bit the movement is still looking as before not going acording camera soo if I rotate the camera for 180 degrees left becomes right and forward becomes back to what camera sees,it’s like the camera is looking at character not in front of it…
it should be easy fix…
function Update () {
transform.localRotation = Quaternion.identity;
var Forward = Input.GetKey("up")||Input.GetKey("w");
var Backward = Input.GetKey("down")||Input.GetKey("s");
var GoLeft = Input.GetKey("left")||Input.GetKey("a");
var GoRight = Input.GetKey("right")||Input.GetKey("d");
if(Forward){
gameObject.transform.Translate(Vector3(0,0,1* Time.deltaTime));
print("move forward");
}
if(Backward){
gameObject.transform.Translate(Vector3(0,0,-1* Time.deltaTime));
print("Move backwards");
}
if(GoLeft){
gameObject.transform.Translate(Vector3(-1 * Time.deltaTime,0,0));
print ("going left");
}
if(GoRight){
gameObject.transform.Translate(Vector3(1*Time.deltaTime,0,0));
print("going right");
}
}
Btw I am having some trouble setting up particles effects that look like cartoon/anime and it’s suppose to be tornado,I can make it similar but it’s lacking quality,cuz I want it to look very much as anime,also how can I center those to character,soo it goes around character?
Btw what would be the best way of starting a level…I thought to show the stadium by animating camera to go around it and show some stuff…
Thanks ![]()