Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
http://spaceengineers.io/spaceengineers/doc/interfaceSandbox_1_1ModAPI_1_1Ingame_1_1IMyTerminalBlock.html ("Properties" Section for the IMyTerminalBlock documentation.)
In python (which I'm very familiar with...) this would be called a "Data Member" element of the class. Most high level programming languages are similar in some form or another. Once I realized that CustomName was a Propertie/DataMember, It was easy peasy.
I did find the solution. It was really simple actually. It came after a few days of messing around with C# to get a better feel for the language. As well as digging in documentation.
Basically replace the line:
beacon.SetCustomName("Hello, Galaxy!");//sets name to "Hello, Galaxy!"
<with>
beacon.CustomName = "Hello, Galaxy!";//sets name to "Hello, Galaxy!"
Thought process for the find:
- IMyBeacon is a child class of IMyTerminalBlock (If I understood things correctly.)
- IMyBeacon would inherit elements from IMyTerminalBlock
- SetCustomName is a method of IMyTerminalBlock/IMyBeacon (now a obsolete method)
- CustomName is a property of IMyTerminalBlock/IMyBeacon (not a method at alll)
because its madening to have code work but the program telling you its wrong and not being able to find the information to fix the problem. so please please respond with a fix or point us to the place to find the information. because i have googled the crap out of it but cant find anything
'IMYTerminalBlock.SetCustomName(String) is obsolete:'
'Use the setter of Customname'
How do we set the name now with current versions of SE?