Search Unity

Xamarin implements C# and F# support in UE4

Discussion in 'General Discussion' started by tommybear, Oct 24, 2014.

Thread Status:
Not open for further replies.
  1. tommybear

    tommybear

    Joined:
    May 3, 2009
    Posts:
    33
    Here: http://mono-ue.github.io
    So looks like Xamarin has grabbed the publicly available UE4 source and implemented C# and F# support in UE4. Pretty awesome, even has hot reload and debugging.

    debugger.png

    Here is some code:

    Code (CSharp):
    1. protected override void ReceiveTick(float DeltaSeconds)
    2. {
    3.     float yawDelta = RotationRate * DeltaSeconds;
    4.     if (!RotateClockwise)
    5.         yawDelta *= -1;
    6.  
    7.     Rotator rotation = ActorRotation;
    8.     rotation.Yaw += yawDelta;
    9.  
    10.     var forwardVec = ActorForwardVector;
    11.     var location = ActorLocation;
    12.     location += DeltaSeconds * Velocity * forwardVec;
    13.  
    14.     SetActorLocationAndRotation(ref location, rotation, true);
    15. }
    Just glanced at the getting started here: http://mono-ue.github.io/getting-started.html . Pretty cool.

    Tommy.
     
    im likes this.
  2. Saxi

    Saxi

    Joined:
    Jun 28, 2013
    Posts:
    381
    This looks like a move to ease the transition of Unity devs to Unreal. Smart move as it will likely get a lot of people to try it, and even move over.
     
  3. Baroni

    Baroni

    Joined:
    Aug 20, 2010
    Posts:
    3,264
  4. tommybear

    tommybear

    Joined:
    May 3, 2009
    Posts:
    33
    It wasn't done by Epic though. It's an interesting move by Xamarin, akin to their move to try and take on iOS and Android developement. The installation actually involves doing an automated patch of the UE4 source code and then doing a compile! Wow, that is nuts.
     
  5. im

    im

    Joined:
    Jan 17, 2013
    Posts:
    1,408
    sad that they dont work with unity technologies better to improve things in unity and instead do this... and to add insult to injury for free...
     
  6. elbows

    elbows

    Joined:
    Nov 28, 2009
    Posts:
    2,502
    its not free:

     
  7. im

    im

    Joined:
    Jan 17, 2013
    Posts:
    1,408
    oh ok thanks... missed it i guess since i didnt see any pricing.

    you mean like starter for free (although limited) and indie for$25/m, ... that pricing... if not how much then?
     
    Last edited: Oct 24, 2014
  8. superpig

    superpig

    Drink more water! Unity Technologies

    Joined:
    Jan 16, 2011
    Posts:
    4,659
    Use the other thread.
     
Thread Status:
Not open for further replies.