Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Question Play on editor alway get InvalidOperationException: GetSingletonEntity on Tiny ver 0.28.0-preview40

Discussion in 'Project Tiny' started by tuandinlygo, Aug 8, 2020.

  1. tuandinlygo

    tuandinlygo

    Joined:
    Mar 23, 2020
    Posts:
    5
    Hi everyone, I'm just make a demo of Project Tiny. In a simple scene, i'm alway get InvalidOperationException: GetSingletonEntity.
    I don't know what to do.
    Here is my screenshot & code.
    Screen Shot 2020-08-08 at 8.53.08 AM.png

    My scene: Screen Shot 2020-08-08 at 9.06.37 AM.png

    My code
    Code (CSharp):
    1. using System.Collections;
    2. using System.Collections.Generic;
    3. using Unity.Entities;
    4. using UnityEngine;
    5. [GenerateAuthoringComponent]
    6. public class RotateSpeedData : IComponentData
    7. {
    8.    public float Value;
    9. }
    My unity version is 2020.1.0f1
    Am I doing something wrong. Please help :(
    Thank you.
     
    twDuke likes this.
  2. AbdulAlgharbi

    AbdulAlgharbi

    Unity Technologies

    Joined:
    Jul 27, 2018
    Posts:
    319
    Is this error shows up when entering PlayMode?
    Or while building the actual game?
     
  3. tuandinlygo

    tuandinlygo

    Joined:
    Mar 23, 2020
    Posts:
    5
    This error shows up when enter PlayMode in DemoScene. But in SubScene, this error won't show up.
     
  4. AbdulAlgharbi

    AbdulAlgharbi

    Unity Technologies

    Joined:
    Jul 27, 2018
    Posts:
    319
    Sorry but playmode is currently not supported in Tiny 0.28
    We are working to get this solved but for now please use build and run for iteration
    I recommend using dotnet builds for iteration
     
    tuandinlygo likes this.