public override void Process(Object type, BuildTarget buildTarget) { base.Process(type, buildTarget); #if VRC_SDK_VRCSDK2 VRC_MirrorReflection component = (VRC_MirrorReflection)type; #elif VRC_SDK_VRCSDK3 VRCMirrorReflection component = (VRCMirrorReflection)type; #endif switch (buildTarget) { case BuildTarget.StandaloneWindows64: component.m_DisablePixelLights = DisablePixelLights.PC; component.TurnOffMirrorOcclusion = TurnOffMirrorOcclusion.PC; component.m_ReflectLayers = ReflectLayers.PC; break; case BuildTarget.Android: component.m_DisablePixelLights = DisablePixelLights.Quest; component.TurnOffMirrorOcclusion = TurnOffMirrorOcclusion.Quest; component.m_ReflectLayers = ReflectLayers.Quest; break; default: break; } }
public override void Setup(Object type) { base.Setup(type); #if VRC_SDK_VRCSDK2 VRC_MirrorReflection component = (VRC_MirrorReflection)type; #elif VRC_SDK_VRCSDK3 VRCMirrorReflection component = (VRCMirrorReflection)type; #endif DisablePixelLights.Setup(component.m_DisablePixelLights); TurnOffMirrorOcclusion.Setup(component.TurnOffMirrorOcclusion); ReflectLayers.Setup(component.m_ReflectLayers); }