Тэги:
#Unity3D #Unity_(Software) #Software_(Industry) #Tutorial_(Media_Genre) #C#_(Programming_Language) #Scripting_Language_(Software_Genre)Комментарии:
wtf is this tutorial trying to achieve?...
Ответитьthanks you
ОтветитьReally helped thank you, I have found a way to enlarge the object from all axis rather than just along the X
using System.Collections;
using UnityEngine;
public class Enlarge : MonoBehaviour
{
public float speed = 5f;
Vector3 temp;
void Start()
{
}
void Update()
{
temp = transform.localScale;
temp.x += Time.deltaTime;
temp.y += Time.deltaTime;
temp.z += Time.deltaTime;
transform.localScale = temp;
}
}
is there a way to slow down the growing time? sorry im new to coding
Ответитьnice
ОтветитьSir please tell me, how can I make script, when 2 object collide with each other and size is increase and decrease...
Ответитьace thank you saw this great
ОтветитьHow to add a point where you want your object to stop growing?
I am a newbie, so I could use help please.
Thank you for taking your time to read the comment and thx in advance for the help :)
I usually don't comment anywhere, but this video just saved my ass, THANK YOU very much! It's adressing exactly the problem I faced and couldn't find a solution for, and it's easy to follow and to the point. Great work!
ОтветитьThank you sir, I struggled for a long time until i found this
ОтветитьIndian accent, check.
Weird audio, check.
Good tutorial, check.
quick question. how do i make it stop scaling at a certain number?
ОтветитьU helped me a lot
Thankx Dude
super helpful, thanks!
Ответитьhow to reset after wide obstacle position??
ОтветитьI want to scale the object along sideways not from axis can u plz help ??
ОтветитьHi Raja,
Can you make a tutorial on how to Scale model from small to big size using a button in unity.For example scaling a car model to toy size to real time size by pressing a button, but it should be gradually expand not suddenly expand, how to do it.
So we make vector3 speed a "public" variable so that it can be accessed by void update/start, right? So why do we not have to make "temp" a public variable ?
Ответитьsimple to the point, I watched this then nailed my problem. Thanks!
ОтветитьThis was very useful in helping me make my character controller duck for me. Thanks!
Ответитьawesome tutorial as always!
ОтветитьHello @Charger Games, Thanks for this tutorial. Have a question regarding Scaling. I have 8 cubes, I would like to scale these cubes using a UI slider. I was able to write code to control scale using slider, however the scaling is not uniform for left side objects (4 left cubes) vs right side cubes. The left scales on x axis and y axis, however the right scales on negative x and z axis! not sure why same slider does two different scaling, any help would be great.
Ответитьhello, please kindly help me: after I press "play", the cube just disappear from the screen. I put a debug.log function and the resul in the console is ok, meaning the x dimension of the cube increase with the value of "speed". But I can't figure out why the cube disappear. thank you !
Ответитьi want to shrink the game object so i am writing the code (temp.x -= Time.deltaTime;) but it keeps rescaling
sorry i am new to this ....i want to destroy the sphere once it comes to x=0 , y=0 ,z= 0.
OMG!! Thank you sooo much! I've been trying to figure this problem out for hours!! I've read through Unity doc's and searched random msg boards and I still couldn't figure out how to randomly change the scale of my generated gameObjects. I'm coding in JS so I had to tweak your code slightly but YOU ARE A LIFESAVER!!
Ответитьvery good and simple to understand video ^ ^
ОтветитьThank you!
ОтветитьHi Radja, how come between position, rotation and scale. only rotation that can access directly without use Vector3? thanks in advance :)
ОтветитьThis is pretty nice. It's exactly what I am looking for. I also am keen to know how do we limit the size of the object. Like say, I want the object to stop growing when it reaches a particular size. How must I achieve this?
Ответитьgood stuff
Ответитьhey thanks for the video . but i want to scale the object using a ui button . how can i do that ?
ОтветитьHmm i want it just to change its size and then stop :\
Ответитьwhy we didn't multiply Time.deltaTime in rotation script? i thought we had to multiply it every time where we are animating an object.
Ответитьhi.. I have made a project in unity for Android I want it to scale according to the devices resolution. can u do a video on that please or if u have done it already plz give the URL. thanks.. u r Chanel is awesome keep up the good work.
Ответитьhi raja ji,
in this video it continuously getting scaled....but , after some scaling if i want to stop how to do ?i mean if click on the object it should zoomed.i mean i am examing the object.....if i click on the object , only that object should be visible on the screen and if i press "ESC" it should go back to normal size and position.......can u guide me pls...
thank u for your tutorial i have a question , am creating a fps game i dono how to add a firing button and credits button on touch pad of my android phone
plz help me out this
Hey will you continue the racing game tutorial?
ОтветитьThank you,Raja,谢谢你
ОтветитьThanks Raja for these videos. Just wanted to confirm if you are going to add more videos in this tutorial series ?
ОтветитьThank you Raja, 8-)
Ответить