Talk:Compass

From Unify Community Wiki
(Difference between revisions)
Jump to: navigation, search
(New page: When I try to run this script, the console says that the name sender doesn't denote a valid type. Do I need something extra? Any help would be appreciated. Thanks in Advance!)
 
m (Reply)
 
Line 2: Line 2:
  
 
Thanks in Advance!
 
Thanks in Advance!
 +
 +
:This script seems to be intended to demonstrate the [[Sender]] script that's linked at the top of the page.  If you don't want to send the result over a TCP port, you should just remove every line referring to Sender and do some other meaningful thing with the ''heading'' variable.  For example, you could link the script to a GUIText or TextMesh to have them display the value, or you could write an OnGUI function, or you could use the value to set the orientation of a Transform. --[[User:NCarter|NCarter]] 00:51, 29 October 2010 (PDT)

Latest revision as of 07:51, 29 October 2010

When I try to run this script, the console says that the name sender doesn't denote a valid type. Do I need something extra? Any help would be appreciated.

Thanks in Advance!

This script seems to be intended to demonstrate the Sender script that's linked at the top of the page. If you don't want to send the result over a TCP port, you should just remove every line referring to Sender and do some other meaningful thing with the heading variable. For example, you could link the script to a GUIText or TextMesh to have them display the value, or you could write an OnGUI function, or you could use the value to set the orientation of a Transform. --NCarter 00:51, 29 October 2010 (PDT)
Personal tools
Namespaces

Variants
Actions
Navigation
Extras
Toolbox