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

Question What is that meaning ? $$anonymous$$athf.$$anonymous$$in

Discussion in 'Scripting' started by shamenraze1988, Jan 3, 2021.

  1. shamenraze1988

    shamenraze1988

    Joined:
    Nov 24, 2020
    Posts:
    208
    I guess the first one is Mathf but what is the property ?

    This is the line :

    Code (csharp):
    1.  
    2. position.y += $$anonymous$$athf.$$anonymous$$in(remainingHeight, amount / steps);
    3.  
    remainingHeight, amount, and steps are all float variables.
    I tried Mathf.Infinity and also Mathf.InverseLerp but it's not working give errors.
     
  2. Chris-Trueman

    Chris-Trueman

    Joined:
    Oct 10, 2014
    Posts:
    1,256
    It's Mathf.Min.
     
    shamenraze1988 likes this.
  3. Mufufu

    Mufufu

    Joined:
    Nov 21, 2013
    Posts:
    1
    Tonymotion likes this.
  4. chemicalcrux

    chemicalcrux

    Joined:
    Mar 16, 2017
    Posts:
    717
    The old Unity Answers posts got mangled. For whatever reason, capital M turned into
    $$anonymous$$


    No idea how that happened! I'm guessing it was a botched migration (maybe they were trying to scrub a username?)
     
  5. kdgalla

    kdgalla

    Joined:
    Mar 15, 2013
    Posts:
    4,357
    It's the same reason that the sphinx has no nose. Unity answers is an ancient relic of a bygone civilization that's abandoned and crumbling. :p
     
    SF_FrankvHoof, Ryiah, dlorre and 2 others like this.
  6. Bunny83

    Bunny83

    Joined:
    Oct 18, 2010
    Posts:
    3,531
    :) Unfortunately that can't be the only reason. They must still have some rogue script, service or security issue since those replacements are still happening and not only on old posts. Lately literally every occurrence of "hi" in affected posts got replaced. Not necessary to mention that those two letters appears quite ofteh in the english language (Just "this" and "which" are enough to screw up many posts). As I said a couple of times already, usually the actual content is not affected. In the past editing the post loaded the original content. Just pressing save again had fixed the post. Currently that's no longer the case, however if a post has several revisions (so it got edited in the past), just selecting a different revision and switching back also brings back the original content. Likewise in the revision history I can still see the unaltered content, even of the seemingly empty comments. I still hope they bring back the comments. I wrote 12k comments on UA and I can't go through all of them to bring them back. Some are also pointless without the other comments of the conversations.

    Just a couple of month ago we got this Q which seems promising at first. After all those years of slow degrading they may finally fix some of the issues. However the reality was that just a day after this "contact" with UA, ALL comments went blank and even new ones didn't work. A day later we could post new comments again, but old ones are still blank. The replacement of "hi" started a few weeks later I think. So currently it just looks like the next step of degrading...
     
  7. halley

    halley

    Joined:
    Aug 26, 2013
    Posts:
    1,873
    My assumption is that management didn't like it when the community told them to keep it, so they're going to keep it but spend absolutely zero dollars on fixes. Wouldn't surprise me if they privately nudged a pal for a favor to introduce the bugs we're seeing.