Example #1
0
        private static void AddContentReference(DynamicBuffer <RoomContentReference> buffer,
                                                RoomContentAuthoring authoring, GameObjectConversionSystem conversionSystem)
        {
            var contentEntity = conversionSystem.GetPrimaryEntity(authoring);

            buffer.Add(new RoomContentReference
            {
                Entity = contentEntity,
            });
        }
Example #2
0
 void OnEnable()
 {
     authoring = (RoomContentAuthoring)target;
 }