docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method TestTryGetWithAndWithOutExistingComponent

    TestTryGetWithAndWithOutExistingComponent()

    This test validates that if a component does not exist the NetworkBehaviourReference will not throw an invalid cast exception. (It is a full integration test to assure the NetworkObjects are spawned)

    Declaration
    [UnityTestAttribute]
    public IEnumerator TestTryGetWithAndWithOutExistingComponent()
    Returns
    Type Description
    IEnumerator
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)