Hello everyone.

We have decided to phase out the Mixed Reality Forums over the next few months in favor of other ways to connect with us.

The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.

The plan between now and the beginning of May is to clean up old, unanswered questions that are no longer relevant. The forums will remain open and usable.

On May 1st we will be locking the forums to new posts and replies. They will remain available for another three months for the purposes of searching them, and then they will be closed altogether on August 1st.

So, where does that leave our awesome community to ask questions? Well, there are a few places we want to engage with you. For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality. If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers. And always feel free to hit us up on Twitter @MxdRealityDev.

Fitbox.cs

In the hololens tutorial Hologram 210, the Fitbox.cs was used to make the hologram academy logo locked to the user's head. But if I change the name of this piece of code to "Fit.cs" or "Trial.cs", it won't work even if the codes are exactly the same. Does anyone know why the name of "Fitbox" has a magic power? Thanks!

Answers

  • Continuing, I have commented out most of the code in Fitbox.cs but the blue "Hologram Academy" logo still moves with me in the Hololens. Has anyone really successfully handled the code of Fitbox.cs? It's so weird to me how this code works!

  • When you rename the source file from Fitbox.cs to something else like Trial.cs, you also need to rename the class contained by the source file. This is a Unity thing.

    The "Holographic Academy" logo is a child component of the Fitbox prefab. Its motion is controlled by the parameters passed to the Interpolator object in Fitbox.Start() and Fitbox.LateUpdate(). The Interpolator object itself is created in Fitbox.Start().

  • @timg
    Thanks for your reply! I created a new project and a new game object in that project. I copy and paste the Fitbox.cs code and drag it to the new game object. But the hologram won't move with my head in this case. It turned out that Fitbox.cs only works in the original project downloaded from Hololens tutorial (I created a game object in the original project and drag the Fitbox.cs in, it works!). Is this due to the Fitbox prefab? Do you have any idea why this happens? Thanks a lot!

  • Fitbox also requires Interpolator.cs.

Sign In or Register to comment.