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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Tiny Text Renderer broken ?

Discussion in 'Project Tiny' started by jnikaes_dualcat, Sep 14, 2020.

  1. jnikaes_dualcat

    jnikaes_dualcat

    Joined:
    Jul 2, 2020
    Posts:
    6
    Hi,

    Started looking into Project Tiny today, and I'm trying to use the Tiny Text Renderer component.
    I have launched the TinyRacing sample which uses this component, but it unfortunately crashes at startup:

    NullReferenceException: Object reference not set to an instance of an object
    Unity.Rendering.MeshRendererConversion+<>c__DisplayClass1_0.<OnUpdate>b__0 (UnityEngine.MeshRenderer meshRenderer, UnityEngine.MeshFilter meshFilter) (at Library/PackageCache/com.unity.rendering.hybrid@0.8.0-preview.18/Unity.Rendering.Hybrid/MeshRendererConversion.cs:24)
    Unity.Entities.EntityQueryBuilder.ForEach[T0,T1] (Unity.Entities.EntityQueryBuilder+F_CC`2[T0,T1] action) (at Library/PackageCache/com.unity.entities@0.14.0-preview.18/Unity.Entities/EntityQueryBuilder_ForEach.gen.cs:4170)
    Unity.Rendering.MeshRendererConversion.OnUpdate () (at Library/PackageCache/com.unity.rendering.hybrid@0.8.0-preview.18/Unity.Rendering.Hybrid/MeshRendererConversion.cs:19)
    Unity.Entities.ComponentSystem.Update () (at Library/PackageCache/com.unity.entities@0.14.0-preview.18/Unity.Entities/ComponentSystem.cs:107)
    Unity.Entities.ComponentSystemGroup.UpdateAllSystems () (at Library/PackageCache/com.unity.entities@0.14.0-preview.18/Unity.Entities/ComponentSystemGroup.cs:513)
    UnityEngine.DebugLogHandler:LogException(Exception, Object)
    Unity.Entities.Conversion.JournalingUnityLogger:LogException(Exception, Object) (at Library/PackageCache/com.unity.entities@0.14.0-preview.18/Unity.Entities.Hybrid/GameObjectConversion/JournalingUnityLogger.cs:50)
    UnityEngine.Debug:LogException(Exception)
    Unity.Debug:LogException(Exception) (at Library/PackageCache/com.unity.entities@0.14.0-preview.18/Unity.Entities/Stubs/Unity/Debug.cs:19)
    Unity.Entities.ComponentSystemGroup:UpdateAllSystems() (at Library/PackageCache/com.unity.entities@0.14.0-preview.18/Unity.Entities/ComponentSystemGroup.cs:518)
    Unity.Entities.ComponentSystemGroup:OnUpdate() (at Library/PackageCache/com.unity.entities@0.14.0-preview.18/Unity.Entities/ComponentSystemGroup.cs:461)
    Unity.Entities.ComponentSystem:Update() (at Library/PackageCache/com.unity.entities@0.14.0-preview.18/Unity.Entities/ComponentSystem.cs:107)
    Unity.Entities.GameObjectConversionUtility:Convert(World) (at Library/PackageCache/com.unity.entities@0.14.0-preview.18/Unity.Entities.Hybrid/GameObjectConversion/GameObjectConversionUtility.cs:146)
    Unity.Entities.GameObjectConversionUtility:ConvertIncrementalInitialize(Scene, GameObjectConversionSettings) (at Library/PackageCache/com.unity.entities@0.14.0-preview.18/Unity.Entities.Hybrid/GameObjectConversion/GameObjectConversionUtility.cs:207)
    Unity.Scenes.Editor.LiveLinkDiffGenerator:Convert(Scene, Hash128, ConversionFlags, BuildConfiguration) (at Library/PackageCache/com.unity.entities@0.14.0-preview.18/Unity.Scenes.Editor/LiveLinkDiffGenerator.cs:177)
    Unity.Scenes.Editor.LiveLinkDiffGenerator:UpdateLiveLink(Scene, Hash128, LiveLinkDiffGenerator&, Int32, LiveLinkMode, BuildConfiguration) (at Library/PackageCache/com.unity.entities@0.14.0-preview.18/Unity.Scenes.Editor/LiveLinkDiffGenerator.cs:219)
    Unity.Scenes.Editor.LiveLinkConnection:AddLiveLinkChangeSet(Hash128, List`1, LiveLinkMode) (at Library/PackageCache/com.unity.entities@0.14.0-preview.18/Unity.Scenes.Editor/LiveLinkConnection.cs:383)
    Unity.Scenes.Editor.LiveLinkConnection:Update(List`1, NativeList`1, NativeList`1, LiveLinkMode) (at Library/PackageCache/com.unity.entities@0.14.0-preview.18/Unity.Scenes.Editor/LiveLinkConnection.cs:330)
    Unity.Scenes.Editor.EditorSubSceneLiveLinkSystem:OnUpdate() (at Library/PackageCache/com.unity.entities@0.14.0-preview.18/Unity.Scenes.Editor/EditorSubSceneLiveLinkSystem.cs:47)
    Unity.Entities.ComponentSystem:Update() (at Library/PackageCache/com.unity.entities@0.14.0-preview.18/Unity.Entities/ComponentSystem.cs:107)
    Unity.Entities.ComponentSystemGroup:UpdateAllSystems() (at Library/PackageCache/com.unity.entities@0.14.0-preview.18/Unity.Entities/ComponentSystemGroup.cs:513)
    Unity.Entities.ComponentSystemGroup:OnUpdate() (at Library/PackageCache/com.unity.entities@0.14.0-preview.18/Unity.Entities/ComponentSystemGroup.cs:461)
    Unity.Entities.ComponentSystem:Update() (at Library/PackageCache/com.unity.entities@0.14.0-preview.18/Unity.Entities/ComponentSystem.cs:107)
    Unity.Entities.ComponentSystemGroup:UpdateAllSystems() (at Library/PackageCache/com.unity.entities@0.14.0-preview.18/Unity.Entities/ComponentSystemGroup.cs:513)
    Unity.Entities.ComponentSystemGroup:OnUpdate() (at Library/PackageCache/com.unity.entities@0.14.0-preview.18/Unity.Entities/ComponentSystemGroup.cs:461)
    Unity.Entities.ComponentSystem:Update() (at Library/PackageCache/com.unity.entities@0.14.0-preview.18/Unity.Entities/ComponentSystem.cs:107)
    Unity.Entities.DummyDelegateWrapper:TriggerUpdate() (at Library/PackageCache/com.unity.entities@0.14.0-preview.18/Unity.Entities/ScriptBehaviourUpdateOrder.cs:333)


    I tried in the 2D Entities Starter project, with the same error.

    Thanks for your help
     
  2. jnikaes_dualcat

    jnikaes_dualcat

    Joined:
    Jul 2, 2020
    Posts:
    6
    Ok my bad it's one of these features that doesn't work in editor.

    I got passed this error, however I can't find a way to display a text in front of a sprite:



    I tried:
    - Two cameras with different culling flags. I can't get culling flags to be interpreted by project tiny
    - Massive Z difference between the two objects
    - Set the Render Queue of the Sprite to a very low value
    - Change the Render Layer of the sprite to something before 'Default'

    It always stays in front in the first frame, then pops right behind.

    It works perfectly if I use a Quad instead of a Sprite though.
     
  3. jnikaes_dualcat

    jnikaes_dualcat

    Joined:
    Jul 2, 2020
    Posts:
    6
    Ok my bad again, I realized after browsing through the forums that Text / 2D is not supported yet.