Super noob question on Debug.Log or Log
hi sorry I am very new to scripting. my question is; how do I find what value will be returned by the following line of code:
Vector3 targetDirection = Vector3.Normalize(target.position - turretBase.position);
how do I find out what values will be assigned to " targetDirection "?
is there some way i can make unity give it to me as a message using debug.log ro somthign similar? ty
Answer by Rytje · Sep 26, 2015 at 03:37 PM
Debug.Log(targetDirection);
Does that work?
yup, thanks, I dont know why it wasnt working for me before
Your answer
Follow this Question
Related Questions
Unity windows standalone build crashes on opening output_log.txt if built on a different machine 0 Answers
Print DebugLog to a textbox? 1 Answer
Game Crashing on Android (logs) 2 Answers
How to search logs and only highlight matches not hide them 1 Answer
How to console print everytime something is added to a list 1 Answer