Hello everyone.

The Mixed Reality Forums here are no longer being used or maintained.

There are a few other places we would like to direct you to for support, both from Microsoft and from the community.

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.

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, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.

And always feel free to hit us up on Twitter @MxdRealityDev.
Options

Instantiate a prefab at random points in world?

I have a small room where my app will live Say 40 by 40 feet. I want to make snow fall from the ceiling all around every 2 seconds. How can I modify my script to achieve this?

How are the coordinates created with hololens. Is my Camera 0,0,0 when the world is created?
What does 1 foot real world calculate to hololens world or my transform in the inspector?

Sorry if im unclear not sure how to ask my question with the right terminology.

`using UnityEngine;
using System.Collections;

public class InstantiateSnowFlake : MonoBehaviour {

public GameObject mySnowFlakePreFab;
private float InstatiationTimer = 2.0f;

// Update is called once per frame
void Update () {
    CreatePrefab();
}
void CreatePrefab()
{
    InstatiationTimer -= Time.deltaTime;

    if (InstatiationTimer <= 0)
    {
        Instantiate(mySnowFlakePreFab, transform.position, Quaternion.identity);
        InstatiationTimer = 2.0f;
    }

}

}
`

Best Answer

Answers

  • Options

    I looked a little at the particle systems. I liked the big snowflake i found though for my purposes. Not sure if i can swap out particles for my big snowflake prefab though. Thanks for the conversions.

Sign In or Register to comment.