コード例 #1
0
        protected override void OnCreate()
        {
            base.OnCreate();

#if UNITY_2020_2_OR_NEWER
            m_LightMapConversionContext = new LightMapConversionContext();
#else
            m_LightMapConversionContext = null;
#endif
        }
コード例 #2
0
        /// <summary>
        /// Construct a conversion context that operates within <see cref="conversionSystem"/> and
        /// that uses <see cref="dstEntityManager"/> to create entities.
        /// </summary>
        public RenderMeshConversionContext(
            EntityManager dstEntityManager,
            GameObjectConversionSystem conversionSystem,
            LightMapConversionContext lightMapConversionContext = null)
        {
            m_DstEntityManager = dstEntityManager;
            m_ConversionSystem = conversionSystem;

#if USE_HYBRID_LIGHT_MAPS
            m_LightMapConversionContext = lightMapConversionContext;
            m_LightMapConversionContext?.BeginConversion();
#endif
        }