Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

where can i find the unity syntax?

Discussion in 'General Discussion' started by smokingbunny, Dec 15, 2014.

  1. smokingbunny

    smokingbunny

    Joined:
    Jul 24, 2014
    Posts:
    98
    hello all,

    im after the unity syntax. specifically for c#.
    i want to work on a plugin, not for sublime text but another text editor, but i cant seem to find any info on my internet searches for the syntax and for the data sheets for the auto-complete. bit weird i cant find anything

    does anyone have any pointers or links that they could share please?

    thanks a bunch
     
  2. angrypenguin

    angrypenguin

    Joined:
    Dec 29, 2011
    Posts:
    15,500
    What is it you're having trouble finding? C# is a well documented language, best covered by Microsoft themselves (though note that while the language is the same Unity uses Mono, a 3rd party implementation).

    If it's the Unity API you need, that's documented pretty well in the scripting reference.
     
  3. smokingbunny

    smokingbunny

    Joined:
    Jul 24, 2014
    Posts:
    98
    aye i have looked at the api, which has helped.
    its unity based auto-complete that im after. and from searching on other languages etc i have found something like a .js file or something that has many auto-complete or syntax.

    c# is fine but its just the unity side im after. though i think im just going to have to stick with the api for now

    cheers
     
  4. Ostwind

    Ostwind

    Joined:
    Mar 22, 2011
    Posts:
    2,804
    I doubt there is any good external list for this since modern editors get the auto-complete from assemblies/class
     
  5. smokingbunny

    smokingbunny

    Joined:
    Jul 24, 2014
    Posts:
    98
    true. just searching in MD and unity for a list of some sort inside the applications, but cant find anything for unity. though more than likely looking in the wrong place.

    but as said, i think ill just have to take apart the api
     
  6. angrypenguin

    angrypenguin

    Joined:
    Dec 29, 2011
    Posts:
    15,500
    Ahh, now I get what you're after. Someone's put improved intellisense listings on the Asset Store. I also find that using UnityVS + VS2013 CE is a pretty sweet mix.

    MonoDevelop used to be alright, but it's steadily got worse for a while now. It does in fact have intellisense, it just doesn't work particularly well. (I've actually sometimes found it to be worse than not having it at all. I've often had occasions where it's bugged out and replaced correct identifiers with incorrect ones that still compile.)
     
  7. smokingbunny

    smokingbunny

    Joined:
    Jul 24, 2014
    Posts:
    98
    im actually on mac. and MD feels ok but is really heavy. takes ages to load and update files.
    what i want to work on is just auto-compete for another text editor like sublime. its currently being updated to allow making auto-complete plugins easier to make so am just gathering info befoe it comes out just so i can jump right in ;)

    ive not really played with MD before but can feel why many dont like it. it also doesnt stay up to date with the xamarin one from what ive read, features etc

    i was looking at the api before and feel that ill just have to dig deep into that. the info on these forums for sublime has been good, but the aut-complete is not great so i end up switching back to MD. I want to make a new pugin that specifically targets just unity based thigs, with obvious c# stuff related to unity but also if you are working in 2d or 3d. so yau re then not given everything for tings you will never need depending on your projectv the current sublime one seem really hevy in my eyes and give everything, which is a bit anti productive

    il have a look at the improved instellisence as well. is it the one that called 'uintellisesne'? ive come across that one and seems good.

    thanks again
     
  8. smokingbunny

    smokingbunny

    Joined:
    Jul 24, 2014
    Posts:
    98
    oh please dont barter me about my long mailings sometimes that dont make sense with wrong spellings and bad whatever. i have dyslesia. i can work brilliantly in my music and code based things. but text and words are hard a lot of the times ;)

    cheers ;)
     
  9. smokingbunny

    smokingbunny

    Joined:
    Jul 24, 2014
    Posts:
    98
    on the note of MD talk. will there be an update for unity5? personally i would think o if people have and till complan about, the good cause
     
  10. angrypenguin

    angrypenguin

    Joined:
    Dec 29, 2011
    Posts:
    15,500
    There are existing C#/Unity extensions for Sublime. I never bothered with them myself, but if you do a search here there's a huge thread about them somewhere.
     
  11. smokingbunny

    smokingbunny

    Joined:
    Jul 24, 2014
    Posts:
    98
    oh i did find it/them. helpful but on trying it felt really messy. everything and i mean everything came up on auto-complete.
    not even something as simple as a 'for' loop popped up, which is weird to me. because sublime has a great way to work with code. it felt like a step back. thats why i said before that i end up switching back to MD instead of using sublime because of all pitfalls in using sublime.

    well i have started to think on how to do this new plugin, so its just working through the API. but im going to make sure that not everything pops up, make it smart and not cumbersome. personally find if everytihgn pops up its anti-productive if you cant actually find the completes you need.

    but thanks though.
    sublime is lovely but im starting to work from a different text editor now [sadly only mac, but ive been a mac guy for 20 years now], so may sell my licence for sublime, which is for 3+. but more when i get my much needed plugin made to the other editor. a new update is coming for it that makes it easier to build plugins so am just waiting on that.

    cheers