People Playground Modding
HomeIntroductionFile StructureEmpty mod templateDetailsLayersMod LifecycleMetadataExtended mod descriptionScript FilesShady Code RejectionThe Unity EngineBuilt-in componentsGame assetsTutorialsCreating a modCreating a custom itemCreating a custom behaviourCreating a custom syringeCreating a custom liquidCreating a gun with a custom projectileCreating a custom weapon attachmentSaving, loading, copying, and pastingCustom liquid mixersCode snippetsCartridgesMaterialsParticle effectsPhysical propertiesSpawnable itemsActivation actionRandom sprite assignmentCreating a background scriptChange environment settingsCreate an explosionCreating a lightCustom human spriteDebug drawingEditing pre-existing itemsEmpty entry pointListen for eventsMap IDsRegistering an itemAdding a firearmSpawn particles on activationBasic texture pack systemSource documentationAcceleratorBoltBehaviourAcceleratorGunBehaviourAcidPoisonAcidPoolBehaviourAcidSyringeAcidSyringe.AcidLiquidActionControlBehaviourActionRepresentationActionRepresentation.ActionCategoryActionRepresentation.ActionUniverseActivateIfExpandedGoreActivateIfTutorialActivations.ActivationEventActivations.ActivationEventTypeActivationPropagationActivations.ActivationTargetActivationToggleBehaviourActivationTransformerBehaviourActivatorElectrodeBehaviourActiveSettingIfNotVsyncActOnCollideActOnDestroyActOnDisintegrateActOnShotActOnUserDeleteAdditionalDecalEffectAdrenalinePoisonAdrenalineSyringeAdrenalineSyringe.AdrenalineLiquidAerialFaithPlateBehaviourAirfoilBehaviourAirfoilBehaviour.WingTypeAliveBehaviourAmbientTemperatureGridBehaviourAmbientTemperatureGridBehaviour.CellAndroidLaserBehaviourAndroidSparkCreatorAntiAliasingAntiAliasingRadioButtonAOEPowerToolAppearWhenMouseNearApplicationQuitButtonBehaviourAppliedBandageBehaviourArchelixCasterBehaviourArchelixCasterBoltBehaviourArrayClonerAtomBombBehaviourAtomBombExplosionBehaviourAudioSourceTimeScaleBehaviourUnityEngine.UI.Extensions.AutoCompleteSearchTypeAutomaticSentryControllerAutomaticWheelJointCreatorBackgroundItemLoaderBackgroundItemLoaderStatusBehaviourBallisticsEmitterBallisticsEmitter.CallbackParamsBalloonBehaviourBandageBehaviourBandageWireToolBaseBoltBehaviourBaseControlNamesBathroomMirrorControllerBatteryAttachmentBehaviourBeamCannonBehaviourBeamformerBehaviourBehaviourManager BellBehaviourBellClipBellClipContainerBlackHoleBehaviourBlasterBehaviourBlasterboltBehaviourBleedingParticleBehaviourBloodBloodContainerBloodContainer.PressureDirectionBloodContainer.RefFloatBloodContainer.SerialisableDistributionBloodExplosionBehaviourBloodImpactBehaviourBloodTankBehaviourBloodTankBehaviour.TankModeBloodWireBehaviourBloodWireToolBloomModeBloomModeRadioButtonBlueUseWireToolBoatMotorBehaviourBooleanRadioButtonBoundingBoxBehaviourBreakJointOnBurnBehaviourBreakJointOnShotBehaviourBugReportFormBehaviourBulbBehaviourBulletTracerPoolBurnableSpriteBehaviourBusGeneratorBehaviourButtonBehaviourCableBehaviourCableWireToolCameraControlBehaviourCameraShakeBehaviourCameraSyncBehaviourCannotShareCarBehaviourCardiopulmonaryBypassMachineBehaviourCartridgeCatalogBehaviourCatalogDataCatalogDropdownBehaviourCatalogToggleBehaviourCategoryCategoryButtonBehaviourCeilingTurretBehaviourCenterOfBoundsCenterOfGravityCentrifugeBehaviourChainsawBehaviourChainsawBehaviour.SoftConnectionActivations.ChannelChemistryChemistry.BeverageM04Chemistry.DebugDiscolorationLiquidChemistry.ExoticLiquidChemistry.InertLiquidChemistry.TritiumCirculationBehaviourClearButtonBehaviour
public class ParallaxBehaviour
Inherits MonoBehaviour
[RequireComponent(typeof(Camera))]
Moves and scales a transform to make it appear far away. This component requires a camera
Fields
public float Depth
The apparent depth of the object
public Vector2 Offset
The apparent offset of the object
public Vector2 Scale
The apparent size of the object
public Transform Container
The object to transform
Attention!
This member is obsolete and should not be used. It is a remnant from the past.
bi bij bibi