Neodroid  0.2.0
Machine Learning Environment Prototyping Tool
HelloRotationSpeedComponent.cs
Go to the documentation of this file.
1 #if ECS_EXISTS
2 using System;
3 using Unity.Entities;
4 using UnityEngine.Serialization;
5 
6 namespace droid.Runtime.EcsPrototyping
7 {
8 // Serializable attribute is for editor support.
9  [Serializable]
10  public struct HelloRotationSpeed : IComponentData
11  {
12  public float rotationalMultiplier;
13  }
14 
15 // ComponentDataWrapper is for creating a Monobehaviour representation of this component (for editor support).
16  [UnityEngine.DisallowMultipleComponent]
17  public class HelloRotationSpeedComponent : ComponentDataWrapper<HelloRotationSpeed> { }
18 }
19 #endif