cinemachine - documentation.help · one cameraman smoothly passing the camera to another cameraman....
TRANSCRIPT
Cinemachine
WelcometoCinemachine
Cinemachineisasuiteof‘smart’proceduralcameramoduleswhichallowyoutodefinetheshotandthey’lldynamicallyfollowyourdirection.
Setupshotswhichtrackandcomposemotioninrealtime,likeAIcameraoperators.Theproceduralnaturemakesthembug-resistantastheyalwaysworktomaketheshotbasedonyourdirection.That’sgreatforgameplay,butthey’realsoamazinglyfastforcutscenes.Changeananimation,avehiclespeed,groundterrain-whatever-andCinemachinewilldynamicallymaketheshot.Youcanusereallytelephotolensesandnothavetoupdatethecutsceneifthingschange.
TheBrainTheideaistotelltheUnitycamerawheretogoandwhattodoinresponsetogameplayandsceneevolution.Todothis,thefirststepistogivetheUnityCameraaCinemachineBrainbehaviour.Thinkofthatasthemoviedirector,whochoosesamongtheavailablecamerashotsfortheonethattellsthebeststoryatanygivenmoment.
ThenextstepistopopulateyourscenewithintelligentCinemachineVirtualCameraobjects.Thesecanbethoughtofasskilledcameramenwhoaregiveninstructionsaboutwhatgameobjectstotarget,andhowtofollowthem.Itisthebrain'sjobtomonitortheseandchoosethemostappropriateonetotrackatanygivenframe.
VirtualCamerasAvirtualcameraisnotacamera.Instead,itcanbethoughtofasacameracontroller,notunlikeacameraman.ItcandrivetheUnityCameraandcontrolitsposition,orientation,lenssettings,andPostProcessingeffects.EachVirtualCameraownsitsownCinemachineComponentPipeline,throughwhichyouprovidetheinstructionsfordynamicallytrackingspecificgameobjects.
Avirtualcameraisverylightweight,anddoesnorenderingofitsown.ItmerelytracksinterestingGameObjects,andpositionsitselfaccordingly.Atypicalgamecanhavedozensofvirtualcameras,
eachsetuptofollowaparticularcharacterorcaptureaparticularevent.
AVirtualCameracanbeinanyofthreestates:
Live:ThevirtualcameraisactivelycontrollingtheUnityCamera.Thevirtualcameraistrackingitstargetsandbeingupdatedeveryframe.Standby:Thevirtualcameraistrackingitstargetsandbeingupdatedeveryframe,butnoUnityCameraisactivelybeingcontrolledbyit.ThisisthestateofavirtualcamerathatisenabledinthescenebutperhapsatalowerprioritythantheLivevirtualcamera.Disabled:Thevirtualcameraispresentbutdisabledinthescene.Itisnotactivelytrackingitstargetsandsoconsumesnoprocessingpower.However,thevirtualcameracanbemadelivefromtheTimeline.
TheUnityCameracanbedrivenbyanyvirtualcamerainthescene.Thegamelogiccanchoosethevirtualcameratomakelivebymanipulatingthevirtualcameras'enabledflagsandtheirpriorities,basedongamelogic.
Inordertobedrivenbyavirtualcamera,theUnityCameramusthaveaCinemachineBrainbehaviour,whichwillselectthemosteligiblevirtualcamerabasedonitspriorityoronothercriteria,andwillmanageblending.
BlendingCameraBlendingisaconceptthatbringstheVirtualCamerasbeyondtheanalogyofacameraman.Itisessentiallyaninterpolationovertimeofonevirtualcamerapositionandstatetoanother.Ifyouthinkofvirtualcamerasascameramen,thenblendingisalittlelikeonecameramansmoothlypassingthecameratoanothercameraman.Youcanspecifythetimeoverwhichtoblend,aswellastheblendcurveshape.Notethatacameracutisjustazero-timeblend.
TheCinemachineBrainbehaviourholdstheinstructionsforblending.Thereyoucanspecifythedefaultblend(howvirtualcamerastranstionfromonebeinglivetoanother),andalsospecificoverridestothedefaultblendintheformofaninstructionlist:"whenthisvcamgoeslive,blendlikethis",or"whenbendingfromthisvcamtothatone,doitlikethat",andsoon.
GettingStartedThefirstthingtolookatistheCinemachineVirtualCamerabehaviour.ThatshouldleadyoutothepipelineofICinemachineComponentswhichserveasinstructionsforcontrollingthePosition,Orientation,andLensofthecamera.CreatesomeVirtualCamerasinyourscene,settheirtargets,andplaywiththeirsettingstoseewhattheydo.Alsohavealookatsomeoftheexamplescenesincludedwiththepackage.
TheAPIgenerallyreflectswhatyouseeintheinspectorforthebehavioursofthedifferentsortsofVirtualCamerasandtheircomponents.Havealookatthecorrespondingclasses,beginningwith:
CinemachineVirtualCamera
CinemachineBrain
CinemachineClearShot
CinemachineFreeLook
CinemachineCollider
CinemachineTransposer
CinemachineComposer
SeeAlsoOtherResourcesVersionHistory
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
VersionHistory
Thetopicsinthissectiondescribethevariouschangesmadetothe[TODO:ProjectTitle]overthelifeoftheproject.
VersionHistorySelectaversionbelowtoseeadescriptionofitschanges.
Version2.0
Version2.1
SeeAlsoOtherResourcesWelcometoCinemachine
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
Version2.0
Version2.0wasreleasedonJuly23,2017.
ChangesinThisReleaseThisisacompleteoverhaulofCinemachine1.0,andcontainsmanynewfeaturesandimplementations.
Unfortunatelyitwasnotpossibletomaintainback-compatibilitywithCinemachine1,andsoanyCinemachinecontentcreatedwithearlierversionswillhavetobere-createdusingthisversion.
PleaseseetheCinemachineForumforacompletelistofchangesinthisrelease.
SeeAlsoOtherResourcesVersionHistory
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
Version2.1
Version2.1wasreleasedonNov11,2017.
ChangesinThisReleasePostProcessingV2isnowsupported.
NewColliderimplementation.Curbfeelersaregone,replacedbyaclevercamera-repositioningalgorithmthatwilltrytopreservecameraheightordistancefromtarget(strategyisuser-selectable).
NewCinemachineConfiner:confineavirtualcameratoasimpleboundingvolumeorPolygonCollider2D.
NewFramingTransposer.Thisisaspecialtransposerthatwillrespectcompositionandframingrulesbymovingthecamerawithoutrotatingit.TakesonlyaFollowTarget(noLookAt-thisisimportant).DesignedforOrthographiccameras,butwillalsoworkforPerspectivecameras.IfFollowtargetisaCinemachineTargetGroup,thenwillalsoprovideGroupFramingoptions.
NewCinemachinePOVAimcomponent.Cameraaimisentirelycontrolledbyuser,using2inputaxes.
NewCinemachineMixingCamera.Driveacontinuousblendofupto8virtualcamerasfromtimelineorgamelogic.Createcomplexrigswithcustomblendsandexposethemasordinaryvcams.
NewCinemachineBlendListCamera.AminivcamsequencerthatprovidesaquickandeasywaytodoABcameramovesonthefly.
NewCinemachineDollyCartbehaviour,formovinganythingalongapath.Noneedtocreatedummyvcamsjustforthat.
NewCinemachineSmoothPathcomponent.YoucanuseitinsteadoftheoldCinemachinePath.ThedifferenceisthattheSmoothPathguaranteessecond-ordercontinuity,whichmeans
thattherewillneverbeanysuddencamerarotationchangesbakedintothepathtangents.Easiertouse,too:notangentstomessaroundwith(theygetautomaticallysetforsmoothness).
PathnowsupportsDistanceUnitsinadditiontoPathunits,makingiteasytocreatesteadymotion.
TrackedDolly:addedabilitytouseDistanceorPathunitsforpathposition.
TransposerandTrackedDolly:addedtargetangulardampingon3axes.
OrbitalTransposerandFreeLook:addedangulardampingandbindingmode,sameasTransposer.
OrbitalTransopserandfreelook:addedcheckboxtoinvertinputaxis.
Transposer,OrbitalTransposer,andFreeLook:addednewSimpleFollowbindingmode,whichwillfollowthetargetusingrotationasmuchaspossible,changingpositionaslittleaspossible.Likealazycameraman.
AddedIgnoreTimeScaleoptiontoBrain.Usefulforsnappycameraseveninslo-mo.
AddedLookaheadTimetocomposer.Composerwilllookatthepointwhereitestimatesthetargetwillbeatsometimeinthenearfuture.Thisgivesmuchmorenaturalframingofamovingtarget.
SmartUpdateissmarter:addedsupportforInterpolationwhentargetisanimatedbyphysicssystem.
Addedoff-buttonforSaveDuringPlay.
NoSaveDuringPlayforvcampriority,LookAtandFollowtargets,GroupTargetmembers.
AddedIsBlendingAPImethodtoStateDrivenCameraandClearShot.
TargetGroupnowhasauser-selectableupdatemethod.
TargetGroupnowrespectstheweightwhencomputingboundingbox,soit'spossibletograduallyaddorremovemembersbymanipulatingtheweight.
Clearshot:ifrandomize,thenre-randomizewheneveritbecomesactive.
ClearShot:defaultblendiscut.
ClearShotcreatemenu:addaColliderbydefault.
FollowZoom:min/maxFOVdefaultschangedto3/60.
Composerdampingrangeisnow0-20insteadof0-100.
OrbitalandFreeLook:HeadingBiascannowbeanimatedonthetimeline.
OrbitalandFreeLook:dampingnolongerinterfereswithcameraresponsetouserinput.Axismovementbypassesalldamping.
TrackedDolly:addedpathpositionoffsettoAuto-Dolly.Staysonthepath(unlikepathoffset,whichisbasedonthepathtangentandsocangooffthepath)
NoisecomponentinspectornowhasadropdownforProfilepresets,insteadofdirectlyallowingeditingoftheProfileasset.
AddedconceptofCinemachineExtension.Collider,confiner,PostProcessing,etcarenowExtensions.Theyareavailableviaadropdownatthebottomoftheinspectionforvirtualcameras.TheywillnolongerappearinthestandardComponentsmenu.
Time.timeScale=0isnowsupported.Pausingthegamewillalsopausethevirtualcameras.
HardConstrainthasbeensplitintotwosettings:DoNothingandHardLookAt/Follow.DoNothingwillleavethecamera'stransformalone,ignoringanytargetthatmayhavebeenset.
CinemachineBrainnolongerrequiresaCameracomponent.CanbeusedwithanyGameObject,makingitpossibletouseCinemachinetocontrolthetransformsofarbitraryobjects.
ImprovedlogicforAxisStateaccel/decel.Morerealisticbehaviour.
SaveDuringPlayobsoleteAPIfixfor2017.2.
FixedbuilderrorswhenbuildingforUWP.
ClearshotandSDC:don'tresetstateifdeactivated.
FreeLookdestroy-nomoreorphanrigs.
FixedstrangebuilderrorthatonlyshowedupinMonoDevelop.
FreeLookwasnotrespectingX-axisaccelanddecel.Headingspeedhadtobecrazyhigh.NowsameasOrbital(warning:mayhavetore-tunesettingsonexistingFreeLooks).
Recentertotargetheadingwasnotmovingsmoothlyinsomecircumstances.
Colliderraycastsnolongerhittriggers.
Noise:handlevariabledeltaTimegracefully.
State-Driven-Camera:don'tgenerateerrorswhenanimatedtargetisinactive.
Severaljitterandjudderissuesresolved.
SeeAlsoOtherResourcesVersionHistory
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
Namespaces
NamespacesNamespace Description
Cinemachine ThisnamespaceholdstheCoreCinemachinecode.
Cinemachine.Utility Cinemachinenon-domainutilitiesandUnityextensionsandhelpers
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineNamespace
ThisnamespaceholdstheCoreCinemachinecode.
Classes Class Description
CinemachineBasicMultiChannelPerlin AsapartoftheCinemachinePipelineimplementingtheNoisestage,thiscomponentaddsPerlinNoisetotheCamerastate,intheCorrectionoftheCameraState.iscreatedbyusingapredefinednoiseprofileasset.theshapeofthenoiseovertime.Youcanscalethisinamplitudeorintime,toproducefamilyofdifferentnoisesusingthesameprofile.
CinemachineBlend Describesablendbetween2CinemachineVirtualCameras,andholdsthetheblend.
CinemachineBlendDefinitionPropertyAttribute PropertyappliedtoCinemachineBlendDefinition.Usedforcustomdrawingintheinspector.
CinemachineBlenderSettings AssetthatdefinestherulesforblendingbetweenVirtualCameras.
CinemachineBlendListCamera Thisisavirtualcamera"manager"thatownsandmanagesacollectionVirtualCameras.cameragoeslive,thesechildvcamsareenabled,oneafteranother,holdingeachcameraforadesignatedtime.betweencamerasarespecified.Thelastcameraisheldindefinitely.
CinemachineBrain CinemachineBrainisthelinkbetweentheUnityCameraandtheCinemachineVirtualCamerasinthescene.monitorstheprioritystacktochoosethecurrentCamera,andblendwithanotherifnecessary.importantly,CamerastatetotheattachedUnityCamera.CinemachineBrainisalsotheplacewhererulesforblendingbetweenvirtualcamerasdefined.Camerablendingisaninterpolationovertimeofonevirtualcameratoanother.Ifyouthinkofvirtualcamerasascameramen,thenblendingisalittlelikeonecameramansmoothlypassingthecameratoanothercameraman.timeoverwhichtoblend,aswellastheblendcurveshape.thatacameracutisjustazero-timeblend.
CinemachineBrainBrainEvent EventwithaCinemachineBrainparameter
CinemachineBrainVcamEvent EventwithaICinemachineCameraparameter
CinemachineClearShot CinemachineClearShotisa"managercamera"thatownsandmanagesasetofCameragameObjectchildren.WhenLive,theClearShotwillcheckthechildren,andchoosetheonewiththebestqualityshotandmakeitLive.beaverypowerfultool.childcamerashaveCinemachineColliderextensions,theywillanalyzethescenefortargetobstructions,optimaltargetotheritems,andreporttheirassessmentofshotqualitybacktotheClearShotparent,whowillthenchoosethebestone.canusethistosetmulti-cameracoverageofascene,andbeassuredthataclearshotofalwaysbeavailable.childcamerashavethesameshotquality,theonewiththehighestprioritywillbechosen.YoucanalsodefinecustomblendsbetweentheClearShotchildren.
CinemachineCollider Anadd-onmoduleforCinemachineVirtualCamera
thatpost-processespositionofthevirtualcamera.Basedonthesuppliedsettings,theColliderwillattempttopreservethelineofsighttheLookAttargetofthevirtualcamerabymovingobjectsthatwillobstructtheview.Additionally,theCollidercanbeusedtoassesstheshotqualityandreportthisasafieldinthecameraState.
CinemachineComponentBase AnabstractrepresentationofamutatoractingonaCinemachineVirtualCamera
CinemachineComposer ThisisaCinemachineComponentintheAimsectionofthecomponentpipeline.Itsjobistoaimthecameraatthevcam'sLookAttargetobject,withoffsets,damping,andcompositionrules.composerdoesnotchangethecamera'sposition.panandtilttheis,inordertogetthedesiredframing.Tomovethecamera,youhavetousethevirtualcamera'sBodysection.
CinemachineConfiner Anadd-onmoduleforCinemachineVirtualCamerathatpost-processespositionofthevirtualcamera.Itwillconfinethevirtualpositiontothevolumespecified
intheBoundingVolumefield.
CinemachineCore AsingletonthatmanagescompletelistsofCinemachineBrainand,CinemachineVirtualCameras,andthepriorityqueue.servicestokeepingtrackofwhetherCinemachineVirtualCamerashaveeachframe.
CinemachineDollyCart ThisisaverysimplebehaviourthatconstrainsitstransformtoaCinemachinePath.usedtoanimateanyobjectsalongapath,orasaFollowtargetforCinemachineVirtualCameras.
CinemachineExtension BaseclassforaCinemachineVirtualCameraextensionmodule.HooksintotheCinemachinePipeline.
CinemachineExternalCamera Thiscomponentwillexposeanon-cinemachinecameratothecinemachinesystem,toparticipateinblends.itasacomponentalongsideanexistingUnityCameracomponent.
CinemachineFollowZoom Anadd-onmoduleforCinemachineVirtualCamerathatadjuststokeepthetargetobjectataconstantsizeonthescreen,regardlessofcameraandtarget
position.
CinemachineFramingTransposer ThisisaCinemachineComponentintheBodysectionofthecomponentpipeline.jobistopositionthecamerainafixedscreen-spacerelationshiptothevcam'sFollowtargetobject,withoffsetsanddamping.ThecamerawillbefirstmovedalongthecameraZaxisuntiltheFollowtargetthedesireddistancefromthecamera'sX-Yplane.camerawillthenXYplaneuntiltheFollowtargetisatthedesiredpointoncamera'sscreen.FramingTansposerwillonlychangethecamera'spositioninspace.Itwillnototherwiseaimthecamera.thiscomponenttoworkproperly,thevcam'sLookAttargetmustbenull.TheFollowtargetwilldefinewhatthecameraislookingat.IftheFollowtargetisaCinemachineTargetGroup,thenadditionalcontrolswillavailabletodynamicallyadjustthecamera’sviewinordertoframetheentiregroup.thiscomponentwasdesignedfororthographiccameras,itworksequallypersectivecamerasandcanbeusedin3Denvironments.
CinemachineFreeLook ACinemachineCamerageared
towardsa3rdpersoncameraexperience.arounditssubjectwiththreeseparatecamerarigsdefiningringsaroundthetarget.Eachrighasitsownradius,heightoffset,composer,andlenssettings.Dependingonthecamera'spositionalongthesplineconnectingthesethreerigs,thesesettingsareinterpolatedtogivethefinalcamerapositionandstate.
CinemachineGroupComposer ThisisaCinemachineComponentintheAimsectionofthecomponentpipeline.Itsjobistoaimthecameraatatargetobject,withconfigurableoffsets,damping,andcompositionrules.addition,ifthetargetisaCinemachineTargetGroup,thebehaviourwilladjusttheFOVandthecameradistancetoensurethattheentiregroupoftargetsisframedproperly.
CinemachineHardLockToTarget ThisisaCinemachineComponentintheAimsectionofthecomponentpipeline.ItsjobistoplacethecameraontheFollowTarget.
CinemachineHardLookAt ThisisaCinemachineComponentintheAimsectionofthecomponentpipeline.ItsjobistoaimthecamerahardattheLookAt
target.
CinemachineMixingCamera CinemachineMixingCameraisa"managercamera"thattakesonthestateoftheweightedaverageofthestatesofitschildvirtualcameras.ofslotsaremadeavailableforcameras,ratherthanadynamicarray.WedoitthiswayinordertosupportweightanimationfromtheTimeline.animatearrayelements.
CinemachineOrbitalTransposer ThisisaCinemachineComponentinthetheBodysectionofthecomponentpipeline.positionthecamerainavariablerelationshiptoathevcam'sFollowtargetobject,withoffsetsanddamping.typicallyusedtoimplementacamerathatfollowsitstarget.canacceptplayerinputfromaninputdevice,whichallowstheplayertodynamicallycontroltherelationshipbetweenthecameraandthetarget,ajoystick.TheOrbitalTransposerintroducestheconceptof__Heading__,whichisthedirectionthetargetismoving,andtheOrbitalTransposerwillattempttopositionthecamerainrelationshiptotheheading,whichisbydefaultdirectlybehindthetarget.
controlthedefaultrelationshipbyadjustingtheHeadingBiassetting.IfyouattachaninputcontrollertotheOrbitalTransposer,thentheplayercanalsothecamerapositionsitselfinrelationtothetargetheading.Thisallowsthecameratomovetoanyspotonanorbitaroundthetarget.
CinemachinePath Definesaworld-spacepath,consistingofanarrayofwaypoints,eachofwhichhasposition,tangent,androllsettings.Bezierinterpolationperformedbetweenthewaypoints,togetasmoothandcontinuouspath.
CinemachinePathBase Abstractbaseclassforaworld-spacepath,cameradollytrack.
CinemachinePathBaseAppearance Thisclassholdsthesettingsthatcontrolhowthepathintheeditorsceneview.pathisnotvisibleinthegameview
CinemachinePipeline InternalcontainerforCinemachineComponentBase.Doesnothingbutcontain.
CinemachinePOV ThisisaCinemachineComponentintheAimsectionofthecomponentpipeline.Itsjobistoaimthe
camerainresponsetotheuser'smouseorjoystickinput.composerdoesnotchangethecamera'sposition.panandtilttheis,inordertogetthedesiredframing.Tomovethecamera,youhavetousethevirtualcamera'sBodysection.
CinemachineSmoothPath Definesaworld-spacepath,consistingofanarrayofwaypoints,eachofwhichhaspositionandrollsettings.interpolationbetweenthewaypoints,togetasmoothandcontinuouspath.Thepathwillpassthroughallwaypoints,and(unlikeCinemachinePath)firstsecondordercontinuityisguaranteed
CinemachineStateDrivenCamera Thisisavirtualcamera"manager"thatownsandmanagesacollectionVirtualCameras.vcamsaremappedtoindividualstatesinananimationstatemachine,allowingyoutoassociatespecificvcamstospecificanimationstates.thatstateisactiveinthestatemachine,thenthecamerawillbeactivated.candefinecustomblendsandtransitionsbetweenchildcameras.Inordertousethisbehaviour,youmusthavean
animatedtarget(i.e.anobjectanimatedwithastatemachine)todrivethebehaviour.
CinemachineTargetGroup Definesagroupoftargetobjects,eachwitharadiusandaweight.Theweightisusedwhencalculatingtheaveragepositionofthetargetgroup.Higher-weightedmembersofthegroupwillcountmore.boundingboxiscalculatedbytakingthememberpositions,weight,andradiiintoaccount.
CinemachineTrackedDolly ACinemachineVirtualCameraBodycomponentthatconstrainscameramotionCinemachinePath.canmovealongthepath.behaviourcanoperateintwomodes:manualpositioning,andAuto-Dollypositioning.Manualmode,thecamera'spositionisspecifiedbyanimatingthePathPositionfield.InAuto-Dollymode,thePathPositionfieldisanimatedautomaticallyeveryframebyfindingthepositiononthepaththat'sclosesttothevirtualcamera'sFollowtarget.
CinemachineTransposer ThisisaCinemachineComponentintheBodysectionofthecomponentpipeline.Itsjobistopositionthecamerainafixedrelationshiptothevcam'sFollow
withoffsetsanddamping.Tansposerwillonlychangethecamera'spositioninspace.willnotre-orientorotherwiseaimthecamera.needtoinstructAimsectionofitspipeline.
CinemachineVirtualCamera ThisbehaviourisintendedtobeattachedtoanemptyTransformGameObject,VirtualCamerawithintheUnityscene.TheVirtualCamerawillanimateitsTransformaccordingtotherulescontainedCinemachineComponentpipeline(Aim,Body,andNoise).WhenthevirtualtheUnitycamerawillassumethepositionandorientationthevirtualcamera.cameraisnotacamera.Instead,itcanbethoughtofasacameracontroller,cameraman.ItcandrivetheUnityCameraandcontrolitsposition,orientation,lenssettings,andPostProcessingeffects.EachVirtualCameraownsitsownCinemachineComponentPipeline,throughwhichyouprovidetheinstructionstrackingspecificgameobjects.virtualcameraisverylightweight,anddoesnorenderingofitsown.ItmerelytracksinterestingGameObjects,andpositionsitselfaccordingly.
Atypicalgameofvirtualcameras,eachsetuptofollowaparticularcharactercaptureaparticularevent.VirtualCameracanbeinanyofthreestates:virtualcameraisactivelycontrollingtheUnityCamera.Thevirtualcameraistrackingitstargetsandbeingupdatedeveryframe.***Standby**:ThevirtualcameraistrackingitstargetsandbeingupdatedbutnoUnityCameraisactivelybeingcontrolledbyit.ThisisstateofavirtualcamerathatisenabledinthescenebutperhapsatatheLivevirtualcamera.**Disabled**:Thevirtualcameraispresentbutdisabledinthescene.Itisnotactivelytrackingitstargetsandsoconsumesnoprocessingpower.However,virtualcameracanbemadelivefromtheTimeline.Cameracanbedrivenbyanyvirtualcamerainthescene.Thegamelogiccanchoosethevirtualcameratomakelivebymanipulatingthevirtualcameras'enabledflagsandtheirpriorities,basedongamelogic.Inordertobedrivenbyavirtualcamera,theUnityCameramusthaveaCinemachineBrainbehaviour,whichwillselectthemosteligiblevirtualcamerabasedonitspriority
criteria,andwillmanageblending.
CinemachineVirtualCameraBase BaseclassforaMonobehaviourthatrepresentsaVirtualCamerawithintheUnityscene.intendedtobeattachedtoanemptyTransformGameObject.InheritedclassescanbeeitherstandalonevirtualcamerassuchasCinemachineVirtualCamera,ormeta-camerassuchasCinemachineClearShotorCinemachineFreeLook.CinemachineVirtualCameraBaseexposesaPriorityproperty.Whenthebehaviourisinthegame,theVirtualCameraisautomaticallyplacedinaqueuemaintainedbythestaticCinemachineCoresingleton.Thequeueissortedbypriority.WhenaUnitycameraisequippedwithaCinemachineBrainbehaviour,thebrainwillchoosethecameraattheheadofthequeue.havemultipleUnitycameraswithCinemachineBrainbehaviours(sayinasplit-screencontext),thenyoucanfilterthequeuebysettingthecullingflagsonthevirtualcameras.cullingmaskoftheCamerawillthenactasafilterforthebrain.thereisnothingthatpreventsavirtualcamerafromcontrollingmultipleUnitycameras
simultaneously.
DocumentationSortingAttribute Atrtributetocontroltheautomaticgenerationofdocumentation.
LensSettingsPropertyAttribute PropertyappliedtoLensSettings.drawingintheinspector.
NoiseSettings Thisisanassetthatdefinesanoiseprofile.theshapeofthenoiseasafunctionoftime.arbitrarilycomplexshapesbycombiningdifferentbaseperlinnoisefrequenciesatdifferentamplitudes.amplitudesshouldbechosenwithcare,toensureaninterestingnoisequalitythatisnotobviouslyrepetitive.mathematicalside-note,anyarbitraryperiodiccurvecanbebrokendownintoafixed-amplitudesine-wavesaddedtogether.fourierdecomposition,basisofmuchsignalprocessing.Itdoesn'treallyhavemuchtodowiththisasset,butit'ssuperinteresting!
NoSaveDuringPlayAttribute Suppressesplay-mode-saveforafield.Useitifthecalseehas[SaveDuringPlay]therearefieldsintheclassthatshouldn'tbesaved.
SaveDuringPlayAttribute Invokeplay-mode-saveforaclass.Thisclass'sfieldswillbescanneduponexitingplaymode,anditspropertyvalueswillbeappliedtothesceneobject.ThisisastopgapmeasurethatwillbecomeobsoleteonceUnityimplementsplay-mode-saveinamoregeneralway.
Structures Structure Description
AxisState Axisstatefordefiningtoreacttoplayerinput.Thesettingsherecontroltheresponsivenessoftheaxistoplayerinput.
CameraState TheoutputoftheCinemachineengineforaspecificvirtualcamera.informationinthisstructcanbeblended,andprovideswhatisneededtocalculateanappropriatecameraposition,orientation,andlenssetting.RawvaluesarewhattheCinemachine
behavioursgenerate.Thecorrectionchannelholdsperturbationstotherawvalues-e.g.noiseorsmoothing,orobstacleavoidancecorrections.Coirrectionsarenotconsideredwhenmakingtime-basedcalculationssuchasdamping.TheFinalpositionandorientationisthecominationoftherawvaluesandcorrections.
CameraStateCustomBlendable Opaquestructurerepresentextrablendablestuffanditsweight.Thebasesystemignoresthisdata-itisintendedforextensionmodules
CinemachineBlendDefinition DefinitionofaCamerablend.structholdstheinformationnecessarytogenerateasuitableAnimationCurveforaCinemachineBlend.
CinemachineBlenderSettingsCustomBlend ContainerspecifyinghowtwospecificCinemachineVirtualCamerasblendtogether.
CinemachineBlendListCameraInstruction ThisrepresentsasingleentryintheinstrunctionlistoftheBlendListCamera.
CinemachineFreeLookOrbit DefinestheheightandradiusoftheRigorbit
CinemachineOrbitalTransposerHeading Howthe"forward"directionisdefined.Orbitaloffsetisinrelationtotheforwarddirection.
CinemachineOrbitalTransposerRecentering Controlshowautomaticorbitrecenteringoccurs
CinemachinePathWaypoint Awaypointalongthepath
CinemachineSmoothPathWaypoint Awaypointalongthepath
CinemachineStateDrivenCameraInstruction ThisrepresentsasingleinstrunctiontotheStateDrivenCamera.Itassociatesanstatefromthestatemachinewithachild
VirtualCamera,andalsoholdsactivationtuningparameters.
CinemachineTargetGroupTarget Holdstheinformationthatrepresentsamemberofthegroup
CinemachineTrackedDollyAutoDolly Controlshowautomaticdollyingoccurs
LensSettings DescribestheFOVandclipplanesforacamera.ThisgenerallymirrorstheUnityCamera'slenssettings,andwillbeusedtodrivetheUnitycamerawhenthevcamisactive.
NoiseSettingsNoiseParams Describesthebehaviourforachannelofnoise
NoiseSettingsTransformNoiseParams Containsthebehaviourofnoiseforthenoisemoduleforall3cardinalaxesofthecamera
Interfaces Interface Description
ICinemachineCamera AnabstractrepresentationofavirtualcamerawhichliveswithintheUnityscene
Delegates Delegate
CinemachineCoreAxisInputDelegate
CinemachineFreeLookCreateRigDelegate
CinemachineFreeLookDestroyRigDelegate
CinemachineVirtualCameraCreatePipelineDelegate
CinemachineVirtualCameraDestroyPipelineDelegate
CinemachineVirtualCameraBaseOnPostPipelineStageDelegate
Enumerations Enumeration
CinemachineBlendDefinitionStyle
CinemachineBrainUpdateMethod
CinemachineColliderResolutionStrategy
CinemachineConfinerMode
CinemachineCoreStage
CinemachineCoreUpdateFilter
CinemachineDollyCartUpdateMethod
CinemachineFramingTransposerAdjustmentMode
CinemachineFramingTransposerFramingMode
CinemachineGroupComposerAdjustmentMode
CinemachineGroupComposerFramingMode
CinemachineOrbitalTransposerHeadingHeadingDefinition
CinemachinePathBasePositionUnits
CinemachineTargetGroupPositionMode
CinemachineTargetGroupRotationMode
CinemachineTargetGroupUpdateMethod
CinemachineTrackedDollyCameraUpMode
CinemachineTransposerBindingMode
DocumentationSortingAttributeLevel
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
AxisStateStructure
Axisstatefordefiningtoreacttoplayerinput.Thesettingsherecontroltheresponsivenessoftheaxistoplayerinput.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheAxisStatetypeexposesthefollowingmembers.
Constructors Name Description
AxisState Constructorwithspecificvalues
Top
Methods Name Description
SetThresholds Setstheconstraintsbywhichthisaxiswilloperateon
Update Updatesthestateofthisaxis
[SerializableAttribute]
[DocumentationSortingAttribute(6.4f,DocumentationSortingAttribute
publicstructAxisState
CopyC# JavaScript
basedontheaxisdefinedbyAxisState.m_AxisName
Validate CallfromOnValidate:Makesurethefieldsaresensible
Top
Fields Name Description
m_AccelTime TheamountoftimeinsecondsittakestoacceleratetoMaxSpeedwiththesuppliedAxisatitsmaximumvalue
m_DecelTime Theamountoftimeinsecondsittakestodeceleratetheaxistozeroifthesuppliedaxisisinaneutralposition
m_InputAxisName ThenameofthisaxisasspecifiedinUnityInputmanager.Settingtoanemptystringwilldisabletheautomaticupdatingofthisaxis
m_InputAxisValue Thevalueoftheinputaxis.Avalueof0meansnoinputYoucandrivethisdirectlyfromacustominputsystem,oryoucansettheAxisNameandhavethevaluedrivenbytheinternalInputManager
m_InvertAxis Ifchecked,thentherawvalue
oftheinputaxiswillbeinvertedbeforeitisused.
m_MaxSpeed Howfasttheaxisvaluecantravel.Increasingthisnumbermakesthebehaviourmoreresponsivetojoystickinput
Value Thecurrentvalueoftheaxis
Top
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
AxisStateConstructor
Constructorwithspecificvalues
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
maxSpeedType:SystemSingle[Missing<paramname="maxSpeed"/>documentationfor"M:Cinemachine.AxisState.#ctor(System.Single,System.Single,System.Single,System.Single,System.String,System.Boolean)"]
accelTimeType:SystemSingle[Missing<paramname="accelTime"/>documentationfor"M:Cinemachine.AxisState.#ctor(System.Single,System.Single,System.Single,System.Single,System.String,System.Boolean)"]
decelTimeType:SystemSingle[Missing<paramname="decelTime"/>documentationfor"M:Cinemachine.AxisState.#ctor(System.Single,System.Single,System.Single,System.Single,System.String,System.Boolean)"]
val
publicAxisState(
floatmaxSpeed,
floataccelTime,
floatdecelTime,
floatval,
stringname,
boolinvert
)
CopyC# JavaScript
Type:SystemSingle[Missing<paramname="val"/>documentationfor"M:Cinemachine.AxisState.#ctor(System.Single,System.Single,System.Single,System.Single,System.String,System.Boolean)"]
nameType:SystemString[Missing<paramname="name"/>documentationfor"M:Cinemachine.AxisState.#ctor(System.Single,System.Single,System.Single,System.Single,System.String,System.Boolean)"]
invertType:SystemBoolean[Missing<paramname="invert"/>documentationfor"M:Cinemachine.AxisState.#ctor(System.Single,System.Single,System.Single,System.Single,System.String,System.Boolean)"]
SeeAlsoReferenceAxisStateStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
AxisStateMethods
TheAxisStatetypeexposesthefollowingmembers.
Methods Name Description
SetThresholds Setstheconstraintsbywhichthisaxiswilloperateon
Update UpdatesthestateofthisaxisbasedontheaxisdefinedbyAxisState.m_AxisName
Validate CallfromOnValidate:Makesurethefieldsaresensible
Top
SeeAlsoReferenceAxisStateStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
AxisStateSetThresholdsMethod
Setstheconstraintsbywhichthisaxiswilloperateon
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
minValueType:SystemSingleThelowestvaluethisaxiscanachieve
maxValueType:SystemSingleThehighestvaluethisaxiscanachieve
wrapAroundType:SystemBooleanIftrue,valuescommandedgreaterthanmMaxValueorlessthanmMinValuewillwraparound.Iffalse,thevaluewillbeclampedwithintherange.
SeeAlsoReferenceAxisStateStructure
publicvoidSetThresholds(
floatminValue,
floatmaxValue,
boolwrapAround
)
CopyC# JavaScript
CinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
AxisStateUpdateMethod
UpdatesthestateofthisaxisbasedontheaxisdefinedbyAxisState.m_AxisName
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
deltaTimeType:SystemSingleDeltatimeinseconds
ReturnValueType:BooleanReturnstrueifthisaxis'inputwasnon-zerothisUpdate,flaseotherwise
SeeAlsoReferenceAxisStateStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicboolUpdate(
floatdeltaTime
)
CopyC# JavaScript
Cinemachine
AxisStateValidateMethod
CallfromOnValidate:Makesurethefieldsaresensible
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceAxisStateStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicvoidValidate()
CopyC# JavaScript
Cinemachine
AxisStateFields
TheAxisStatetypeexposesthefollowingmembers.
Fields Name Description
m_AccelTime TheamountoftimeinsecondsittakestoacceleratetoMaxSpeedwiththesuppliedAxisatitsmaximumvalue
m_DecelTime Theamountoftimeinsecondsittakestodeceleratetheaxistozeroifthesuppliedaxisisinaneutralposition
m_InputAxisName ThenameofthisaxisasspecifiedinUnityInputmanager.Settingtoanemptystringwilldisabletheautomaticupdatingofthisaxis
m_InputAxisValue Thevalueoftheinputaxis.Avalueof0meansnoinputYoucandrivethisdirectlyfromacustominputsystem,oryoucansettheAxisNameandhavethevaluedrivenbytheinternalInputManager
m_InvertAxis Ifchecked,thentherawvalueoftheinputaxiswillbe
invertedbeforeitisused.
m_MaxSpeed Howfasttheaxisvaluecantravel.Increasingthisnumbermakesthebehaviourmoreresponsivetojoystickinput
Value Thecurrentvalueoftheaxis
Top
SeeAlsoReferenceAxisStateStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
AxisStatem_AccelTimeField
TheamountoftimeinsecondsittakestoacceleratetoMaxSpeedwiththesuppliedAxisatitsmaximumvalue
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceAxisStateStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("TheamountoftimeinsecondsittakestoacceleratetoMaxSpeedwiththesuppliedAxisatitsmaximumvalue")]
publicfloatm_AccelTime
CopyC# JavaScript
Cinemachine
AxisStatem_DecelTimeField
Theamountoftimeinsecondsittakestodeceleratetheaxistozeroifthesuppliedaxisisinaneutralposition
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceAxisStateStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Theamountoftimeinsecondsittakestodeceleratetheaxistozeroifthesuppliedaxisisinaneutralposition")]
publicfloatm_DecelTime
CopyC# JavaScript
Cinemachine
AxisStatem_InputAxisNameField
ThenameofthisaxisasspecifiedinUnityInputmanager.Settingtoanemptystringwilldisabletheautomaticupdatingofthisaxis
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:String
SeeAlsoReferenceAxisStateStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[FormerlySerializedAsAttribute("m_AxisName")]
[TooltipAttribute("ThenameofthisaxisasspecifiedinUnityInputmanager.Settingtoanemptystringwilldisabletheautomaticupdatingofthisaxis")]
publicstringm_InputAxisName
CopyC# JavaScript
Cinemachine
AxisStatem_InputAxisValueField
Thevalueoftheinputaxis.Avalueof0meansnoinputYoucandrivethisdirectlyfromacustominputsystem,oryoucansettheAxisNameandhavethevaluedrivenbytheinternalInputManager
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceAxisStateStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[NoSaveDuringPlayAttribute]
[TooltipAttribute("Thevalueoftheinputaxis.Avalueof0meansnoinput.Youcandrivethisdirectlyfromacustominputsystem,oryoucansettheAxisNameandhavethevaluedrivenbytheinternalInputManager")]
publicfloatm_InputAxisValue
CopyC# JavaScript
Cinemachine
AxisStatem_InvertAxisField
Ifchecked,thentherawvalueoftheinputaxiswillbeinvertedbeforeitisused.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Boolean
SeeAlsoReferenceAxisStateStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[NoSaveDuringPlayAttribute]
[TooltipAttribute("Ifchecked,thentherawvalueoftheinputaxiswillbeinvertedbeforeitisused")]
publicboolm_InvertAxis
CopyC# JavaScript
Cinemachine
AxisStatem_MaxSpeedField
Howfasttheaxisvaluecantravel.Increasingthisnumbermakesthebehaviourmoreresponsivetojoystickinput
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceAxisStateStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Themaximumspeedofthisaxisinunits/second")]
publicfloatm_MaxSpeed
CopyC# JavaScript
Cinemachine
AxisStateValueField
Thecurrentvalueoftheaxis
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceAxisStateStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[NoSaveDuringPlayAttribute]
[TooltipAttribute("Thecurrentvalueoftheaxis.")]
publicfloatValue
CopyC# JavaScript
Cinemachine
CameraStateStructure
TheoutputoftheCinemachineengineforaspecificvirtualcamera.Theinformationinthisstructcanbeblended,andprovideswhatisneededtocalculateanappropriatecameraposition,orientation,andlenssetting.RawvaluesarewhattheCinemachinebehavioursgenerate.Thecorrectionchannelholdsperturbationstotherawvalues-e.g.noiseorsmoothing,orobstacleavoidancecorrections.Coirrectionsarenotconsideredwhenmakingtime-basedcalculationssuchasdamping.TheFinalpositionandorientationisthecominationoftherawvaluesandtheircorrections.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheCameraStatetypeexposesthefollowingmembers.
Properties Name Description
CorrectedOrientation Orientationwithcorrectionapplied.
CorrectedPosition Positionwithcorrectionapplied.
Default Statewithdefaultvalues
publicstructCameraState
CopyC# JavaScript
FinalOrientation Orientationwithcorrectionanddutchapplied.Thisiswhatthefinalcameragets.
FinalPosition Positionwithcorrectionapplied.Thisiswhatthefinalcameragets.
HasLookAt ReturnstrueifthisstatehasavalidReferenceLookAtvalue.
Lens CameraLensSettings.
NumCustomBlendables Thenumberofcustomblendablesthatwillbeappliedtothecamera.Thebasesystemmanagesbutotherwiseignoresthisdata-itisintendedforextensionmodules
OrientationCorrection Orientationcorrection.Thiswillbeaddedtotheraworientation.Thisvaluedoesn'tgetfedbackintothesystemwhencalculatingthenextframe.Canbenoise,orsmoothing,orboth,orsomethingelse.
PositionCorrection Positioncorrection.Thiswillbeaddedtotherawposition.Thisvaluedoesn'tgetfedbackintothesystemwhen
calculatingthenextframe.Canbenoise,orsmoothing,orboth,orsomethingelse.
RawOrientation Raw(un-corrected)worldspaceorientationofthiscamera
RawPosition Raw(un-corrected)worldspacepositionofthiscamera
ReferenceLookAt Theworldspacefocuspointofthecamera.Whatthecamerawantstolookat.Thereisaspecialconstantdefinetorepresent"nothing".Becarefultocheckforthat(orchecktheHasLookAtproperty).
ReferenceUp Whichwayisup.Worldspaceunitvector.
ShotQuality Subjectiveestimationofhow"good"theshotis.Largervaluesmeanbetterquality.Defaultis1.
Top
Methods Name Description
AddCustomBlendable Addacustomblendable
tothepotforeventualapplicationtothecamera.Thebasesystemmanagesbutotherwiseignoresthisdata-itisintendedforextensionmodules
GetCustomBlendable Getacustomblendablethatwillbeappliedtothecamera.Thebasesystemmanagesbutotherwiseignoresthisdata-itisintendedforextensionmodules
Lerp Intelligentlyblendthecontentsoftwostates.
Top
Fields Name Description
kNoPoint Thisconstantrepresents"nopointinspace"or"nodirection".
Top
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CameraStateProperties
TheCameraStatetypeexposesthefollowingmembers.
Properties Name Description
CorrectedOrientation Orientationwithcorrectionapplied.
CorrectedPosition Positionwithcorrectionapplied.
Default Statewithdefaultvalues
FinalOrientation Orientationwithcorrectionanddutchapplied.Thisiswhatthefinalcameragets.
FinalPosition Positionwithcorrectionapplied.Thisiswhatthefinalcameragets.
HasLookAt ReturnstrueifthisstatehasavalidReferenceLookAtvalue.
Lens CameraLensSettings.
NumCustomBlendables Thenumberofcustomblendablesthatwillbeappliedtothecamera.Thebasesystemmanagesbutotherwise
ignoresthisdata-itisintendedforextensionmodules
OrientationCorrection Orientationcorrection.Thiswillbeaddedtotheraworientation.Thisvaluedoesn'tgetfedbackintothesystemwhencalculatingthenextframe.Canbenoise,orsmoothing,orboth,orsomethingelse.
PositionCorrection Positioncorrection.Thiswillbeaddedtotherawposition.Thisvaluedoesn'tgetfedbackintothesystemwhencalculatingthenextframe.Canbenoise,orsmoothing,orboth,orsomethingelse.
RawOrientation Raw(un-corrected)worldspaceorientationofthiscamera
RawPosition Raw(un-corrected)worldspacepositionofthiscamera
ReferenceLookAt Theworldspacefocuspointofthecamera.Whatthecamerawantstolookat.Thereisaspecialconstantdefinetorepresent"nothing".Becarefultocheckfor
that(orchecktheHasLookAtproperty).
ReferenceUp Whichwayisup.Worldspaceunitvector.
ShotQuality Subjectiveestimationofhow"good"theshotis.Largervaluesmeanbetterquality.Defaultis1.
Top
SeeAlsoReferenceCameraStateStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CameraStateCorrectedOrientationProperty
Orientationwithcorrectionapplied.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Quaternion
SeeAlsoReferenceCameraStateStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicQuaternionCorrectedOrientation{get;}
CopyC# JavaScript
Cinemachine
CameraStateCorrectedPositionProperty
Positionwithcorrectionapplied.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Vector3
SeeAlsoReferenceCameraStateStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicVector3CorrectedPosition{get;}
CopyC# JavaScript
Cinemachine
CameraStateDefaultProperty
Statewithdefaultvalues
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:CameraState
SeeAlsoReferenceCameraStateStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicstaticCameraStateDefault{get;}
CopyC# JavaScript
Cinemachine
CameraStateFinalOrientationProperty
Orientationwithcorrectionanddutchapplied.Thisiswhatthefinalcameragets.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Quaternion
SeeAlsoReferenceCameraStateStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicQuaternionFinalOrientation{get;}
CopyC# JavaScript
Cinemachine
CameraStateFinalPositionProperty
Positionwithcorrectionapplied.Thisiswhatthefinalcameragets.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Vector3
SeeAlsoReferenceCameraStateStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicVector3FinalPosition{get;}
CopyC# JavaScript
Cinemachine
CameraStateHasLookAtProperty
ReturnstrueifthisstatehasavalidReferenceLookAtvalue.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Boolean
SeeAlsoReferenceCameraStateStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicboolHasLookAt{get;}
CopyC# JavaScript
Cinemachine
CameraStateLensProperty
CameraLensSettings.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:LensSettings
SeeAlsoReferenceCameraStateStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicLensSettingsLens{get;set;}
CopyC# JavaScript
Cinemachine
CameraStateNumCustomBlendablesProperty
Thenumberofcustomblendablesthatwillbeappliedtothecamera.Thebasesystemmanagesbutotherwiseignoresthisdata-itisintendedforextensionmodules
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Int32
SeeAlsoReferenceCameraStateStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicintNumCustomBlendables{get;}
CopyC# JavaScript
Cinemachine
CameraStateOrientationCorrectionProperty
Orientationcorrection.Thiswillbeaddedtotheraworientation.Thisvaluedoesn'tgetfedbackintothesystemwhencalculatingthenextframe.Canbenoise,orsmoothing,orboth,orsomethingelse.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Quaternion
SeeAlsoReferenceCameraStateStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicQuaternionOrientationCorrection{get;set;}
CopyC# JavaScript
Cinemachine
CameraStatePositionCorrectionProperty
Positioncorrection.Thiswillbeaddedtotherawposition.Thisvaluedoesn'tgetfedbackintothesystemwhencalculatingthenextframe.Canbenoise,orsmoothing,orboth,orsomethingelse.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Vector3
SeeAlsoReferenceCameraStateStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicVector3PositionCorrection{get;set;}
CopyC# JavaScript
Cinemachine
CameraStateRawOrientationProperty
Raw(un-corrected)worldspaceorientationofthiscamera
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Quaternion
SeeAlsoReferenceCameraStateStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicQuaternionRawOrientation{get;set;}
CopyC# JavaScript
Cinemachine
CameraStateRawPositionProperty
Raw(un-corrected)worldspacepositionofthiscamera
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Vector3
SeeAlsoReferenceCameraStateStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicVector3RawPosition{get;set;}
CopyC# JavaScript
Cinemachine
CameraStateReferenceLookAtProperty
Theworldspacefocuspointofthecamera.Whatthecamerawantstolookat.Thereisaspecialconstantdefinetorepresent"nothing".Becarefultocheckforthat(orchecktheHasLookAtproperty).
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Vector3
SeeAlsoReferenceCameraStateStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicVector3ReferenceLookAt{get;set;}
CopyC# JavaScript
Cinemachine
CameraStateReferenceUpProperty
Whichwayisup.Worldspaceunitvector.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Vector3
SeeAlsoReferenceCameraStateStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicVector3ReferenceUp{get;set;}
CopyC# JavaScript
Cinemachine
CameraStateShotQualityProperty
Subjectiveestimationofhow"good"theshotis.Largervaluesmeanbetterquality.Defaultis1.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Single
SeeAlsoReferenceCameraStateStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicfloatShotQuality{get;set;}
CopyC# JavaScript
Cinemachine
CameraStateMethods
TheCameraStatetypeexposesthefollowingmembers.
Methods Name Description
AddCustomBlendable Addacustomblendabletothepotforeventualapplicationtothecamera.Thebasesystemmanagesbutotherwiseignoresthisdata-itisintendedforextensionmodules
GetCustomBlendable Getacustomblendablethatwillbeappliedtothecamera.Thebasesystemmanagesbutotherwiseignoresthisdata-itisintendedforextensionmodules
Lerp Intelligentlyblendthecontentsoftwostates.
Top
SeeAlsoReferenceCameraStateStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CameraStateAddCustomBlendableMethod
Addacustomblendabletothepotforeventualapplicationtothecamera.Thebasesystemmanagesbutotherwiseignoresthisdata-itisintendedforextensionmodules
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
bType:CinemachineCameraStateCustomBlendableThecustomblendabletoadd.Ifb.m_Customisthesameasanalready-addedcustomblendable,thentheywillbemergedandtheweightscombined.
SeeAlsoReferenceCameraStateStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicvoidAddCustomBlendable(
CameraStateCustomBlendableb
)
CopyC# JavaScript
Cinemachine
CameraStateGetCustomBlendableMethod
Getacustomblendablethatwillbeappliedtothecamera.Thebasesystemmanagesbutotherwiseignoresthisdata-itisintendedforextensionmodules
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
indexType:SystemInt32Whichonetoget.Mustbeinrange[0...NumCustomBlendables)
ReturnValueType:CameraStateCustomBlendableThecustomblendableatthespecifiedindex.
SeeAlsoReferenceCameraStateStructureCinemachineNamespace
publicCameraStateCustomBlendableGetCustomBlendable
intindex
)
CopyC# JavaScript
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CameraStateLerpMethod
Intelligentlyblendthecontentsoftwostates.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
stateAType:CinemachineCameraStateThefirststate,correspondingtot=0
stateBType:CinemachineCameraStateThesecondstate,correspondingtot=1
tType:SystemSingleHowmuchtointerpolate.Internallyclampedto0..1
ReturnValueType:CameraStateLinearlyinterpolatedCameraState
SeeAlso
publicstaticCameraStateLerp(
CameraStatestateA,
CameraStatestateB,
floatt
)
CopyC# JavaScript
ReferenceCameraStateStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CameraStateFields
TheCameraStatetypeexposesthefollowingmembers.
Fields Name Description
kNoPoint Thisconstantrepresents"nopointinspace"or"nodirection".
Top
SeeAlsoReferenceCameraStateStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CameraStatekNoPointField
Thisconstantrepresents"nopointinspace"or"nodirection".
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Vector3
SeeAlsoReferenceCameraStateStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicstaticVector3kNoPoint
CopyC# JavaScript
Cinemachine
CameraStateCustomBlendableStructure
Opaquestructurerepresentextrablendablestuffanditsweight.Thebasesystemignoresthisdata-itisintendedforextensionmodules
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheCameraStateCustomBlendabletypeexposesthefollowingmembers.
Constructors Name Description
CameraStateCustomBlendable Constructorwithspecificvalues
Top
Fields Name Description
m_Custom Thecustomstuffthattheextentionmodulewillconsider
publicstructCustomBlendable
CopyC# JavaScript
m_Weight Theweightofthecustomstuff.Mustbe0...1
Top
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CameraStateCustomBlendableConstructor
Constructorwithspecificvalues
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
customType:ObjectThecustomstuffthattheextentionmodulewillconsider
weightType:SystemSingleTheweightofthecustomstuff.Mustbe0...1
SeeAlsoReferenceCameraStateCustomBlendableStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicCustomBlendable(
Objectcustom,
floatweight
)
CopyC# JavaScript
Cinemachine
CustomBlendableFields
TheCameraStateCustomBlendabletypeexposesthefollowingmembers.
Fields Name Description
m_Custom Thecustomstuffthattheextentionmodulewillconsider
m_Weight Theweightofthecustomstuff.Mustbe0...1
Top
SeeAlsoReferenceCameraStateCustomBlendableStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CameraStateCustomBlendablem_CustomField
Thecustomstuffthattheextentionmodulewillconsider
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Object
SeeAlsoReferenceCameraStateCustomBlendableStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicObjectm_Custom
CopyC# JavaScript
Cinemachine
CameraStateCustomBlendablem_WeightField
Theweightofthecustomstuff.Mustbe0...1
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCameraStateCustomBlendableStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicfloatm_Weight
CopyC# JavaScript
Cinemachine
CinemachineBasicMultiChannelPerlinClass
AsapartoftheCinemachinePipelineimplementingtheNoisestage,thiscomponentaddsPerlinNoisetotheCamerastate,intheCorrectionchanneloftheCameraState.Thenoiseiscreatedbyusingapredefinednoiseprofileasset.Thisdefinestheshapeofthenoiseovertime.Youcanscalethisinamplitudeorintime,toproducealargefamilyofdifferentnoisesusingthesameprofile.
InheritanceHierarchySystemObjectObjectComponentBehaviourMonoBehaviourCinemachineCinemachineComponentBaseCinemachineCinemachineBasicMultiChannelPerlin
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheCinemachineBasicMultiChannelPerlintypeexposesthefollowingmembers.
[DocumentationSortingAttribute(8f,DocumentationSortingAttribute
[AddComponentMenu("")]
[RequireComponent(typeof(CinemachinePipeline))]
[SaveDuringPlayAttribute]
publicclassCinemachineBasicMultiChannelPerlin:CinemachineComponentBase
CopyC# JavaScript
Properties Name Description
FollowTarget Returnstheownervcam'sFollowtarget.(InheritedfromCinemachineComponentBase.)
IsValid Trueifthecomponentisvalid,i.e.ithasanoisedefinitionandisenabled.(OverridesCinemachineComponentBaseIsValid.)
LookAtTarget Returnstheownervcam'sLookAttarget.(InheritedfromCinemachineComponentBase.)
Stage GettheCinemachinePipelinestagethatthiscomponentimplements.AlwaysreturnstheNoisestage(OverridesCinemachineComponentBaseStage.)
VcamState Returnstheownervcam'sCameraState.(InheritedfromCinemachineComponentBase.)
VirtualCamera GettheassociatedCinemachineVirtualCameraBase(InheritedfromCinemachineComponentBase.)
Top
Methods Name Description
MutateCameraState AppliesnoisetotheCorrectionchanneloftheCameraStateifthedeltatimeisgreaterthan0.Otherwise,doesnothing.(OverridesCinemachineComponentBaseMutateCameraState(CameraStateSingle).)
OnPositionDragged APIfortheeditor,toprocessapositiondragfromtheuser.classimplementationdoesnothing.(InheritedfromCinemachineComponentBase
Top
Fields Name Description
m_AmplitudeGain Gaintoapplytotheamplitudesdefinedinthesettingsasset.
m_FrequencyGain Scalefactortoapplytothefrequenciesdefinedinthesettingsasset.
m_NoiseProfile SerializedpropertyforreferencingaNoiseSettingsasset
Top
SeeAlsoReference
CinemachineNamespaceCinemachineNoiseSettings
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineBasicMultiChannelPerlinProperties
TheCinemachineBasicMultiChannelPerlintypeexposesthefollowingmembers.
Properties Name Description
FollowTarget Returnstheownervcam'sFollowtarget.(InheritedfromCinemachineComponentBase.)
IsValid Trueifthecomponentisvalid,i.e.ithasanoisedefinitionandisenabled.(OverridesCinemachineComponentBaseIsValid.)
LookAtTarget Returnstheownervcam'sLookAttarget.(InheritedfromCinemachineComponentBase.)
Stage GettheCinemachinePipelinestagethatthiscomponentimplements.AlwaysreturnstheNoisestage(OverridesCinemachineComponentBaseStage.)
VcamState Returnstheownervcam'sCameraState.(InheritedfromCinemachineComponentBase.)
VirtualCamera GettheassociatedCinemachineVirtualCameraBase(InheritedfromCinemachineComponentBase.)
Top
SeeAlsoReferenceCinemachineBasicMultiChannelPerlinClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineBasicMultiChannelPerlinProperty
Trueifthecomponentisvalid,i.e.ithasanoisedefinitionandisenabled.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Boolean
SeeAlsoReferenceCinemachineBasicMultiChannelPerlinClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverrideboolIsValid{get;}
CopyC# JavaScript
Cinemachine
CinemachineBasicMultiChannelPerlinProperty
GettheCinemachinePipelinestagethatthiscomponentimplements.AlwaysreturnstheNoisestage
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:CinemachineCoreStage
SeeAlsoReferenceCinemachineBasicMultiChannelPerlinClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverrideCinemachineCoreStageStage{get;}
CopyC# JavaScript
Cinemachine
CinemachineBasicMultiChannelPerlinMethods
TheCinemachineBasicMultiChannelPerlintypeexposesthefollowingmembers.
Methods Name Description
MutateCameraState AppliesnoisetotheCorrectionchanneloftheCameraStateifthedeltatimeisgreaterthan0.Otherwise,doesnothing.(OverridesCinemachineComponentBaseMutateCameraState(CameraStateSingle).)
OnPositionDragged APIfortheeditor,toprocessapositiondragfromtheuser.classimplementationdoesnothing.(InheritedfromCinemachineComponentBase
Top
SeeAlsoReferenceCinemachineBasicMultiChannelPerlinClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineBasicMultiChannelPerlinMethod
AppliesnoisetotheCorrectionchanneloftheCameraStateifthedeltatimeisgreaterthan0.Otherwise,doesnothing.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
curStateType:CinemachineCameraStateThecurrentcamerastate
deltaTimeType:SystemSingleHowmuchtoadvancetheperlinnoisegenerator.Noiseisonlyappliedifthisvalueisgreaterthanorequalto0
SeeAlsoReferenceCinemachineBasicMultiChannelPerlinClassCinemachineNamespace
publicoverridevoidMutateCameraState(
refCameraStatecurState,
floatdeltaTime
)
CopyC# JavaScript
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineBasicMultiChannelPerlinFields
TheCinemachineBasicMultiChannelPerlintypeexposesthefollowingmembers.
Fields Name Description
m_AmplitudeGain Gaintoapplytotheamplitudesdefinedinthesettingsasset.
m_FrequencyGain Scalefactortoapplytothefrequenciesdefinedinthesettingsasset.
m_NoiseProfile SerializedpropertyforreferencingaNoiseSettingsasset
Top
SeeAlsoReferenceCinemachineBasicMultiChannelPerlinClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineBasicMultiChannelPerlinField
Gaintoapplytotheamplitudesdefinedinthesettingsasset.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineBasicMultiChannelPerlinClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("GaintoapplytotheamplitudesdefinedintheNoiseSettingsasset.1isnormal.Settingthisto0completelymutesthenoise.")]
publicfloatm_AmplitudeGain
CopyC# JavaScript
Cinemachine
CinemachineBasicMultiChannelPerlinField
Scalefactortoapplytothefrequenciesdefinedinthesettingsasset.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineBasicMultiChannelPerlinClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("ScalefactortoapplytothefrequenciesdefinedintheNoiseSettingsasset.1isnormal.Largermagnitudeswillmakethenoiseshakemorerapidly.")]
publicfloatm_FrequencyGain
CopyC# JavaScript
Cinemachine
CinemachineBasicMultiChannelPerlinField
SerializedpropertyforreferencingaNoiseSettingsasset
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:NoiseSettings
SeeAlsoReferenceCinemachineBasicMultiChannelPerlinClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[HideInInspector]
[TooltipAttribute("TheassetcontainingtheNoiseProfile.Definethefrequenciesandamplitudestheretomakeacharacteristicnoiseprofile.Makeyourownorjustuseoneofthemanypresets.")]
[FormerlySerializedAsAttribute("m_Definition")]
publicNoiseSettingsm_NoiseProfile
CopyC# JavaScript
Cinemachine
CinemachineBlendClass
Describesablendbetween2CinemachineVirtualCameras,andholdsthecurrentstateoftheblend.
InheritanceHierarchySystemObjectCinemachineCinemachineBlend
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheCinemachineBlendtypeexposesthefollowingmembers.
Constructors Name Description
CinemachineBlend Constructablend
Top
Properties Name Description
BlendCurve Thecurvethatdescribesthewaytheblendtransitionsovertimefromthefirstcameratothesecond.X-
publicclassCinemachineBlend
CopyC# JavaScript
axisistimeinsecondsoverwhichtheblendtakesplaceandYaxisisblendweight(0..1)
BlendWeight Thecurrentweightoftheblend.ThisisanevaluationoftheBlendCurveatthecurrenttimerelativetothestartoftheblend.0meanscamA,1meanscamB.
CamA Firstcameraintheblend
CamB Secondcameraintheblend
Description Textdescriptionoftheblend,fordebugging
Duration Durationinsecondsoftheblend.ThisisgivenreadfromtheBlendCurve.
IsComplete Trueifthetimerelativetothestartoftheblendisgreaterthanorequaltotheblendduration
IsValid Validitytestfortheblend.Trueifbothcamerasaredefined.
State ComputetheblendedCameraStateforthecurrenttimeintheblend.
TimeInBlend Thecurrenttimerelativetothestartoftheblend
Top
Methods Name Description
UpdateCameraState Makesurethesourcecamerasgetupdated.
Uses DoestheblenduseaspecificCinemachineVirtualCamera?
Top
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineBlendConstructor
Constructablend
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
aType:CinemachineICinemachineCameraFirstcamera
bType:CinemachineICinemachineCameraSecondcamera
curveType:AnimationCurveBlendcurve
durationType:SystemSingle[Missing<paramname="duration"/>documentationfor"M:Cinemachine.CinemachineBlend.#ctor(Cinemachine.ICinemachineCamera,Cinemachine.ICinemachineCamera,UnityEngine.AnimationCurve,System.Single,System.Single)"]
t
publicCinemachineBlend(
ICinemachineCameraa,
ICinemachineCamerab,
AnimationCurvecurve,
floatduration,
floatt
)
CopyC# JavaScript
Type:SystemSingleCurrenttimeinblend,relativetothestartoftheblend
SeeAlsoReferenceCinemachineBlendClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineBlendProperties
TheCinemachineBlendtypeexposesthefollowingmembers.
Properties Name Description
BlendCurve Thecurvethatdescribesthewaytheblendtransitionsovertimefromthefirstcameratothesecond.X-axisistimeinsecondsoverwhichtheblendtakesplaceandYaxisisblendweight(0..1)
BlendWeight Thecurrentweightoftheblend.ThisisanevaluationoftheBlendCurveatthecurrenttimerelativetothestartoftheblend.0meanscamA,1meanscamB.
CamA Firstcameraintheblend
CamB Secondcameraintheblend
Description Textdescriptionoftheblend,fordebugging
Duration Durationinsecondsoftheblend.ThisisgivenreadfromtheBlendCurve.
IsComplete Trueifthetimerelativetothestartoftheblendisgreaterthanorequaltotheblendduration
IsValid Validitytestfortheblend.Trueifbothcamerasaredefined.
State ComputetheblendedCameraStateforthecurrenttimeintheblend.
TimeInBlend Thecurrenttimerelativetothestartoftheblend
Top
SeeAlsoReferenceCinemachineBlendClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineBlendBlendCurveProperty
Thecurvethatdescribesthewaytheblendtransitionsovertimefromthefirstcameratothesecond.X-axisistimeinsecondsoverwhichtheblendtakesplaceandYaxisisblendweight(0..1)
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:AnimationCurve
SeeAlsoReferenceCinemachineBlendClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicAnimationCurveBlendCurve{get;set;}
CopyC# JavaScript
Cinemachine
CinemachineBlendBlendWeightProperty
Thecurrentweightoftheblend.ThisisanevaluationoftheBlendCurveatthecurrenttimerelativetothestartoftheblend.0meanscamA,1meanscamB.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Single
SeeAlsoReferenceCinemachineBlendClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicfloatBlendWeight{get;}
CopyC# JavaScript
Cinemachine
CinemachineBlendCamAProperty
Firstcameraintheblend
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:ICinemachineCamera
SeeAlsoReferenceCinemachineBlendClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicICinemachineCameraCamA{get;set;}
CopyC# JavaScript
Cinemachine
CinemachineBlendCamBProperty
Secondcameraintheblend
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:ICinemachineCamera
SeeAlsoReferenceCinemachineBlendClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicICinemachineCameraCamB{get;set;}
CopyC# JavaScript
Cinemachine
CinemachineBlendDescriptionProperty
Textdescriptionoftheblend,fordebugging
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:String
SeeAlsoReferenceCinemachineBlendClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicstringDescription{get;}
CopyC# JavaScript
Cinemachine
CinemachineBlendDurationProperty
Durationinsecondsoftheblend.ThisisgivenreadfromtheBlendCurve.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Single
SeeAlsoReferenceCinemachineBlendClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicfloatDuration{get;set;}
CopyC# JavaScript
Cinemachine
CinemachineBlendIsCompleteProperty
Trueifthetimerelativetothestartoftheblendisgreaterthanorequaltotheblendduration
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Boolean
SeeAlsoReferenceCinemachineBlendClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicboolIsComplete{get;}
CopyC# JavaScript
Cinemachine
CinemachineBlendIsValidProperty
Validitytestfortheblend.Trueifbothcamerasaredefined.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Boolean
SeeAlsoReferenceCinemachineBlendClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicboolIsValid{get;}
CopyC# JavaScript
Cinemachine
CinemachineBlendStateProperty
ComputetheblendedCameraStateforthecurrenttimeintheblend.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:CameraState
SeeAlsoReferenceCinemachineBlendClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicCameraStateState{get;}
CopyC# JavaScript
Cinemachine
CinemachineBlendTimeInBlendProperty
Thecurrenttimerelativetothestartoftheblend
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Single
SeeAlsoReferenceCinemachineBlendClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicfloatTimeInBlend{get;set;}
CopyC# JavaScript
Cinemachine
CinemachineBlendMethods
TheCinemachineBlendtypeexposesthefollowingmembers.
Methods Name Description
UpdateCameraState Makesurethesourcecamerasgetupdated.
Uses DoestheblenduseaspecificCinemachineVirtualCamera?
Top
SeeAlsoReferenceCinemachineBlendClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineBlendUpdateCameraStateMethod
Makesurethesourcecamerasgetupdated.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
worldUpType:Vector3Defaultworldup.Individualvcamsmaymodifythis
deltaTimeType:SystemSingleTimeincrementusedforcalculatingtime-basedbehaviours(e.g.damping)
SeeAlsoReferenceCinemachineBlendClassCinemachineNamespace
VisittheCinemachineForum
publicvoidUpdateCameraState(
Vector3worldUp,
floatdeltaTime
)
CopyC# JavaScript
https://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineBlendUsesMethod
DoestheblenduseaspecificCinemachineVirtualCamera?
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
camType:CinemachineICinemachineCameraThecameratotest
ReturnValueType:BooleanTrueifthecameraisinvolvedintheblend
SeeAlsoReferenceCinemachineBlendClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicboolUses(
ICinemachineCameracam
)
CopyC# JavaScript
Cinemachine
CinemachineBlendDefinitionStructure
DefinitionofaCamerablend.ThisstructholdstheinformationnecessarytogenerateasuitableAnimationCurveforaCinemachineBlend.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheCinemachineBlendDefinitiontypeexposesthefollowingmembers.
Constructors Name Description
CinemachineBlendDefinition Constructor
Top
Properties Name Description
BlendCurve AnAnimationCurvespecifyingthe
[SerializableAttribute]
[DocumentationSortingAttribute(10.2f,DocumentationSortingAttribute
publicstructCinemachineBlendDefinition
CopyC# JavaScript
interpolationdurationandvalueforthiscamerablend.Thetimeofthelastkeyframeisassumedtothebethedurationoftheblend.Y-axisvaluesmustbeinrange[0,1](internallyclampedwithinBlender)andtimemustbeinrangeof[0,+infinity)
Top
Fields Name Description
m_Style Theshapeoftheblendcurve.
m_Time Theduration(inseconds)oftheblend
Top
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineBlendDefinitionConstructor
Constructor
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
styleType:CinemachineCinemachineBlendDefinitionStyleTheshapeoftheblendcurve.
timeType:SystemSingleTheduration(inseconds)oftheblend
SeeAlsoReferenceCinemachineBlendDefinitionStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicCinemachineBlendDefinition(
CinemachineBlendDefinitionStylestyle,
floattime
)
CopyC# JavaScript
Cinemachine
CinemachineBlendDefinitionProperties
TheCinemachineBlendDefinitiontypeexposesthefollowingmembers.
Properties Name Description
BlendCurve AnAnimationCurvespecifyingtheinterpolationdurationandvalueforthiscamerablend.Thetimeofthelastkeyframeisassumedtothebethedurationoftheblend.Y-axisvaluesmustbeinrange[0,1](internallyclampedwithinBlender)andtimemustbeinrangeof[0,+infinity)
Top
SeeAlsoReferenceCinemachineBlendDefinitionStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineBlendDefinitionBlendCurveProperty
AnAnimationCurvespecifyingtheinterpolationdurationandvalueforthiscamerablend.Thetimeofthelastkeyframeisassumedtothebethedurationoftheblend.Y-axisvaluesmustbeinrange[0,1](internallyclampedwithinBlender)andtimemustbeinrangeof[0,+infinity)
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:AnimationCurve
SeeAlsoReferenceCinemachineBlendDefinitionStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicAnimationCurveBlendCurve{get;}
CopyC# JavaScript
Cinemachine
CinemachineBlendDefinitionFields
TheCinemachineBlendDefinitiontypeexposesthefollowingmembers.
Fields Name Description
m_Style Theshapeoftheblendcurve.
m_Time Theduration(inseconds)oftheblend
Top
SeeAlsoReferenceCinemachineBlendDefinitionStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineBlendDefinitionm_StyleField
Theshapeoftheblendcurve.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachineBlendDefinitionStyle
SeeAlsoReferenceCinemachineBlendDefinitionStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Shapeoftheblendcurve")]
publicCinemachineBlendDefinitionStylem_Style
CopyC# JavaScript
Cinemachine
CinemachineBlendDefinitionm_TimeField
Theduration(inseconds)oftheblend
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineBlendDefinitionStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Durationoftheblend,inseconds")]
publicfloatm_Time
CopyC# JavaScript
Cinemachine
CinemachineBlendDefinitionStyleEnumeration
Supportedpredefinedshapesfortheblendcurve.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Members
Membername Value Description
Cut 0 Zero-lengthblend
EaseInOut 1 S-shapedcurve,givingagentleandsmoothtransition
EaseIn 2 Linearoutoftheoutgoingshot,andeasyintotheincoming
EaseOut 3 Easyoutoftheoutgoingshot,andlinearintotheincoming
[DocumentationSortingAttribute(10.21f,DocumentationSortingAttribute
publicenumStyle
CopyC# JavaScript
HardIn 4 Easyoutoftheoutgoing,andhardintotheincoming
HardOut 5 Hardoutoftheoutgoing,andeasyintotheincoming
Linear 6 Linearblend.Mechanical-looking.
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineBlendDefinitionPropertyAttributeClass
PropertyappliedtoCinemachineBlendDefinition.Usedforcustomdrawingintheinspector.
InheritanceHierarchySystemObjectSystemAttributePropertyAttributeCinemachineCinemachineBlendDefinitionPropertyAttribute
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheCinemachineBlendDefinitionPropertyAttributetypeexposesthefollowingmembers.
Constructors Name Description
CinemachineBlendDefinitionPropertyAttribute
Top
SeeAlso
publicsealedclassCinemachineBlendDefinitionPropertyAttribute
CopyC# JavaScript
ReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineBlendDefinitionPropertyAttributeConstructor
[Missing<summary>documentationfor"M:Cinemachine.CinemachineBlendDefinitionPropertyAttribute.#ctor"]
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineBlendDefinitionPropertyAttributeClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicCinemachineBlendDefinitionPropertyAttribute()
CopyC# JavaScript
Cinemachine
CinemachineBlenderSettingsClass
AssetthatdefinestherulesforblendingbetweenVirtualCameras.
InheritanceHierarchySystemObjectObjectScriptableObjectCinemachineCinemachineBlenderSettings
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheCinemachineBlenderSettingstypeexposesthefollowingmembers.
Constructors Name Description
CinemachineBlenderSettings
Top
[SerializableAttribute]
[DocumentationSortingAttribute(10f,DocumentationSortingAttribute
publicsealedclassCinemachineBlenderSettings:ScriptableObject
CopyC# JavaScript
Methods Name Description
GetBlendCurveForVirtualCameras Attemptstofindablendcurvewhichmatchesthetoandfromcamerasasspecified.Ifnomatchisfound,thefunctionreturnseitherthedefaultblendforthisBlenderorNULLdependingonthestatereturnDefaultOnNoMatch
Top
Fields Name Description
kBlendFromAnyCameraLabel InternalAPIfortheinspectoreditopr:alabeltorepresentanycamera
m_CustomBlends ThearraycontainingexplicitlydefinedblendsbetweentwoVirtualCameras
Top
SeeAlso
ReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineBlenderSettingsConstructor
[Missing<summary>documentationfor"M:Cinemachine.CinemachineBlenderSettings.#ctor"]
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineBlenderSettingsClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicCinemachineBlenderSettings()
CopyC# JavaScript
Cinemachine
CinemachineBlenderSettingsMethods
TheCinemachineBlenderSettingstypeexposesthefollowingmembers.
Methods Name Description
GetBlendCurveForVirtualCameras Attemptstofindablendcurvewhichmatchesthetoandfromcamerasasspecified.Ifnomatchisfound,thefunctionreturnseitherthedefaultblendforthisBlenderorNULLdependingonthestatereturnDefaultOnNoMatch
Top
SeeAlsoReferenceCinemachineBlenderSettingsClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineBlenderSettingsGetBlendCurveForVirtualCamerasMethod
Attemptstofindablendcurvewhichmatchesthetoandfromcamerasasspecified.Ifnomatchisfound,thefunctionreturnseitherthedefaultblendforthisBlenderorNULLdependingonthestateofreturnDefaultOnNoMatch.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
fromCameraNameType:SystemStringThegameobjectnameofthefromcamera
toCameraNameType:SystemStringThegameobjectnameofthetocamera
defaultCurveType:AnimationCurveCurvetoreturnifnocurvefound.CanbeNULL.
publicAnimationCurveGetBlendCurveForVirtualCameras
stringfromCameraName,
stringtoCameraName,
AnimationCurvedefaultCurve
)
CopyC# JavaScript
ReturnValueType:AnimationCurve[Missing<returns>documentationfor"M:Cinemachine.CinemachineBlenderSettings.GetBlendCurveForVirtualCameras(System.String,System.String,UnityEngine.AnimationCurve)"]
SeeAlsoReferenceCinemachineBlenderSettingsClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineBlenderSettingsFields
TheCinemachineBlenderSettingstypeexposesthefollowingmembers.
Fields Name Description
kBlendFromAnyCameraLabel InternalAPIfortheinspectoreditopr:alabeltorepresentanycamera
m_CustomBlends ThearraycontainingexplicitlydefinedblendsbetweentwoVirtualCameras
Top
SeeAlsoReferenceCinemachineBlenderSettingsClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineBlenderSettingskBlendFromAnyCameraLabelField
InternalAPIfortheinspectoreditopr:alabeltorepresentanycamera
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:String
SeeAlsoReferenceCinemachineBlenderSettingsClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicconststringkBlendFromAnyCameraLabel="**ANYCAMERA**"
CopyC# JavaScript
Cinemachine
CinemachineBlenderSettingsm_CustomBlendsField
ThearraycontainingexplicitlydefinedblendsbetweentwoVirtualCameras
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachineBlenderSettingsCustomBlend
SeeAlsoReferenceCinemachineBlenderSettingsClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("ThearraycontainingexplicitlydefinedblendsbetweentwoVirtualCameras")]
publicCinemachineBlenderSettingsCustomBlend[]m_CustomBlends
CopyC# JavaScript
Cinemachine
CinemachineBlenderSettingsCustomBlendStructure
ContainerspecifyinghowtwospecificCinemachineVirtualCamerasblendtogether.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheCinemachineBlenderSettingsCustomBlendtypeexposesthefollowingmembers.
Fields Name Description
m_Blend
m_From
m_To
Top
SeeAlso
[SerializableAttribute]
[DocumentationSortingAttribute(10.1f,DocumentationSortingAttribute
publicstructCustomBlend
CopyC# JavaScript
ReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CustomBlendFields
TheCinemachineBlenderSettingsCustomBlendtypeexposesthefollowingmembers.
Fields Name Description
m_Blend
m_From
m_To
Top
SeeAlsoReferenceCinemachineBlenderSettingsCustomBlendStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineBlenderSettingsCustomBlendField
[Missing<summary>documentationfor"F:Cinemachine.CinemachineBlenderSettings.CustomBlend.m_Blend"]
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachineBlendDefinition
SeeAlsoReferenceCinemachineBlenderSettingsCustomBlendStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Blendcurvedefinition")]
publicCinemachineBlendDefinitionm_Blend
CopyC# JavaScript
Cinemachine
CinemachineBlenderSettingsCustomBlendField
[Missing<summary>documentationfor"F:Cinemachine.CinemachineBlenderSettings.CustomBlend.m_From"]
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:String
SeeAlsoReferenceCinemachineBlenderSettingsCustomBlendStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Whenblendingfromthiscamera")]
publicstringm_From
CopyC# JavaScript
Cinemachine
CinemachineBlenderSettingsCustomBlendField
[Missing<summary>documentationfor"F:Cinemachine.CinemachineBlenderSettings.CustomBlend.m_To"]
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:String
SeeAlsoReferenceCinemachineBlenderSettingsCustomBlendStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Whenblendingtothiscamera")]
publicstringm_To
CopyC# JavaScript
Cinemachine
CinemachineBlendListCameraClass
Thisisavirtualcamera"manager"thatownsandmanagesacollectionofchildVirtualCameras.Whenthecameragoeslive,thesechildvcamsareenabled,oneafteranother,holdingeachcameraforadesignatedtime.Blendsbetweencamerasarespecified.Thelastcameraisheldindefinitely.
InheritanceHierarchySystemObjectObjectComponentBehaviourMonoBehaviourCinemachineCinemachineVirtualCameraBaseCinemachineCinemachineBlendListCamera
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheCinemachineBlendListCameratypeexposesthefollowingmembers.
[DocumentationSortingAttribute(13f,DocumentationSortingAttribute
[ExecuteInEditMode]
[DisallowMultipleComponent]
[AddComponentMenu("Cinemachine/CinemachineBlendListCamera")]
publicclassCinemachineBlendListCamera:CinemachineVirtualCameraBase
CopyC# JavaScript
Constructors Name Description
CinemachineBlendListCamera
Top
Properties Name Description
ChildCameras Thelistofchildcameras.Thesearejusttheimmediatechildreninthehierarchy.
Description Getsabriefdebugdescriptionofthisvirtualcamera,forusewhendisplayiongdebuginfo(OverridesCinemachineVirtualCameraBase
Follow GetthecurrentFollowtarget.Returnsparent'sFollowifparentisnon-nullandnospecificFollowdefinedforthiscamera(OverridesCinemachineVirtualCameraBase
IsBlending Isthereablendinprogress?
LiveChild Getthecurrent"best"childvirtualcamera,thatwouldbechoseniftheStateDrivenCamerawereactive.
LiveChildOrSelf Returnthelivechild.(OverridesCinemachineVirtualCameraBase
LookAt GetthecurrentLookAttarget.LookAtifparentisnon-nullandnospecific
LookAtdefinedforthiscamera(OverridesCinemachineVirtualCameraBase
Name GetthenameoftheVirtualCamera.implementationreturnstheownerGameObject'sname.(InheritedfromCinemachineVirtualCameraBase
ParentCamera Supportformeta-virtual-cameras.situationwhereavirtualcameraisinfactthepublicfaceofaprivatearmyofvirtualcameras,whichitmanagesonitsown.ThismethodgetstheVirtualCameraowner,ifany.areimplementedasTransformchildrenoftheparentvcam.(InheritedfromCinemachineVirtualCameraBase
PreviousStateIsValid SetthistoforcethenextupdatetoignoredeltaTimeandresetitself(InheritedfromCinemachineVirtualCameraBase
Priority GetthePriorityofthevirtualcamera.determinesitsplacementintheCinemachineCore'squeueofeligibleshots.(InheritedfromCinemachineVirtualCameraBase
State TheStateofthecurrentlivechild(OverridesCinemachineVirtualCameraBase
ValidatingStreamVersion Versionthatwaslaststreamed,forupgradinglegacy(InheritedfromCinemachineVirtualCameraBase
VirtualCameraGameObject TheGameObjectowneroftheVirtualCamerabehaviour.(InheritedfromCinemachineVirtualCameraBase
Top
Methods Name Description
AddPostPipelineStageHook Adelegatetohookintothestatecalculationpipeline.pipeline.SeeCinemachineCore.Stage.(InheritedfromCinemachineVirtualCameraBase
InvokePostPipelineStageCallback InvokesthePostPipelineStageDelegateforthiscamera,andupthehierarchyforall(InheritedfromCinemachineVirtualCameraBase
IsLiveChild Checkwhetherthevcamalivechildofthiscamera.(OverridesCinemachineVirtualCameraBase
MoveToTopOfPrioritySubqueue Whenmultiplevirtualcamerashavethehighestpriority,thereisLivecameraifitsharesthehighestpriorityinthequeuewithitspeers.themostrecentonegoestothetopoftheprioritysubqueue.anditspeerssharethehighestpriority,thenthisvcamwillbecomeLive.(InheritedfromCinemachineVirtualCameraBase
OnDestroy Baseclassimplementationremovesthevirtualcamerafromthepriorityqueue.(InheritedfromCinemachineVirtualCameraBase
OnDisable Baseclassimplementationmakessurethepriorityqueueremainsup-to-date.(InheritedfromCinemachineVirtualCameraBase
OnEnable Makessuretheinternalchildcacheisuptodate(OverridesCinemachineVirtualCameraBase
OnTransformChildrenChanged Makessuretheinternalchildcacheisuptodate
OnTransformParentChanged Baseclassimplementationmakessurethepriorityqueueremainsup-to-date.(InheritedfromCinemachineVirtualCameraBase
OnTransitionFromCamera (OverridesCinemachineVirtualCameraBase
OnValidate Enforceboundsforfields,whenchangedininspector.basemethodiscalled,ValidatingStreamVersionwillbevalid.
(InheritedfromCinemachineVirtualCameraBase
PreUpdateChildCameras Thisiscalledpriortotheupdatingofthevcam'schildcameras,areupdatingonFixedUpdate,thenthiswillnotnecessarilybecalledLateUpdateinstead.Baseclassimplementationdoesnothing.(InheritedfromCinemachineVirtualCameraBase
RemovePostPipelineStageHook RemoveaPipelinestagehookcallback.(OverridesCinemachineVirtualCameraBase
ResolveFollow Returnsthisvcam'sFollowtarget,orifthatisnull,willretrun(InheritedfromCinemachineVirtualCameraBase
ResolveLookAt Returnsthisvcam'sLookAttarget,orifthatisnull,willretrun(InheritedfromCinemachineVirtualCameraBase
Start Baseclassimplementationdoesnothing.(InheritedfromCinemachineVirtualCameraBase
Update Baseclassimplementationmakessurethepriorityqueueremainsup-to-date.(InheritedfromCinemachineVirtualCameraBase
UpdateCameraState CalledbyCinemachineCoreatdesignatedupdatetimeupdatesallthechildren,choosesthebestone,andimplementsanyrequiredblending.(OverridesCinemachineVirtualCameraBase
ValidateInstructions InternalAPIfortheinspectoreditor.
Top
Fields Name Description
CinemachineGUIDebuggerCallback Thisisdeprecated.Itisheretosupportthesoon-to-be-removedCinemachineDebuggerintheEditor.
(InheritedfromCinemachineVirtualCameraBase
m_ChildCameras InternalAPIfortheeditor.usethisfield
m_EnableAllChildCameras Forceallchildcamerastobeenabled.ThisisusefulifanimatingtheminTimeline,butconsumesextraresources.
m_ExcludedPropertiesInInspector Inspectorcontrol-UseforhidingsectionsoftheInspectorUI.(InheritedfromCinemachineVirtualCameraBase
m_Follow Defaultobjectforthecamerachildrenwantstomovewith(thebodytarget),ifnotspecifiedinachildrig.Maybeempty
m_Instructions Thesetofinstructionsassociatingvirtualcameraswithstates.setofinstructionsforenablingchildcameras
m_LockStageInInspector Inspectorcontrol-UseforenablingsectionsoftheInspectorUI.(InheritedfromCinemachineVirtualCameraBase
m_LookAt Defaultobjectforthecamerachildrentolookat(theaimtarget),ifnotspecifiedinachildrig.Maybeempty
m_Priority Theprioritywilldeterminewhichcamerabecomesactivebasedon
thestateofothercamerasandthiscamera.Highernumbershavegreaterpriority.(InheritedfromCinemachineVirtualCameraBase
m_ShowDebugText Whenenabled,thecurrentcameraandblendwillbeindicatedinthegamewindow,fordebugging
OnPostPipelineStage Adelegatetohookintothestatecalculationpipeline.Implementaionmustbesuretocallthisaftereachpipelinestage,toallowotherservicestohookintothepipeline.SeeCinemachineCore.Stage.(InheritedfromCinemachineVirtualCameraBase
Top
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineBlendListCameraConstructor
[Missing<summary>documentationfor"M:Cinemachine.CinemachineBlendListCamera.#ctor"]
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineBlendListCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicCinemachineBlendListCamera()
CopyC# JavaScript
Cinemachine
CinemachineBlendListCameraProperties
TheCinemachineBlendListCameratypeexposesthefollowingmembers.
Properties Name Description
ChildCameras Thelistofchildcameras.Thesearejusttheimmediatechildreninthehierarchy.
Description Getsabriefdebugdescriptionofthisvirtualcamera,forusewhendisplayiongdebuginfo(OverridesCinemachineVirtualCameraBase
Follow GetthecurrentFollowtarget.Returnsparent'sFollowifparentisnon-nullandnospecificFollowdefinedforthiscamera(OverridesCinemachineVirtualCameraBase
IsBlending Isthereablendinprogress?
LiveChild Getthecurrent"best"childvirtualcamera,thatwouldbechoseniftheStateDrivenCamerawereactive.
LiveChildOrSelf Returnthelivechild.(OverridesCinemachineVirtualCameraBase
LookAt GetthecurrentLookAttarget.
LookAtifparentisnon-nullandnospecificLookAtdefinedforthiscamera(OverridesCinemachineVirtualCameraBase
Name GetthenameoftheVirtualCamera.implementationreturnstheownerGameObject'sname.(InheritedfromCinemachineVirtualCameraBase
ParentCamera Supportformeta-virtual-cameras.situationwhereavirtualcameraisinfactthepublicfaceofaprivatearmyofvirtualcameras,whichitmanagesonitsown.ThismethodgetstheVirtualCameraowner,ifany.areimplementedasTransformchildrenoftheparentvcam.(InheritedfromCinemachineVirtualCameraBase
PreviousStateIsValid SetthistoforcethenextupdatetoignoredeltaTimeandresetitself(InheritedfromCinemachineVirtualCameraBase
Priority GetthePriorityofthevirtualcamera.determinesitsplacementintheCinemachineCore'squeueofeligibleshots.(InheritedfromCinemachineVirtualCameraBase
State TheStateofthecurrentlivechild(OverridesCinemachineVirtualCameraBase
ValidatingStreamVersion Versionthatwaslaststreamed,forupgradinglegacy(InheritedfromCinemachineVirtualCameraBase
VirtualCameraGameObject TheGameObjectowneroftheVirtualCamerabehaviour.(InheritedfromCinemachineVirtualCameraBase
Top
SeeAlsoReferenceCinemachineBlendListCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineBlendListCameraChildCamerasProperty
Thelistofchildcameras.Thesearejusttheimmediatechildreninthehierarchy.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:CinemachineVirtualCameraBase
SeeAlsoReferenceCinemachineBlendListCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicCinemachineVirtualCameraBase[]ChildCameras{
CopyC# JavaScript
Cinemachine
CinemachineBlendListCameraDescriptionProperty
Getsabriefdebugdescriptionofthisvirtualcamera,forusewhendisplayiongdebuginfo
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:StringImplementsICinemachineCameraDescription
SeeAlsoReferenceCinemachineBlendListCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverridestringDescription{get;}
CopyC# JavaScript
Cinemachine
CinemachineBlendListCameraFollowProperty
GetthecurrentFollowtarget.Returnsparent'sFollowifparentisnon-nullandnospecificFollowdefinedforthiscamera
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:TransformImplementsICinemachineCameraFollow
SeeAlsoReferenceCinemachineBlendListCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverrideTransformFollow{get;set;}
CopyC# JavaScript
Cinemachine
CinemachineBlendListCameraIsBlendingProperty
Isthereablendinprogress?
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Boolean
SeeAlsoReferenceCinemachineBlendListCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicboolIsBlending{get;}
CopyC# JavaScript
Cinemachine
CinemachineBlendListCameraLiveChildProperty
Getthecurrent"best"childvirtualcamera,thatwouldbechoseniftheStateDrivenCamerawereactive.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:ICinemachineCamera
SeeAlsoReferenceCinemachineBlendListCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicICinemachineCameraLiveChild{get;set;}
CopyC# JavaScript
Cinemachine
CinemachineBlendListCameraLiveChildOrSelfProperty
Returnthelivechild.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:ICinemachineCameraImplementsICinemachineCameraLiveChildOrSelf
SeeAlsoReferenceCinemachineBlendListCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverrideICinemachineCameraLiveChildOrSelf{
CopyC# JavaScript
Cinemachine
CinemachineBlendListCameraLookAtProperty
GetthecurrentLookAttarget.Returnsparent'sLookAtifparentisnon-nullandnospecificLookAtdefinedforthiscamera
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:TransformImplementsICinemachineCameraLookAt
SeeAlsoReferenceCinemachineBlendListCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverrideTransformLookAt{get;set;}
CopyC# JavaScript
Cinemachine
CinemachineBlendListCameraStateProperty
TheStateofthecurrentlivechild
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:CameraStateImplementsICinemachineCameraState
SeeAlsoReferenceCinemachineBlendListCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverrideCameraStateState{get;}
CopyC# JavaScript
Cinemachine
CinemachineBlendListCameraMethods
TheCinemachineBlendListCameratypeexposesthefollowingmembers.
Methods Name Description
AddPostPipelineStageHook Adelegatetohookintothestatecalculationpipeline.pipeline.SeeCinemachineCore.Stage.(InheritedfromCinemachineVirtualCameraBase
InvokePostPipelineStageCallback InvokesthePostPipelineStageDelegateforthiscamera,andupthehierarchyforall(InheritedfromCinemachineVirtualCameraBase
IsLiveChild Checkwhetherthevcamalivechildofthiscamera.(OverridesCinemachineVirtualCameraBase
MoveToTopOfPrioritySubqueue Whenmultiplevirtualcamerashavethehighestpriority,thereisLivecameraifitsharesthehighestpriorityinthequeuewithitspeers.themostrecentonegoestothetopoftheprioritysubqueue.anditspeerssharethehighestpriority,thenthisvcamwillbecomeLive.(InheritedfromCinemachineVirtualCameraBase
OnDestroy Baseclassimplementationremovesthevirtualcamerafromthepriorityqueue.(InheritedfromCinemachineVirtualCameraBase
OnDisable Baseclassimplementationmakessurethepriorityqueueremainsup-to-date.(InheritedfromCinemachineVirtualCameraBase
OnEnable Makessuretheinternalchildcacheisuptodate(OverridesCinemachineVirtualCameraBase
OnTransformChildrenChanged Makessuretheinternalchildcacheisuptodate
OnTransformParentChanged Baseclassimplementationmakessurethepriorityqueueremainsup-to-date.(InheritedfromCinemachineVirtualCameraBase
OnTransitionFromCamera (OverridesCinemachineVirtualCameraBase
OnValidate Enforceboundsforfields,whenchangedininspector.basemethodiscalled,ValidatingStreamVersionwillbevalid.(InheritedfromCinemachineVirtualCameraBase
PreUpdateChildCameras Thisiscalledpriortotheupdatingofthevcam'schildcameras,areupdatingonFixedUpdate,thenthiswillnotnecessarilybecalledLateUpdateinstead.Baseclassimplementationdoesnothing.(InheritedfromCinemachineVirtualCameraBase
RemovePostPipelineStageHook RemoveaPipelinestagehookcallback.(OverridesCinemachineVirtualCameraBase
ResolveFollow Returnsthisvcam'sFollowtarget,orifthatisnull,willretrun(InheritedfromCinemachineVirtualCameraBase
ResolveLookAt Returnsthisvcam'sLookAttarget,orifthatisnull,willretrun(InheritedfromCinemachineVirtualCameraBase
Start Baseclassimplementationdoesnothing.(InheritedfromCinemachineVirtualCameraBase
Update Baseclassimplementationmakessurethepriorityqueueremainsup-to-date.(InheritedfromCinemachineVirtualCameraBase
UpdateCameraState CalledbyCinemachineCoreatdesignatedupdatetimeupdatesallthechildren,choosesthebestone,andimplementsanyrequiredblending.(OverridesCinemachineVirtualCameraBase
ValidateInstructions InternalAPIfortheinspectoreditor.
Top
SeeAlsoReferenceCinemachineBlendListCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineBlendListCameraIsLiveChildMethod
Checkwhetherthevcamalivechildofthiscamera.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
vcamType:CinemachineICinemachineCameraTheVirtualCameratocheck
ReturnValueType:BooleanTrueifthevcamiscurrentlyactivelyinfluencingthestateofthisvcamImplementsICinemachineCameraIsLiveChild(ICinemachineCamera)
SeeAlsoReferenceCinemachineBlendListCameraClassCinemachineNamespace
publicoverrideboolIsLiveChild(
ICinemachineCameravcam
)
CopyC# JavaScript
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineBlendListCameraOnEnableMethod
Makessuretheinternalchildcacheisuptodate
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineBlendListCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
protectedoverridevoidOnEnable()
CopyC# JavaScript
Cinemachine
CinemachineBlendListCameraOnTransformChildrenChangedMethod
Makessuretheinternalchildcacheisuptodate
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineBlendListCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicvoidOnTransformChildrenChanged()
CopyC# JavaScript
Cinemachine
CinemachineBlendListCameraOnTransitionFromCameraMethod
[Missing<summary>documentationfor"M:Cinemachine.CinemachineBlendListCamera.OnTransitionFromCamera(Cinemachine.ICinemachineCamera)"]
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
fromCamType:CinemachineICinemachineCamera[Missing<paramname="fromCam"/>documentationfor"M:Cinemachine.CinemachineBlendListCamera.OnTransitionFromCamera(Cinemachine.ICinemachineCamera)"]
ImplementsICinemachineCameraOnTransitionFromCamera(ICinemachineCamera)
SeeAlsoReferenceCinemachineBlendListCameraClassCinemachineNamespace
publicoverridevoidOnTransitionFromCamera(
ICinemachineCamerafromCam
)
CopyC# JavaScript
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineBlendListCameraRemovePostPipelineStageHookMethod
RemoveaPipelinestagehookcallback.Makesureitisremovedfromallthechildren.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
dType:CinemachineCinemachineVirtualCameraBaseOnPostPipelineStageDelegateThedelegatetoremove.
SeeAlsoReferenceCinemachineBlendListCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverridevoidRemovePostPipelineStageHook(
CinemachineVirtualCameraBaseOnPostPipelineStageDelegate
)
CopyC# JavaScript
Cinemachine
CinemachineBlendListCameraUpdateCameraStateMethod
CalledbyCinemachineCoreatdesignatedupdatetimesothevcamcanpositionitselfandtrackitstargets.Thisimplementationupdatesallthechildren,choosesthebestone,andimplementsanyrequiredblending.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
worldUpType:Vector3DefaultworldUp,setbytheCinemachineBrain
deltaTimeType:SystemSingleDeltatimefortime-basedeffects(ignoreiflessthanorequalto0)
ImplementsICinemachineCameraUpdateCameraState(Vector3,Single)
SeeAlso
publicoverridevoidUpdateCameraState(
Vector3worldUp,
floatdeltaTime
)
CopyC# JavaScript
ReferenceCinemachineBlendListCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineBlendListCameraValidateInstructionsMethod
InternalAPIfortheinspectoreditor.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineBlendListCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicvoidValidateInstructions()
CopyC# JavaScript
Cinemachine
CinemachineBlendListCameraFields
TheCinemachineBlendListCameratypeexposesthefollowingmembers.
Fields Name Description
CinemachineGUIDebuggerCallback Thisisdeprecated.Itisheretosupportthesoon-to-be-removedCinemachineDebuggerintheEditor.(InheritedfromCinemachineVirtualCameraBase
m_ChildCameras InternalAPIfortheeditor.usethisfield
m_EnableAllChildCameras Forceallchildcamerastobeenabled.ThisisusefulifanimatingtheminTimeline,butconsumesextraresources.
m_ExcludedPropertiesInInspector Inspectorcontrol-UseforhidingsectionsoftheInspectorUI.(InheritedfromCinemachineVirtualCameraBase
m_Follow Defaultobjectforthecamerachildrenwantstomovewith(thebodytarget),ifnotspecifiedinachildrig.Maybeempty
m_Instructions Thesetofinstructionsassociatingvirtualcameraswithstates.setofinstructionsforenablingchildcameras
m_LockStageInInspector Inspectorcontrol-UseforenablingsectionsoftheInspectorUI.(InheritedfromCinemachineVirtualCameraBase
m_LookAt Defaultobjectforthecamerachildrentolookat(theaimtarget),ifnotspecifiedinachildrig.Maybeempty
m_Priority Theprioritywilldeterminewhichcamerabecomesactivebasedonthestateofothercamerasandthiscamera.Highernumbershavegreaterpriority.(InheritedfromCinemachineVirtualCameraBase
m_ShowDebugText Whenenabled,thecurrentcameraandblendwillbeindicatedinthegamewindow,fordebugging
OnPostPipelineStage Adelegatetohookintothestatecalculationpipeline.Implementaionmustbesuretocallthisaftereachpipelinestage,toallowotherservicestohookintothepipeline.SeeCinemachineCore.Stage.(InheritedfromCinemachineVirtualCameraBase
Top
SeeAlsoReferenceCinemachineBlendListCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineBlendListCameram_ChildCamerasField
InternalAPIfortheeditor.Donotusethisfield
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachineVirtualCameraBase
SeeAlsoReferenceCinemachineBlendListCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[SerializeField]
[HideInInspector]
[NoSaveDuringPlayAttribute]
publicCinemachineVirtualCameraBase[]m_ChildCameras
CopyC# JavaScript
Cinemachine
CinemachineBlendListCameram_EnableAllChildCamerasField
Forceallchildcamerastobeenabled.ThisisusefulifanimatingtheminTimeline,butconsumesextraresources.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Boolean
SeeAlsoReferenceCinemachineBlendListCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Forceallchildcamerastobeenabled.ThisisusefulifanimatingtheminTimeline,butconsumesextraresources")]
publicboolm_EnableAllChildCameras
CopyC# JavaScript
Cinemachine
CinemachineBlendListCameram_FollowField
Defaultobjectforthecamerachildrenwantstomovewith(thebodytarget),ifnotspecifiedinachildrig.Maybeempty
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Transform
SeeAlsoReferenceCinemachineBlendListCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Defaultobjectforthecamerachildrenwantstomovewith(thebodytarget),ifnotspecifiedinachildcamera.Maybeemptyifallofthechildrendefinetargetsoftheirown.")]
[NoSaveDuringPlayAttribute]
publicTransformm_Follow
CopyC# JavaScript
Cinemachine
CinemachineBlendListCameram_InstructionsField
Thesetofinstructionsassociatingvirtualcameraswithstates.Thesetofinstructionsforenablingchildcameras
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachineBlendListCameraInstruction
SeeAlsoReferenceCinemachineBlendListCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Thesetofinstructionsforenablingchildcameras.")]
publicCinemachineBlendListCameraInstruction[]m_Instructions
CopyC# JavaScript
Cinemachine
CinemachineBlendListCameram_LookAtField
Defaultobjectforthecamerachildrentolookat(theaimtarget),ifnotspecifiedinachildrig.Maybeempty
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Transform
SeeAlsoReferenceCinemachineBlendListCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Defaultobjectforthecamerachildrentolookat(theaimtarget),ifnotspecifiedinachildcamera.Maybeemptyifallofthechildrendefinetargetsoftheirown.")]
[NoSaveDuringPlayAttribute]
publicTransformm_LookAt
CopyC# JavaScript
Cinemachine
CinemachineBlendListCameram_ShowDebugTextField
Whenenabled,thecurrentcameraandblendwillbeindicatedinthegamewindow,fordebugging
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Boolean
SeeAlsoReferenceCinemachineBlendListCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Whenenabled,thecurrentchildcameraandblendwillbeindicatedinthegamewindow,fordebugging")]
publicboolm_ShowDebugText
CopyC# JavaScript
Cinemachine
CinemachineBlendListCameraInstructionStructure
ThisrepresentsasingleentryintheinstrunctionlistoftheBlendListCamera.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheCinemachineBlendListCameraInstructiontypeexposesthefollowingmembers.
Fields Name Description
m_Blend Howtoblendtothenextvirtualcamerainthelist(ifany)
m_Hold Howlongtowait(inseconds)beforeactivatingthenextvirtualcamerainthelist(ifany)
m_VirtualCamera Thevirtualcameratoactivatewhenthisinstructionbecomes
[SerializableAttribute]
publicstructInstruction
CopyC# JavaScript
active
Top
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
InstructionFields
TheCinemachineBlendListCameraInstructiontypeexposesthefollowingmembers.
Fields Name Description
m_Blend Howtoblendtothenextvirtualcamerainthelist(ifany)
m_Hold Howlongtowait(inseconds)beforeactivatingthenextvirtualcamerainthelist(ifany)
m_VirtualCamera Thevirtualcameratoactivatewhenthisinstructionbecomesactive
Top
SeeAlsoReferenceCinemachineBlendListCameraInstructionStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineBlendListCameraInstructionField
Howtoblendtothenextvirtualcamerainthelist(ifany)
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachineBlendDefinition
SeeAlsoReferenceCinemachineBlendListCameraInstructionStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[CinemachineBlendDefinitionPropertyAttribute]
[TooltipAttribute("Howtoblendtothenextvirtualcamerainthelist(ifany)")]
publicCinemachineBlendDefinitionm_Blend
CopyC# JavaScript
Cinemachine
CinemachineBlendListCameraInstructionField
Howlongtowait(inseconds)beforeactivatingthenextvirtualcamerainthelist(ifany)
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineBlendListCameraInstructionStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Howlongtowait(inseconds)beforeactivatingthenextvirtualcamerainthelist(ifany)")]
publicfloatm_Hold
CopyC# JavaScript
Cinemachine
CinemachineBlendListCameraInstructionField
Thevirtualcameratoactivatewhenthisinstructionbecomesactive
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachineVirtualCameraBase
SeeAlsoReferenceCinemachineBlendListCameraInstructionStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Thevirtualcameratoactivatewhenthisinstructionbecomesactive")]
publicCinemachineVirtualCameraBasem_VirtualCamera
CopyC# JavaScript
Cinemachine
CinemachineBrainClass
CinemachineBrainisthelinkbetweentheUnityCameraandtheCinemachineVirtualCamerasinthescene.ItmonitorstheprioritystacktochoosethecurrentVirtualCamera,andblendwithanotherifnecessary.Finallyandmostimportantly,itappliestheVirtualCamerastatetotheattachedUnityCamera.TheCinemachineBrainisalsotheplacewhererulesforblendingbetweenvirtualcamerasaredefined.Camerablendingisaninterpolationovertimeofonevirtualcamerapositionandstatetoanother.Ifyouthinkofvirtualcamerasascameramen,thenblendingisalittlelikeonecameramansmoothlypassingthecameratoanothercameraman.Youcanspecifythetimeoverwhichtoblend,aswellastheblendcurveshape.Notethatacameracutisjustazero-timeblend.
InheritanceHierarchySystemObjectObjectComponentBehaviourMonoBehaviourCinemachineCinemachineBrain
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
[DocumentationSortingAttribute(0f,DocumentationSortingAttribute
[ExecuteInEditMode]
[DisallowMultipleComponent]
[AddComponentMenu("Cinemachine/CinemachineBrain")]
[SaveDuringPlayAttribute]
publicclassCinemachineBrain:MonoBehaviour
CopyC# JavaScript
TheCinemachineBraintypeexposesthefollowingmembers.
Constructors Name Description
CinemachineBrain
Top
Properties Name Description
ActiveBlend Getthecurrentblendinprogress.Returnsnullifnone.
ActiveVirtualCamera Getthecurrentactivevirtualcamera.
CurrentCameraState Thecurrentstateappliedtotheunitycamera(maybetheresultofablend)
DefaultWorldUp Getthedefaultworldupforthevirtualcameras.
IsBlending Isthereablendinprogress?
OutputCamera GettheUnityCamerathatisattachedtothisGameObject.Thisisthecamerathatwillbecontrolledbythebrain.
SoloCamera APIfortheUnityEditor.Showthiscameranomatterwhat.Thisisstatic,andsoaffectsallCinemachinebrains.
Top
Methods Name Description
GetSoloGUIColor APIfortheUnityEditor.
IsLive TrueiftheICinemachineCamerathecurrentactivecamera,orpartofacurrentblend,eitherdirectlyorindirectlybecauseitsparentsarelive.
Top
Fields Name Description
m_CameraActivatedEvent Thiseventwillfirewheneveravirtualcameragoeslive.Ifablendisinvolved,thentheeventwillfireonthefirstframeoftheblend
m_CameraCutEvent Thiseventwillfirewheneveravirtualcameragoesliveandthereisnoblend
m_CustomBlends Thisistheassetwhichcontainscustomsettingsforspecificblends.
m_DefaultBlend Theblendwhichisusedifyoudon'texplicitlydefineablendbetweentwoVirtualCameras.
m_IgnoreTimeScale Whenenabled,thecameraswillalwaysrespondinreal-timetouserinputanddamping,evenifthegameisrunninginslowmotion
m_ShowCameraFrustum Whenenabled,showsthecamera'sfrustuminthesceneview.
m_ShowDebugText Whenenabled,thecurrentcameraandblendwillbeindicatedinthegamewindow,fordebugging.
m_UpdateMethod Dependingonhowthetargetobjectsareanimated,adjusttheupdatemethodtominimizethepotentialjitter.UseFixedUpdateifallyourtargetsareanimatedwithfor
RigidBodyanimation.SmartUpdatewillchoosethebestmethodforeachvirtualcamera,dependingonhowthetargetisanimated.
m_WorldUpOverride Ifset,thisobject'sYaxiswilldefinetheworldspaceUpvectorforallthevirtualcameras.Thisisusefulintop-downgameenvironments.Ifnotset,UpisworldspaceY.
Top
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineBrainConstructor
[Missing<summary>documentationfor"M:Cinemachine.CinemachineBrain.#ctor"]
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineBrainClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicCinemachineBrain()
CopyC# JavaScript
Cinemachine
CinemachineBrainProperties
TheCinemachineBraintypeexposesthefollowingmembers.
Properties Name Description
ActiveBlend Getthecurrentblendinprogress.Returnsnullifnone.
ActiveVirtualCamera Getthecurrentactivevirtualcamera.
CurrentCameraState Thecurrentstateappliedtotheunitycamera(maybetheresultofablend)
DefaultWorldUp Getthedefaultworldupforthevirtualcameras.
IsBlending Isthereablendinprogress?
OutputCamera GettheUnityCamerathatisattachedtothisGameObject.Thisisthecamerathatwillbecontrolledbythebrain.
SoloCamera APIfortheUnityEditor.Showthiscameranomatterwhat.Thisisstatic,andsoaffectsallCinemachinebrains.
Top
SeeAlsoReferenceCinemachineBrainClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineBrainActiveBlendProperty
Getthecurrentblendinprogress.Returnsnullifnone.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:CinemachineBlend
SeeAlsoReferenceCinemachineBrainClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicCinemachineBlendActiveBlend{get;}
CopyC# JavaScript
Cinemachine
CinemachineBrainActiveVirtualCameraProperty
Getthecurrentactivevirtualcamera.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:ICinemachineCamera
SeeAlsoReferenceCinemachineBrainClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicICinemachineCameraActiveVirtualCamera{get
CopyC# JavaScript
Cinemachine
CinemachineBrainCurrentCameraStateProperty
Thecurrentstateappliedtotheunitycamera(maybetheresultofablend)
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:CameraState
SeeAlsoReferenceCinemachineBrainClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicCameraStateCurrentCameraState{get;}
CopyC# JavaScript
Cinemachine
CinemachineBrainDefaultWorldUpProperty
Getthedefaultworldupforthevirtualcameras.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Vector3
SeeAlsoReferenceCinemachineBrainClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicVector3DefaultWorldUp{get;}
CopyC# JavaScript
Cinemachine
CinemachineBrainIsBlendingProperty
Isthereablendinprogress?
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Boolean
SeeAlsoReferenceCinemachineBrainClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicboolIsBlending{get;}
CopyC# JavaScript
Cinemachine
CinemachineBrainOutputCameraProperty
GettheUnityCamerathatisattachedtothisGameObject.Thisisthecamerathatwillbecontrolledbythebrain.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Camera
SeeAlsoReferenceCinemachineBrainClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicCameraOutputCamera{get;}
CopyC# JavaScript
Cinemachine
CinemachineBrainSoloCameraProperty
APIfortheUnityEditor.Showthiscameranomatterwhat.Thisisstatic,andsoaffectsallCinemachinebrains.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:ICinemachineCamera
SeeAlsoReferenceCinemachineBrainClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicstaticICinemachineCameraSoloCamera{get;
CopyC# JavaScript
Cinemachine
CinemachineBrainMethods
TheCinemachineBraintypeexposesthefollowingmembers.
Methods Name Description
GetSoloGUIColor APIfortheUnityEditor.
IsLive TrueiftheICinemachineCamerathecurrentactivecamera,orpartofacurrentblend,eitherdirectlyorindirectlybecauseitsparentsarelive.
Top
SeeAlsoReferenceCinemachineBrainClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineBrainGetSoloGUIColorMethod
APIfortheUnityEditor.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
ReturnValueType:ColorColorusedtoindicatethatacameraisinSolomode.
SeeAlsoReferenceCinemachineBrainClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicstaticColorGetSoloGUIColor()
CopyC# JavaScript
Cinemachine
CinemachineBrainIsLiveMethod
TrueiftheICinemachineCamerathecurrentactivecamera,orpartofacurrentblend,eitherdirectlyorindirectlybecauseitsparentsarelive.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
vcamType:CinemachineICinemachineCameraThecameratotestwhetheritislive
ReturnValueType:BooleanTrueifthecameraislive(directlyorindirectly)orpartofablendinprogress.
SeeAlsoReferenceCinemachineBrainClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicboolIsLive(
ICinemachineCameravcam
)
CopyC# JavaScript
Cinemachine
CinemachineBrainFields
TheCinemachineBraintypeexposesthefollowingmembers.
Fields Name Description
m_CameraActivatedEvent Thiseventwillfirewheneveravirtualcameragoeslive.Ifablendisinvolved,thentheeventwillfireonthefirstframeoftheblend
m_CameraCutEvent Thiseventwillfirewheneveravirtualcameragoesliveandthereisnoblend
m_CustomBlends Thisistheassetwhichcontainscustomsettingsforspecificblends.
m_DefaultBlend Theblendwhichisusedifyoudon'texplicitlydefineablendbetweentwoVirtualCameras.
m_IgnoreTimeScale Whenenabled,thecameraswillalwaysrespondinreal-timetouserinputand
damping,evenifthegameisrunninginslowmotion
m_ShowCameraFrustum Whenenabled,showsthecamera'sfrustuminthesceneview.
m_ShowDebugText Whenenabled,thecurrentcameraandblendwillbeindicatedinthegamewindow,fordebugging.
m_UpdateMethod Dependingonhowthetargetobjectsareanimated,adjusttheupdatemethodtominimizethepotentialjitter.UseFixedUpdateifallyourtargetsareanimatedwithforRigidBodyanimation.SmartUpdatewillchoosethebestmethodforeachvirtualcamera,dependingonhowthetargetisanimated.
m_WorldUpOverride Ifset,thisobject'sYaxiswilldefinetheworldspaceUpvectorforallthevirtualcameras.Thisisusefulintop-downgameenvironments.Ifnotset,Upis
worldspaceY.
Top
SeeAlsoReferenceCinemachineBrainClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineBrainm_CameraActivatedEventField
Thiseventwillfirewheneveravirtualcameragoeslive.Ifablendisinvolved,thentheeventwillfireonthefirstframeoftheblend
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachineBrainVcamEvent
SeeAlsoReferenceCinemachineBrainClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Thiseventwillfirewheneveravirtualcameragoeslive.Ifablendisinvolved,thentheeventwillfireonthefirstframeoftheblend.")]
publicCinemachineBrainVcamEventm_CameraActivatedEvent
CopyC# JavaScript
Cinemachine
CinemachineBrainm_CameraCutEventField
Thiseventwillfirewheneveravirtualcameragoesliveandthereisnoblend
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachineBrainBrainEvent
SeeAlsoReferenceCinemachineBrainClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Thiseventwillfirewheneveravirtualcameragoesliveandthereisnoblend")]
publicCinemachineBrainBrainEventm_CameraCutEvent
CopyC# JavaScript
Cinemachine
CinemachineBrainm_CustomBlendsField
Thisistheassetwhichcontainscustomsettingsforspecificblends.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachineBlenderSettings
SeeAlsoReferenceCinemachineBrainClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Thisistheassetthatcontainscustomsettingsforblendsbetweenspecificvirtualcamerasinyourscene")]
publicCinemachineBlenderSettingsm_CustomBlends
CopyC# JavaScript
Cinemachine
CinemachineBrainm_DefaultBlendField
Theblendwhichisusedifyoudon'texplicitlydefineablendbetweentwoVirtualCameras.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachineBlendDefinition
SeeAlsoReferenceCinemachineBrainClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[CinemachineBlendDefinitionPropertyAttribute]
[TooltipAttribute("Theblendthatisusedincaseswhereyouhaven'texplicitlydefinedablendbetweentwoVirtualCameras")]
publicCinemachineBlendDefinitionm_DefaultBlend
CopyC# JavaScript
Cinemachine
CinemachineBrainm_IgnoreTimeScaleField
Whenenabled,thecameraswillalwaysrespondinreal-timetouserinputanddamping,evenifthegameisrunninginslowmotion
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Boolean
SeeAlsoReferenceCinemachineBrainClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Whenenabled,thecameraswillalwaysrespondinreal-timetouserinputanddamping,evenifthegameisrunninginslowmotion")]
publicboolm_IgnoreTimeScale
CopyC# JavaScript
Cinemachine
CinemachineBrainm_ShowCameraFrustumField
Whenenabled,showsthecamera'sfrustuminthesceneview.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Boolean
SeeAlsoReferenceCinemachineBrainClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Whenenabled,thecamera'sfrustumwillbeshownatalltimesinthesceneview")]
publicboolm_ShowCameraFrustum
CopyC# JavaScript
Cinemachine
CinemachineBrainm_ShowDebugTextField
Whenenabled,thecurrentcameraandblendwillbeindicatedinthegamewindow,fordebugging.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Boolean
SeeAlsoReferenceCinemachineBrainClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Whenenabled,thecurrentcameraandblendwillbeindicatedinthegamewindow,fordebugging")]
publicboolm_ShowDebugText
CopyC# JavaScript
Cinemachine
CinemachineBrainm_UpdateMethodField
Dependingonhowthetargetobjectsareanimated,adjusttheupdatemethodtominimizethepotentialjitter.UseFixedUpdateifallyourtargetsareanimatedwithforRigidBodyanimation.SmartUpdatewillchoosethebestmethodforeachvirtualcamera,dependingonhowthetargetisanimated.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachineBrainUpdateMethod
SeeAlsoReferenceCinemachineBrainClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("UseFixedUpdateifallyourtargetsareanimatedduringFixedUpdate(e.g.RigidBodies),LateUpdateifallyourtargetsareanimatedduringthenormalUpdateloop,andSmartUpdateifyouwantCinemachinetodotheappropriatethingonaper-targetbasis.SmartUpdateistherecommendedsetting")]
publicCinemachineBrainUpdateMethodm_UpdateMethod
CopyC# JavaScript
Cinemachine
CinemachineBrainm_WorldUpOverrideField
Ifset,thisobject'sYaxiswilldefinetheworldspaceUpvectorforallthevirtualcameras.Thisisusefulintop-downgameenvironments.Ifnotset,UpisworldspaceY.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Transform
SeeAlsoReferenceCinemachineBrainClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Ifset,thisobject'sYaxiswilldefinetheworldspaceUpvectorforallthevirtualcameras.Thisisusefulforinstanceintop-downgameenvironments.Ifnotset,UpisworldspaceY.Settingthisappropriatelyisimportant,becauseVirtualCamerasdon'tlikelookingstraightuporstraightdown.")]
publicTransformm_WorldUpOverride
CopyC# JavaScript
Cinemachine
CinemachineBrainBrainEventClass
EventwithaCinemachineBrainparameter
InheritanceHierarchySystemObjectUnityEventBaseUnityEventCinemachineBrainCinemachineCinemachineBrainBrainEvent
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheCinemachineBrainBrainEventtypeexposesthefollowingmembers.
Constructors Name Description
CinemachineBrainBrainEvent
Top
Methods
[SerializableAttribute]
publicclassBrainEvent:UnityEvent<CinemachineBrain
CopyC# JavaScript
Name Description
AddListener(UnityActionUTP) (InheritedfromUnityEventCinemachineBrain
AddListener(Object,MethodInfo) (InheritedfromUnityEventBase.)
FindMethod_Impl (InheritedfromUnityEventCinemachineBrain
GetPersistentEventCount (InheritedfromUnityEventBase.)
GetPersistentMethodName (InheritedfromUnityEventBase.)
GetPersistentTarget (InheritedfromUnityEventBase.)
Invoke(Object) (InheritedfromUnityEventBase.)
Invoke(UTP) (InheritedfromUnityEventCinemachineBrain
RegisterPersistentListener (InheritedfromUnityEventBase.)
RemoveAllListeners (InheritedfromUnityEventBase.)
RemoveListener(UnityActionUTP) (InheritedfromUnityEventCinemachineBrain
RemoveListener(Object,MethodInfo)
(InheritedfromUnityEventBase.)
SetPersistentListenerState (InheritedfromUnityEventBase.)
ToString (InheritedfromUnityEventBase.)
ValidateRegistration(MethodInfo,Object,PersistentListenerMode)
(InheritedfromUnityEventBase.)
ValidateRegistration(MethodInfo,Object,PersistentListenerMode,Type)
(InheritedfromUnityEventBase.)
Top
ExplicitInterfaceImplementations Name
UnityEngine#ISerializationCallbackReceiver#OnAfterDeserialize
UnityEngine#ISerializationCallbackReceiver#OnBeforeSerialize
Top
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineBrainBrainEventConstructor
[Missing<summary>documentationfor"M:Cinemachine.CinemachineBrain.BrainEvent.#ctor"]
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineBrainBrainEventClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicBrainEvent()
CopyC# JavaScript
Cinemachine
BrainEventMethods
TheCinemachineBrainBrainEventtypeexposesthefollowingmembers.
Methods Name Description
AddListener(UnityActionUTP) (InheritedfromUnityEventCinemachineBrain
AddListener(Object,MethodInfo) (InheritedfromUnityEventBase.)
FindMethod_Impl (InheritedfromUnityEventCinemachineBrain
GetPersistentEventCount (InheritedfromUnityEventBase.)
GetPersistentMethodName (InheritedfromUnityEventBase.)
GetPersistentTarget (InheritedfromUnityEventBase.)
Invoke(Object) (InheritedfromUnityEventBase.)
Invoke(UTP) (InheritedfromUnityEventCinemachineBrain
RegisterPersistentListener (InheritedfromUnityEventBase.)
RemoveAllListeners (Inheritedfrom
UnityEventBase.)
RemoveListener(UnityActionUTP) (InheritedfromUnityEventCinemachineBrain
RemoveListener(Object,MethodInfo)
(InheritedfromUnityEventBase.)
SetPersistentListenerState (InheritedfromUnityEventBase.)
ToString (InheritedfromUnityEventBase.)
ValidateRegistration(MethodInfo,Object,PersistentListenerMode)
(InheritedfromUnityEventBase.)
ValidateRegistration(MethodInfo,Object,PersistentListenerMode,Type)
(InheritedfromUnityEventBase.)
Top
ExplicitInterfaceImplementations Name
UnityEngine#ISerializationCallbackReceiver#OnAfterDeserialize
UnityEngine#ISerializationCallbackReceiver#OnBeforeSerialize
Top
SeeAlsoReferenceCinemachineBrainBrainEventClass
CinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineBrainUpdateMethodEnumeration
Thisenumdefinestheoptionsavailablefortheupdatemethod.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Members
Membername Value Description
FixedUpdate 0 VirtualcamerasareupdatedinsyncwiththePhysicsmodule,inFixedUpdate
LateUpdate 1 VirtualcamerasareupdatedinMonoBehaviourLateUpdate.
SmartUpdate 2 Virtualcamerasareupdatedaccordingtohowthetargetis
[DocumentationSortingAttribute(0.1f,DocumentationSortingAttribute
publicenumUpdateMethod
CopyC# JavaScript
updated.
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineBrainVcamEventClass
EventwithaICinemachineCameraparameter
InheritanceHierarchySystemObjectUnityEventBaseUnityEventICinemachineCameraCinemachineCinemachineBrainVcamEvent
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheCinemachineBrainVcamEventtypeexposesthefollowingmembers.
Constructors Name Description
CinemachineBrainVcamEvent
Top
Methods
[SerializableAttribute]
publicclassVcamEvent:UnityEvent<ICinemachineCamera
CopyC# JavaScript
Name Description
AddListener(UnityActionUTP) (InheritedfromUnityEventICinemachineCamera
AddListener(Object,MethodInfo) (InheritedfromUnityEventBase
FindMethod_Impl (InheritedfromUnityEventICinemachineCamera
GetPersistentEventCount (InheritedfromUnityEventBase
GetPersistentMethodName (InheritedfromUnityEventBase
GetPersistentTarget (InheritedfromUnityEventBase
Invoke(Object) (InheritedfromUnityEventBase
Invoke(UTP) (InheritedfromUnityEventICinemachineCamera
RegisterPersistentListener (InheritedfromUnityEventBase
RemoveAllListeners (InheritedfromUnityEventBase
RemoveListener(UnityActionUTP) (InheritedfromUnityEventICinemachineCamera
RemoveListener(Object,MethodInfo)
(InheritedfromUnityEventBase
SetPersistentListenerState (InheritedfromUnityEventBase
ToString (InheritedfromUnityEventBase
ValidateRegistration(MethodInfo,Object,PersistentListenerMode)
(InheritedfromUnityEventBase
ValidateRegistration(MethodInfo,Object,PersistentListenerMode,
(InheritedfromUnityEventBase
Type)
Top
ExplicitInterfaceImplementations Name
UnityEngine#ISerializationCallbackReceiver#OnAfterDeserialize
UnityEngine#ISerializationCallbackReceiver#OnBeforeSerialize
Top
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineBrainVcamEventConstructor
[Missing<summary>documentationfor"M:Cinemachine.CinemachineBrain.VcamEvent.#ctor"]
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineBrainVcamEventClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicVcamEvent()
CopyC# JavaScript
Cinemachine
VcamEventMethods
TheCinemachineBrainVcamEventtypeexposesthefollowingmembers.
Methods Name Description
AddListener(UnityActionUTP) (InheritedfromUnityEventICinemachineCamera
AddListener(Object,MethodInfo) (InheritedfromUnityEventBase
FindMethod_Impl (InheritedfromUnityEventICinemachineCamera
GetPersistentEventCount (InheritedfromUnityEventBase
GetPersistentMethodName (InheritedfromUnityEventBase
GetPersistentTarget (InheritedfromUnityEventBase
Invoke(Object) (InheritedfromUnityEventBase
Invoke(UTP) (InheritedfromUnityEventICinemachineCamera
RegisterPersistentListener (InheritedfromUnityEventBase
RemoveAllListeners (InheritedfromUnityEventBase
RemoveListener(UnityActionUTP) (InheritedfromUnityEventICinemachineCamera
RemoveListener(Object,MethodInfo)
(InheritedfromUnityEventBase
SetPersistentListenerState (InheritedfromUnityEventBase
ToString (InheritedfromUnityEventBase
ValidateRegistration(MethodInfo,Object,PersistentListenerMode)
(InheritedfromUnityEventBase
ValidateRegistration(MethodInfo,Object,PersistentListenerMode,Type)
(InheritedfromUnityEventBase
Top
ExplicitInterfaceImplementations Name
UnityEngine#ISerializationCallbackReceiver#OnAfterDeserialize
UnityEngine#ISerializationCallbackReceiver#OnBeforeSerialize
Top
SeeAlsoReferenceCinemachineBrainVcamEventClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineClearShotClass
CinemachineClearShotisa"managercamera"thatownsandmanagesasetofVirtualCameragameObjectchildren.WhenLive,theClearShotwillcheckthechildren,andchoosetheonewiththebestqualityshotandmakeitLive.Thiscanbeaverypowerfultool.IfthechildcamerashaveCinemachineColliderextensions,theywillanalyzethescenefortargetobstructions,optimaltargetdistance,andotheritems,andreporttheirassessmentofshotqualitybacktotheClearShotparent,whowillthenchoosethebestone.Youcanusethistosetupcomplexmulti-cameracoverageofascene,andbeassuredthataclearshotofthetargetwillalwaysbeavailable.Ifmultiplechildcamerashavethesameshotquality,theonewiththehighestprioritywillbechosen.YoucanalsodefinecustomblendsbetweentheClearShotchildren.
InheritanceHierarchySystemObjectObjectComponentBehaviourMonoBehaviourCinemachineCinemachineVirtualCameraBaseCinemachineCinemachineClearShot
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
[DocumentationSortingAttribute(12f,DocumentationSortingAttribute
[ExecuteInEditMode]
[DisallowMultipleComponent]
[AddComponentMenu("Cinemachine/CinemachineClearShot")]
CopyC# JavaScript
TheCinemachineClearShottypeexposesthefollowingmembers.
Constructors Name Description
CinemachineClearShot
Top
Properties Name Description
ChildCameras Thelistofchildcameras.Thesearejusttheimmediatechildreninthehierarchy.
Description Getsabriefdebugdescriptionofthisvirtualcamera,forusewhendisplayiongdebuginfo(OverridesCinemachineVirtualCameraBase
Follow GetthecurrentFollowtarget.Returnsparent'sFollowifparentisnon-nullandnospecificFollowdefinedforthiscamera(OverridesCinemachineVirtualCameraBase
IsBlending Isthereablendinprogress?
LiveChild Getthecurrent"best"childvirtualcamera,thatwouldbechoseniftheClearShotcamerawereactive.
LiveChildOrSelf Returnthelivechild.(Overrides
publicclassCinemachineClearShot:CinemachineVirtualCameraBase
CinemachineVirtualCameraBase
LookAt GetthecurrentLookAttarget.LookAtifparentisnon-nullandnospecificLookAtdefinedforthiscamera(OverridesCinemachineVirtualCameraBase
Name GetthenameoftheVirtualCamera.implementationreturnstheownerGameObject'sname.(InheritedfromCinemachineVirtualCameraBase
ParentCamera Supportformeta-virtual-cameras.situationwhereavirtualcameraisinfactthepublicfaceofaprivatearmyofvirtualcameras,whichitmanagesonitsown.ThismethodgetstheVirtualCameraowner,ifany.areimplementedasTransformchildrenoftheparentvcam.(InheritedfromCinemachineVirtualCameraBase
PreviousStateIsValid SetthistoforcethenextupdatetoignoredeltaTimeandresetitself(InheritedfromCinemachineVirtualCameraBase
Priority GetthePriorityofthevirtualcamera.determinesitsplacementintheCinemachineCore'squeueofeligibleshots.(InheritedfromCinemachineVirtualCameraBase
State TheCameraStateofthecurrentlylivechild(OverridesCinemachineVirtualCameraBase
ValidatingStreamVersion Versionthatwaslaststreamed,forupgradinglegacy(InheritedfromCinemachineVirtualCameraBase
VirtualCameraGameObject TheGameObjectowneroftheVirtualCamerabehaviour.(InheritedfromCinemachineVirtualCameraBase
Top
Methods Name Description
AddPostPipelineStageHook Adelegatetohookintothestatecalculationpipeline.pipeline.SeeCinemachineCore.Stage.(InheritedfromCinemachineVirtualCameraBase
InvokePostPipelineStageCallback InvokesthePostPipelineStageDelegateforthiscamera,andupthehierarchyforall(InheritedfromCinemachineVirtualCameraBase
IsLiveChild Checkwhetherthevcamalivechildofthiscamera.(OverridesCinemachineVirtualCameraBase
MoveToTopOfPrioritySubqueue Whenmultiplevirtualcamerashavethehighestpriority,thereisLivecameraifitsharesthehighestpriorityinthequeuewithitspeers.themostrecentonegoestothetopoftheprioritysubqueue.anditspeerssharethehighestpriority,thenthisvcamwillbecomeLive.(InheritedfromCinemachineVirtualCameraBase
OnDestroy Baseclassimplementationremovesthevirtualcamerafromthepriorityqueue.(InheritedfromCinemachineVirtualCameraBase
OnDisable Baseclassimplementationmakessurethepriorityqueueremainsup-to-date.(InheritedfromCinemachineVirtualCameraBase
OnEnable Makessuretheinternalchildcacheisuptodate(OverridesCinemachineVirtualCameraBase
OnTransformChildrenChanged Makessuretheinternalchildcacheisuptodate
OnTransformParentChanged Baseclassimplementationmakessurethepriorityqueueremainsup-to-date.(InheritedfromCinemachineVirtualCameraBase
OnTransitionFromCamera Notificationthatthisvirtualcameraisgoinglive.(OverridesCinemachineVirtualCameraBase
OnValidate Enforceboundsforfields,whenchangedininspector.basemethodiscalled,ValidatingStreamVersionwillbevalid.(InheritedfromCinemachineVirtualCameraBase
PreUpdateChildCameras Thisiscalledpriortotheupdatingofthevcam'schildcameras,areupdatingonFixedUpdate,thenthiswillnotnecessarilybecalledLateUpdateinstead.Baseclassimplementationdoesnothing.(InheritedfromCinemachineVirtualCameraBase
RemovePostPipelineStageHook RemoveaPipelinestagehookcallback.(OverridesCinemachineVirtualCameraBase
ResetRandomization IfRandomizeChoiceisenabled,callthistore-randomizethechildrennextframe.
ResolveFollow Returnsthisvcam'sFollowtarget,orifthatisnull,willretrun(InheritedfromCinemachineVirtualCameraBase
ResolveLookAt Returnsthisvcam'sLookAttarget,orifthatisnull,willretrun(InheritedfromCinemachineVirtualCameraBase
Start Baseclassimplementationdoesnothing.(InheritedfromCinemachineVirtualCameraBase
Update Baseclassimplementationmakessurethepriorityqueueremainsup-to-date.(InheritedfromCinemachineVirtualCameraBase
UpdateCameraState CalledbyCinemachineCoreatdesignatedupdatetimeupdatesallthechildren,choosesthebestone,andimplementsanyrequiredblending.(OverridesCinemachineVirtualCameraBase
Top
Fields Name Description
CinemachineGUIDebuggerCallback Thisisdeprecated.Itisheretosupportthesoon-to-be-removedCinemachineDebuggerintheEditor.(InheritedfromCinemachineVirtualCameraBase
m_ActivateAfter Waitthismanysecondsbeforeactivatinganewchildcamera
m_ChildCameras InternalAPIfortheeditor.usethisfiled.
m_CustomBlends Thisistheassetwhichcontainscustomsettingsforspecificblends
m_DefaultBlend Theblendwhichisusedifyoudon'texplicitlydefineablendbetweentwoVirtualCameras
m_ExcludedPropertiesInInspector Inspectorcontrol-UseforhidingsectionsoftheInspectorUI.(InheritedfromCinemachineVirtualCameraBase
m_Follow Defaultobjectforthecamerachildrenwantstomovewith(thebodytarget),ifnotspecifiedinachildcamera.Maybeempty.
m_LockStageInInspector Inspectorcontrol-UseforenablingsectionsoftheInspectorUI.(InheritedfromCinemachineVirtualCameraBase
m_LookAt Defaultobjectforthecamerachildrentolookat(theaim
target),ifnotspecifiedinachildcamera.Maybeempty.
m_MinDuration Anactivecameramustbeactiveforatleastthismanyseconds,unlessahigher-prioritycamerawantstoactivate
m_Priority Theprioritywilldeterminewhichcamerabecomesactivebasedonthestateofothercamerasandthiscamera.Highernumbershavegreaterpriority.(InheritedfromCinemachineVirtualCameraBase
m_RandomizeChoice Ifchecked,camerachoicewillberandomizedifmultiplecamerasareequallydesirable.childlistorderwillbeused
m_ShowDebugText Whenenabled,thecurrentcameraandblendwillbeindicatedinthegamewindow,fordebugging
OnPostPipelineStage Adelegatetohookintothestatecalculationpipeline.Implementaionmustbesuretocallthisaftereachpipelinestage,toallowotherservicestohookintothepipeline.SeeCinemachineCore.Stage.(InheritedfromCinemachineVirtualCameraBase
Top
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineClearShotConstructor
[Missing<summary>documentationfor"M:Cinemachine.CinemachineClearShot.#ctor"]
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineClearShotClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicCinemachineClearShot()
CopyC# JavaScript
Cinemachine
CinemachineClearShotProperties
TheCinemachineClearShottypeexposesthefollowingmembers.
Properties Name Description
ChildCameras Thelistofchildcameras.Thesearejusttheimmediatechildreninthehierarchy.
Description Getsabriefdebugdescriptionofthisvirtualcamera,forusewhendisplayiongdebuginfo(OverridesCinemachineVirtualCameraBase
Follow GetthecurrentFollowtarget.Returnsparent'sFollowifparentisnon-nullandnospecificFollowdefinedforthiscamera(OverridesCinemachineVirtualCameraBase
IsBlending Isthereablendinprogress?
LiveChild Getthecurrent"best"childvirtualcamera,thatwouldbechoseniftheClearShotcamerawereactive.
LiveChildOrSelf Returnthelivechild.(OverridesCinemachineVirtualCameraBase
LookAt GetthecurrentLookAttarget.LookAtifparentisnon-nullandnospecific
LookAtdefinedforthiscamera(OverridesCinemachineVirtualCameraBase
Name GetthenameoftheVirtualCamera.implementationreturnstheownerGameObject'sname.(InheritedfromCinemachineVirtualCameraBase
ParentCamera Supportformeta-virtual-cameras.situationwhereavirtualcameraisinfactthepublicfaceofaprivatearmyofvirtualcameras,whichitmanagesonitsown.ThismethodgetstheVirtualCameraowner,ifany.areimplementedasTransformchildrenoftheparentvcam.(InheritedfromCinemachineVirtualCameraBase
PreviousStateIsValid SetthistoforcethenextupdatetoignoredeltaTimeandresetitself(InheritedfromCinemachineVirtualCameraBase
Priority GetthePriorityofthevirtualcamera.determinesitsplacementintheCinemachineCore'squeueofeligibleshots.(InheritedfromCinemachineVirtualCameraBase
State TheCameraStateofthecurrentlylivechild(OverridesCinemachineVirtualCameraBase
ValidatingStreamVersion Versionthatwaslaststreamed,forupgradinglegacy(InheritedfromCinemachineVirtualCameraBase
VirtualCameraGameObject TheGameObjectowneroftheVirtualCamerabehaviour.(InheritedfromCinemachineVirtualCameraBase
Top
SeeAlsoReferenceCinemachineClearShotClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineClearShotChildCamerasProperty
Thelistofchildcameras.Thesearejusttheimmediatechildreninthehierarchy.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:CinemachineVirtualCameraBase
SeeAlsoReferenceCinemachineClearShotClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicCinemachineVirtualCameraBase[]ChildCameras{
CopyC# JavaScript
Cinemachine
CinemachineClearShotDescriptionProperty
Getsabriefdebugdescriptionofthisvirtualcamera,forusewhendisplayiongdebuginfo
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:StringImplementsICinemachineCameraDescription
SeeAlsoReferenceCinemachineClearShotClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverridestringDescription{get;}
CopyC# JavaScript
Cinemachine
CinemachineClearShotFollowProperty
GetthecurrentFollowtarget.Returnsparent'sFollowifparentisnon-nullandnospecificFollowdefinedforthiscamera
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:TransformImplementsICinemachineCameraFollow
SeeAlsoReferenceCinemachineClearShotClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverrideTransformFollow{get;set;}
CopyC# JavaScript
Cinemachine
CinemachineClearShotIsBlendingProperty
Isthereablendinprogress?
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Boolean
SeeAlsoReferenceCinemachineClearShotClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicboolIsBlending{get;}
CopyC# JavaScript
Cinemachine
CinemachineClearShotLiveChildProperty
Getthecurrent"best"childvirtualcamera,thatwouldbechoseniftheClearShotcamerawereactive.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:ICinemachineCamera
SeeAlsoReferenceCinemachineClearShotClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicICinemachineCameraLiveChild{get;set;}
CopyC# JavaScript
Cinemachine
CinemachineClearShotLiveChildOrSelfProperty
Returnthelivechild.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:ICinemachineCameraImplementsICinemachineCameraLiveChildOrSelf
SeeAlsoReferenceCinemachineClearShotClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverrideICinemachineCameraLiveChildOrSelf{
CopyC# JavaScript
Cinemachine
CinemachineClearShotLookAtProperty
GetthecurrentLookAttarget.Returnsparent'sLookAtifparentisnon-nullandnospecificLookAtdefinedforthiscamera
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:TransformImplementsICinemachineCameraLookAt
SeeAlsoReferenceCinemachineClearShotClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverrideTransformLookAt{get;set;}
CopyC# JavaScript
Cinemachine
CinemachineClearShotStateProperty
TheCameraStateofthecurrentlylivechild
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:CameraStateImplementsICinemachineCameraState
SeeAlsoReferenceCinemachineClearShotClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverrideCameraStateState{get;}
CopyC# JavaScript
Cinemachine
CinemachineClearShotMethods
TheCinemachineClearShottypeexposesthefollowingmembers.
Methods Name Description
AddPostPipelineStageHook Adelegatetohookintothestatecalculationpipeline.pipeline.SeeCinemachineCore.Stage.(InheritedfromCinemachineVirtualCameraBase
InvokePostPipelineStageCallback InvokesthePostPipelineStageDelegateforthiscamera,andupthehierarchyforall(InheritedfromCinemachineVirtualCameraBase
IsLiveChild Checkwhetherthevcamalivechildofthiscamera.(OverridesCinemachineVirtualCameraBase
MoveToTopOfPrioritySubqueue Whenmultiplevirtualcamerashavethehighestpriority,thereisLivecameraifitsharesthehighestpriorityinthequeuewithitspeers.themostrecentonegoestothetopoftheprioritysubqueue.anditspeerssharethehighestpriority,thenthisvcamwillbecomeLive.(InheritedfromCinemachineVirtualCameraBase
OnDestroy Baseclassimplementationremovesthevirtualcamerafromthepriorityqueue.(InheritedfromCinemachineVirtualCameraBase
OnDisable Baseclassimplementationmakessurethepriorityqueueremainsup-to-date.(InheritedfromCinemachineVirtualCameraBase
OnEnable Makessuretheinternalchildcacheisuptodate(OverridesCinemachineVirtualCameraBase
OnTransformChildrenChanged Makessuretheinternalchildcacheisuptodate
OnTransformParentChanged Baseclassimplementationmakessurethepriorityqueueremainsup-to-date.
(InheritedfromCinemachineVirtualCameraBase
OnTransitionFromCamera Notificationthatthisvirtualcameraisgoinglive.(OverridesCinemachineVirtualCameraBase
OnValidate Enforceboundsforfields,whenchangedininspector.basemethodiscalled,ValidatingStreamVersionwillbevalid.(InheritedfromCinemachineVirtualCameraBase
PreUpdateChildCameras Thisiscalledpriortotheupdatingofthevcam'schildcameras,areupdatingonFixedUpdate,thenthiswillnotnecessarilybecalledLateUpdateinstead.Baseclassimplementationdoesnothing.(InheritedfromCinemachineVirtualCameraBase
RemovePostPipelineStageHook RemoveaPipelinestagehookcallback.(OverridesCinemachineVirtualCameraBase
ResetRandomization IfRandomizeChoiceisenabled,callthistore-randomizethechildrennextframe.
ResolveFollow Returnsthisvcam'sFollowtarget,orifthatisnull,willretrun(InheritedfromCinemachineVirtualCameraBase
ResolveLookAt Returnsthisvcam'sLookAttarget,orifthatisnull,willretrun(InheritedfromCinemachineVirtualCameraBase
Start Baseclassimplementationdoesnothing.(InheritedfromCinemachineVirtualCameraBase
Update Baseclassimplementationmakessurethepriorityqueueremainsup-to-date.(InheritedfromCinemachineVirtualCameraBase
UpdateCameraState CalledbyCinemachineCoreatdesignatedupdatetimeupdatesallthechildren,choosesthebestone,andimplementsanyrequiredblending.(OverridesCinemachineVirtualCameraBase
Top
SeeAlso
ReferenceCinemachineClearShotClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineClearShotIsLiveChildMethod
Checkwhetherthevcamalivechildofthiscamera.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
vcamType:CinemachineICinemachineCameraTheVirtualCameratocheck
ReturnValueType:BooleanTrueifthevcamiscurrentlyactivelyinfluencingthestateofthisvcamImplementsICinemachineCameraIsLiveChild(ICinemachineCamera)
SeeAlsoReferenceCinemachineClearShotClassCinemachineNamespace
publicoverrideboolIsLiveChild(
ICinemachineCameravcam
)
CopyC# JavaScript
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineClearShotOnEnableMethod
Makessuretheinternalchildcacheisuptodate
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineClearShotClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
protectedoverridevoidOnEnable()
CopyC# JavaScript
Cinemachine
CinemachineClearShotOnTransformChildrenChangedMethod
Makessuretheinternalchildcacheisuptodate
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineClearShotClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicvoidOnTransformChildrenChanged()
CopyC# JavaScript
Cinemachine
CinemachineClearShotOnTransitionFromCameraMethod
Notificationthatthisvirtualcameraisgoinglive.Thisimplementationresetsthechildrandomization.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
fromCamType:CinemachineICinemachineCameraThecamerabeingdeactivated.Maybenull.
ImplementsICinemachineCameraOnTransitionFromCamera(ICinemachineCamera)
SeeAlsoReferenceCinemachineClearShotClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverridevoidOnTransitionFromCamera(
ICinemachineCamerafromCam
)
CopyC# JavaScript
Cinemachine
CinemachineClearShotRemovePostPipelineStageHookMethod
RemoveaPipelinestagehookcallback.Makesureitisremovedfromallthechildren.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
dType:CinemachineCinemachineVirtualCameraBaseOnPostPipelineStageDelegateThedelegatetoremove.
SeeAlsoReferenceCinemachineClearShotClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverridevoidRemovePostPipelineStageHook(
CinemachineVirtualCameraBaseOnPostPipelineStageDelegate
)
CopyC# JavaScript
Cinemachine
CinemachineClearShotResetRandomizationMethod
IfRandomizeChoiceisenabled,callthistore-randomizethechildrennextframe.Thisisusefulifyouwanttofreshenuptheshot.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineClearShotClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicvoidResetRandomization()
CopyC# JavaScript
Cinemachine
CinemachineClearShotUpdateCameraStateMethod
CalledbyCinemachineCoreatdesignatedupdatetimesothevcamcanpositionitselfandtrackitstargets.Thisimplementationupdatesallthechildren,choosesthebestone,andimplementsanyrequiredblending.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
worldUpType:Vector3DefaultworldUp,setbytheCinemachineBrain
deltaTimeType:SystemSingleDeltatimefortime-basedeffects(ignoreiflessthan0)
ImplementsICinemachineCameraUpdateCameraState(Vector3,Single)
SeeAlso
publicoverridevoidUpdateCameraState(
Vector3worldUp,
floatdeltaTime
)
CopyC# JavaScript
ReferenceCinemachineClearShotClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineClearShotFields
TheCinemachineClearShottypeexposesthefollowingmembers.
Fields Name Description
CinemachineGUIDebuggerCallback Thisisdeprecated.Itisheretosupportthesoon-to-be-removedCinemachineDebuggerintheEditor.(InheritedfromCinemachineVirtualCameraBase
m_ActivateAfter Waitthismanysecondsbeforeactivatinganewchildcamera
m_ChildCameras InternalAPIfortheeditor.usethisfiled.
m_CustomBlends Thisistheassetwhichcontainscustomsettingsforspecificblends
m_DefaultBlend Theblendwhichisusedifyoudon'texplicitlydefineablendbetweentwoVirtualCameras
m_ExcludedPropertiesInInspector Inspectorcontrol-UseforhidingsectionsoftheInspectorUI.(InheritedfromCinemachineVirtualCameraBase
m_Follow Defaultobjectforthecamerachildrenwantstomovewith(the
bodytarget),ifnotspecifiedinachildcamera.Maybeempty.
m_LockStageInInspector Inspectorcontrol-UseforenablingsectionsoftheInspectorUI.(InheritedfromCinemachineVirtualCameraBase
m_LookAt Defaultobjectforthecamerachildrentolookat(theaimtarget),ifnotspecifiedinachildcamera.Maybeempty.
m_MinDuration Anactivecameramustbeactiveforatleastthismanyseconds,unlessahigher-prioritycamerawantstoactivate
m_Priority Theprioritywilldeterminewhichcamerabecomesactivebasedonthestateofothercamerasandthiscamera.Highernumbershavegreaterpriority.(InheritedfromCinemachineVirtualCameraBase
m_RandomizeChoice Ifchecked,camerachoicewillberandomizedifmultiplecamerasareequallydesirable.childlistorderwillbeused
m_ShowDebugText Whenenabled,thecurrentcameraandblendwillbeindicatedinthegamewindow,fordebugging
OnPostPipelineStage Adelegatetohookintothestatecalculationpipeline.
Implementaionmustbesuretocallthisaftereachpipelinestage,toallowotherservicestohookintothepipeline.SeeCinemachineCore.Stage.(InheritedfromCinemachineVirtualCameraBase
Top
SeeAlsoReferenceCinemachineClearShotClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineClearShotm_ActivateAfterField
Waitthismanysecondsbeforeactivatinganewchildcamera
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineClearShotClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Waitthismanysecondsbeforeactivatinganewchildcamera")]
publicfloatm_ActivateAfter
CopyC# JavaScript
Cinemachine
CinemachineClearShotm_ChildCamerasField
InternalAPIfortheeditor.Donotusethisfiled.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachineVirtualCameraBase
SeeAlsoReferenceCinemachineClearShotClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[SerializeField]
[HideInInspector]
[NoSaveDuringPlayAttribute]
publicCinemachineVirtualCameraBase[]m_ChildCameras
CopyC# JavaScript
Cinemachine
CinemachineClearShotm_CustomBlendsField
Thisistheassetwhichcontainscustomsettingsforspecificblends
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachineBlenderSettings
SeeAlsoReferenceCinemachineClearShotClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[HideInInspector]
publicCinemachineBlenderSettingsm_CustomBlends
CopyC# JavaScript
Cinemachine
CinemachineClearShotm_DefaultBlendField
Theblendwhichisusedifyoudon'texplicitlydefineablendbetweentwoVirtualCameras
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachineBlendDefinition
SeeAlsoReferenceCinemachineClearShotClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[CinemachineBlendDefinitionPropertyAttribute]
[TooltipAttribute("Theblendwhichisusedifyoudon'texplicitlydefineablendbetweentwoVirtualCameras")]
publicCinemachineBlendDefinitionm_DefaultBlend
CopyC# JavaScript
Cinemachine
CinemachineClearShotm_FollowField
Defaultobjectforthecamerachildrenwantstomovewith(thebodytarget),ifnotspecifiedinachildcamera.Maybeempty.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Transform
SeeAlsoReferenceCinemachineClearShotClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Defaultobjectforthecamerachildrenwantstomovewith(thebodytarget),ifnotspecifiedinachildcamera.Maybeemptyifallchildrenspecifytargetsoftheirown.")]
[NoSaveDuringPlayAttribute]
publicTransformm_Follow
CopyC# JavaScript
Cinemachine
CinemachineClearShotm_LookAtField
Defaultobjectforthecamerachildrentolookat(theaimtarget),ifnotspecifiedinachildcamera.Maybeempty.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Transform
SeeAlsoReferenceCinemachineClearShotClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Defaultobjectforthecamerachildrentolookat(theaimtarget),ifnotspecifiedinachildcamera.Maybeemptyifallchildrenspecifytargetsoftheirown.")]
[NoSaveDuringPlayAttribute]
publicTransformm_LookAt
CopyC# JavaScript
Cinemachine
CinemachineClearShotm_MinDurationField
Anactivecameramustbeactiveforatleastthismanyseconds,unlessahigher-prioritycamerawantstoactivate
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineClearShotClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Anactivecameramustbeactiveforatleastthismanyseconds,unlessahigher-prioritycamerawantstoactivate")]
publicfloatm_MinDuration
CopyC# JavaScript
Cinemachine
CinemachineClearShotm_RandomizeChoiceField
Ifchecked,camerachoicewillberandomizedifmultiplecamerasareequallydesirable.Otherwise,childlistorderwillbeused
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Boolean
SeeAlsoReferenceCinemachineClearShotClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Ifchecked,camerachoicewillberandomizedifmultiplecamerasareequallydesirable.Otherwise,childlistorderandchildcameraprioritywillbeused.")]
publicboolm_RandomizeChoice
CopyC# JavaScript
Cinemachine
CinemachineClearShotm_ShowDebugTextField
Whenenabled,thecurrentcameraandblendwillbeindicatedinthegamewindow,fordebugging
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Boolean
SeeAlsoReferenceCinemachineClearShotClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Whenenabled,thecurrentchildcameraandblendwillbeindicatedinthegamewindow,fordebugging")]
[NoSaveDuringPlayAttribute]
publicboolm_ShowDebugText
CopyC# JavaScript
Cinemachine
CinemachineColliderClass
Anadd-onmoduleforCinemachineVirtualCamerathatpost-processesthefinalpositionofthevirtualcamera.Basedonthesuppliedsettings,theColliderwillattempttopreservethelineofsightwiththeLookAttargetofthevirtualcamerabymovingawayfromobjectsthatwillobstructtheview.Additionally,theCollidercanbeusedtoassesstheshotqualityandreportthisasafieldinthecameraState.
InheritanceHierarchySystemObjectObjectComponentBehaviourMonoBehaviourCinemachineCinemachineExtensionCinemachineCinemachineCollider
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheCinemachineCollidertypeexposesthefollowingmembers.
Properties
[DocumentationSortingAttribute(15f,DocumentationSortingAttribute
[ExecuteInEditMode]
[AddComponentMenu("")]
[SaveDuringPlayAttribute]
publicclassCinemachineCollider:CinemachineExtension
CopyC# JavaScript
Name Description
DebugPaths InspectorAPIfordebuggingcollisionresolutionpath
VirtualCamera GettheassociatedCinemachineVirtualCameraBase(InheritedfromCinemachineExtension.)
Top
Methods Name Description
Awake Connecttovirtualcamerapipeline.implementation(InheritedfromCinemachineExtension
CameraWasDisplaced Seewhetherthevirtualcamerahasbeenmovednbythecollider
GetAllExtraStatesT Ineffeicientmethodtogetallextrastateinforforallvcams.only,notruntime!(InheritedfromCinemachineExtension
GetExtraStateT Becauseextensionscanbeplacedonmanagercamsandwillinthatforallthevcamchildren,vcam-specificstateinformationdefineaclasstoholdyourstateinfo(InheritedfromCinemachineExtension
IsTargetObscured Seewheteranobjectisblockingthecamera'sviewofthetarget
OnDestroy Cleanup(OverridesCinemachineExtension
PostPipelineStageCallback Callcacktotothecollisionresolutionandshotevaluation(OverridesCinemachineExtensionPostPipelineStageCallback(CinemachineVirtualCameraBase,
CinemachineCoreStage,CameraState
Top
Fields Name Description
m_AvoidObstacles Whenenabled,willattempttoresolvesituationswherethelineofsighttothetargetisblockedbyanobstacle
m_CameraRadius Camerawilltrytomaintainthisdistancefromanyobstacle.IncreasethisvalueifyouareseeinginsideobstaclesduetoalargeFOVonthecamera.
m_CollideAgainst TheUnitylayermaskagainstwhichthecolliderwillraycast.
m_Damping Thegradualnessofcollisionresolution.
Highernumberswillmovethecameramoregraduallyawayfromobstructions.
m_DistanceLimit Theraycastdistancetotestforwhencheckingifthelineofsighttothiscamera'stargetisclear.
m_MaximumEffort Upperlimitonhowmanyobstaclehitstoprocess.Highernumbersmayimpactperformance.Inmostenvironments,4isenough.
m_MinimumDistanceFromTarget Obstaclesclosertothetargetthanthiswillnotbeseen
m_OptimalTargetDistance Ifgreaterthanzero,ahigherscorewillbegiventoshotswhenthetargetisclosertothisdistance.Set
thistozerotodisablethisfeature
m_Strategy ThewayinwhichtheColliderwillattempttopreservesightofthetarget.
Top
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineColliderProperties
TheCinemachineCollidertypeexposesthefollowingmembers.
Properties Name Description
DebugPaths InspectorAPIfordebuggingcollisionresolutionpath
VirtualCamera GettheassociatedCinemachineVirtualCameraBase(InheritedfromCinemachineExtension.)
Top
SeeAlsoReferenceCinemachineColliderClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineColliderDebugPathsProperty
InspectorAPIfordebuggingcollisionresolutionpath
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:ListListVector3
SeeAlsoReferenceCinemachineColliderClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicList<List<Vector3>>DebugPaths{get;}
CopyC# JavaScript
Cinemachine
CinemachineColliderMethods
TheCinemachineCollidertypeexposesthefollowingmembers.
Methods Name Description
Awake Connecttovirtualcamerapipeline.implementation(InheritedfromCinemachineExtension
CameraWasDisplaced Seewhetherthevirtualcamerahasbeenmovednbythecollider
GetAllExtraStatesT Ineffeicientmethodtogetallextrastateinforforallvcams.only,notruntime!(InheritedfromCinemachineExtension
GetExtraStateT Becauseextensionscanbeplacedonmanagercamsandwillinthatforallthevcamchildren,vcam-specificstateinformationdefineaclasstoholdyourstateinfo(InheritedfromCinemachineExtension
IsTargetObscured Seewheteranobjectisblockingthecamera'sviewofthetarget
OnDestroy Cleanup(OverridesCinemachineExtension
PostPipelineStageCallback Callcacktotothecollisionresolutionandshotevaluation(OverridesCinemachineExtensionPostPipelineStageCallback(CinemachineVirtualCameraBase,CinemachineCoreStage,CameraState
Top
SeeAlsoReferenceCinemachineColliderClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineColliderCameraWasDisplacedMethod
Seewhetherthevirtualcamerahasbeenmovednbythecollider
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
vcamType:CinemachineCinemachineVirtualCameraBaseThevirtualcamerainquestion.Thismightbedifferentfromthevirtualcamerathatownsthecollider,intheeventthatthecamerahaschildren
ReturnValueType:BooleanTrueifthevirtualcamerahasbeendisplacedduetocollisionortargetobstruction
SeeAlsoReferenceCinemachineColliderClassCinemachineNamespace
publicboolCameraWasDisplaced(
CinemachineVirtualCameraBasevcam
)
CopyC# JavaScript
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineColliderIsTargetObscuredMethod
Seewheteranobjectisblockingthecamera'sviewofthetarget
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
vcamType:CinemachineICinemachineCameraThevirtualcamerainquestion.Thismightbedifferentfromthevirtualcamerathatownsthecollider,intheeventthatthecamerahaschildren
ReturnValueType:BooleanTrueifsomethingisblockingtheview
SeeAlsoReferenceCinemachineColliderClassCinemachineNamespace
publicboolIsTargetObscured(
ICinemachineCameravcam
)
CopyC# JavaScript
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineColliderOnDestroyMethod
Cleanup
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineColliderClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
protectedoverridevoidOnDestroy()
CopyC# JavaScript
Cinemachine
CinemachineColliderPostPipelineStageCallbackMethod
Callcacktotothecollisionresolutionandshotevaluation
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
vcamType:CinemachineCinemachineVirtualCameraBase[Missing<paramname="vcam"/>documentationfor"M:Cinemachine.CinemachineCollider.PostPipelineStageCallback(Cinemachine.CinemachineVirtualCameraBase,Cinemachine.CinemachineCore.Stage,Cinemachine.CameraState@,System.Single)"]
stageType:CinemachineCinemachineCoreStage[Missing<paramname="stage"/>documentationfor"M:Cinemachine.CinemachineCollider.PostPipelineStageCallback(Cinemachine.CinemachineVirtualCameraBase,Cinemachine.CinemachineCore.Stage,Cinemachine.CameraState@,System.Single)"]
stateType:CinemachineCameraState[Missing<paramname="state"/>documentationfor"M:Cinemachine.CinemachineCollider.PostPipelineStageCallback(Cinemachine.CinemachineVirtualCameraBase,Cinemachine.CinemachineCore.Stage,Cinemachine.CameraState@,System.Single)"]
protectedoverridevoidPostPipelineStageCallback(
CinemachineVirtualCameraBasevcam,
CinemachineCoreStagestage,
refCameraStatestate,
floatdeltaTime
)
CopyC# JavaScript
deltaTimeType:SystemSingle[Missing<paramname="deltaTime"/>documentationfor"M:Cinemachine.CinemachineCollider.PostPipelineStageCallback(Cinemachine.CinemachineVirtualCameraBase,Cinemachine.CinemachineCore.Stage,Cinemachine.CameraState@,System.Single)"]
SeeAlsoReferenceCinemachineColliderClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineColliderFields
TheCinemachineCollidertypeexposesthefollowingmembers.
Fields Name Description
m_AvoidObstacles Whenenabled,willattempttoresolvesituationswherethelineofsighttothetargetisblockedbyanobstacle
m_CameraRadius Camerawilltrytomaintainthisdistancefromanyobstacle.IncreasethisvalueifyouareseeinginsideobstaclesduetoalargeFOVonthecamera.
m_CollideAgainst TheUnitylayermaskagainstwhichthecolliderwillraycast.
m_Damping The
gradualnessofcollisionresolution.Highernumberswillmovethecameramoregraduallyawayfromobstructions.
m_DistanceLimit Theraycastdistancetotestforwhencheckingifthelineofsighttothiscamera'stargetisclear.
m_MaximumEffort Upperlimitonhowmanyobstaclehitstoprocess.Highernumbersmayimpactperformance.Inmostenvironments,4isenough.
m_MinimumDistanceFromTarget Obstaclesclosertothetargetthanthiswillnotbeseen
m_OptimalTargetDistance Ifgreaterthanzero,ahigherscorewillbegiventoshots
whenthetargetisclosertothisdistance.Setthistozerotodisablethisfeature
m_Strategy ThewayinwhichtheColliderwillattempttopreservesightofthetarget.
Top
SeeAlsoReferenceCinemachineColliderClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineColliderm_AvoidObstaclesField
Whenenabled,willattempttoresolvesituationswherethelineofsighttothetargetisblockedbyanobstacle
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Boolean
SeeAlsoReferenceCinemachineColliderClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[SpaceAttribute]
[TooltipAttribute("Whenenabled,willattempttoresolvesituationswherethelineofsighttothetargetisblockedbyanobstacle")]
[FormerlySerializedAsAttribute("m_PreserveLineOfSight")]
publicboolm_AvoidObstacles
CopyC# JavaScript
Cinemachine
CinemachineColliderm_CameraRadiusField
Camerawilltrytomaintainthisdistancefromanyobstacle.IncreasethisvalueifyouareseeinginsideobstaclesduetoalargeFOVonthecamera.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineColliderClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Camerawilltrytomaintainthisdistancefromanyobstacle.Trytokeepthisvaluesmall.IncreaseitifyouareseeinginsideobstaclesduetoalargeFOVonthecamera.")]
publicfloatm_CameraRadius
CopyC# JavaScript
Cinemachine
CinemachineColliderm_CollideAgainstField
TheUnitylayermaskagainstwhichthecolliderwillraycast.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:LayerMask
SeeAlsoReferenceCinemachineColliderClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[HeaderAttribute("ObstacleDetection")]
[TooltipAttribute("TheUnitylayermaskagainstwhichthecolliderwillraycast")]
publicLayerMaskm_CollideAgainst
CopyC# JavaScript
Cinemachine
CinemachineColliderm_DampingField
Thegradualnessofcollisionresolution.Highernumberswillmovethecameramoregraduallyawayfromobstructions.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineColliderClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[RangeAttribute(0f,10f)]
[TooltipAttribute("Thegradualnessofcollisionresolution.Highernumberswillmovethecameramoregraduallyawayfromobstructions.")]
[FormerlySerializedAsAttribute("m_Smoothing")]
publicfloatm_Damping
CopyC# JavaScript
Cinemachine
CinemachineColliderm_DistanceLimitField
Theraycastdistancetotestforwhencheckingifthelineofsighttothiscamera'stargetisclear.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineColliderClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Themaximumraycastdistancewhencheckingifthelineofsighttothiscamera'stargetisclear.Ifthesettingis0orless,thecurrentactualdistancetotargetwillbeused.")]
[FormerlySerializedAsAttribute("m_LineOfSightFeelerDistance")]
publicfloatm_DistanceLimit
CopyC# JavaScript
Cinemachine
CinemachineColliderm_MaximumEffortField
Upperlimitonhowmanyobstaclehitstoprocess.Highernumbersmayimpactperformance.Inmostenvironments,4isenough.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Int32
SeeAlsoReferenceCinemachineColliderClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[RangeAttribute(1f,10f)]
[TooltipAttribute("Upperlimitonhowmanyobstaclehitstoprocess.Highernumbersmayimpactperformance.Inmostenvironments,4isenough.")]
publicintm_MaximumEffort
CopyC# JavaScript
Cinemachine
CinemachineColliderm_MinimumDistanceFromTargetField
Obstaclesclosertothetargetthanthiswillnotbeseen
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineColliderClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Obstaclesclosertothetargetthanthiswillnotbeseen")]
publicfloatm_MinimumDistanceFromTarget
CopyC# JavaScript
Cinemachine
CinemachineColliderm_OptimalTargetDistanceField
Ifgreaterthanzero,ahigherscorewillbegiventoshotswhenthetargetisclosertothisdistance.Setthistozerotodisablethisfeature
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineColliderClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[HeaderAttribute("ShotEvaluation")]
[TooltipAttribute("Ifgreaterthanzero,ahigherscorewillbegiventoshotswhenthetargetisclosertothisdistance.Setthistozerotodisablethisfeature.")]
publicfloatm_OptimalTargetDistance
CopyC# JavaScript
Cinemachine
CinemachineColliderm_StrategyField
ThewayinwhichtheColliderwillattempttopreservesightofthetarget.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachineColliderResolutionStrategy
SeeAlsoReferenceCinemachineColliderClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("ThewayinwhichtheColliderwillattempttopreservesightofthetarget.")]
publicCinemachineColliderResolutionStrategym_Strategy
CopyC# JavaScript
Cinemachine
CinemachineColliderResolutionStrategyEnumeration
ThewayinwhichtheColliderwillattempttopreservesightofthetarget.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Members Membername Value Description
PullCameraForward 0 CamerawillbepulledforwardalongitsZaxisuntilitisinfrontofthenearestobstacle
PreserveCameraHeight 1 Inadditiontopullingthecameraforward,aneffortwillbemadeto
publicenumResolutionStrategy
CopyC# JavaScript
returnthecameratoitsoriginalheight
PreserveCameraDistance 2 Inadditiontopullingthecameraforward,aneffortwillbemadetoreturnthecameratoitsoriginaldistancefromthetarget
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineComponentBaseClass
AnabstractrepresentationofamutatoractingonaCinemachineVirtualCamera
InheritanceHierarchySystemObjectObjectComponentBehaviourMonoBehaviourCinemachineCinemachineComponentBaseMore...
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheCinemachineComponentBasetypeexposesthefollowingmembers.
Constructors Name Description
CinemachineComponentBase
[DocumentationSortingAttribute(24f,DocumentationSortingAttribute
publicabstractclassCinemachineComponentBase:MonoBehaviour
CopyC# JavaScript
Top
Properties Name Description
FollowTarget Returnstheownervcam'sFollowtarget.
IsValid Returnstrueifthisobjectisenabledandsetuptoproduceresults.
LookAtTarget Returnstheownervcam'sLookAttarget.
Stage Whatpartofthepipelinethisfitsinto
VcamState Returnstheownervcam'sCameraState.
VirtualCamera GettheassociatedCinemachineVirtualCameraBase
Top
Methods Name Description
MutateCameraState Mutatesthecamerastate.Thisstatewilllaterbeappliedtothecamera.
OnPositionDragged APIfortheeditor,toprocessapositiondragfromtheuser.Baseclassimplementationdoes
nothing.
Top
Fields Name Description
Epsilon Usefulconstantforverysmallfloats
Top
SeeAlsoReferenceCinemachineNamespace
InheritanceHierarchySystemObjectObjectComponentBehaviourMonoBehaviourCinemachineCinemachineComponentBaseCinemachineCinemachineBasicMultiChannelPerlinCinemachineCinemachineComposerCinemachineCinemachineFramingTransposerCinemachineCinemachineHardLockToTargetCinemachineCinemachineHardLookAtCinemachineCinemachinePOVCinemachineCinemachineTrackedDollyCinemachineCinemachineTransposer
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineComponentBaseConstructor
[Missing<summary>documentationfor"M:Cinemachine.CinemachineComponentBase.#ctor"]
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineComponentBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
protectedCinemachineComponentBase()
CopyC# JavaScript
Cinemachine
CinemachineComponentBaseProperties
TheCinemachineComponentBasetypeexposesthefollowingmembers.
Properties Name Description
FollowTarget Returnstheownervcam'sFollowtarget.
IsValid Returnstrueifthisobjectisenabledandsetuptoproduceresults.
LookAtTarget Returnstheownervcam'sLookAttarget.
Stage Whatpartofthepipelinethisfitsinto
VcamState Returnstheownervcam'sCameraState.
VirtualCamera GettheassociatedCinemachineVirtualCameraBase
Top
SeeAlsoReferenceCinemachineComponentBaseClass
CinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineComponentBaseFollowTargetProperty
Returnstheownervcam'sFollowtarget.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Transform
SeeAlsoReferenceCinemachineComponentBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicTransformFollowTarget{get;}
CopyC# JavaScript
Cinemachine
CinemachineComponentBaseIsValidProperty
Returnstrueifthisobjectisenabledandsetuptoproduceresults.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Boolean
SeeAlsoReferenceCinemachineComponentBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicabstractboolIsValid{get;}
CopyC# JavaScript
Cinemachine
CinemachineComponentBaseLookAtTargetProperty
Returnstheownervcam'sLookAttarget.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Transform
SeeAlsoReferenceCinemachineComponentBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicTransformLookAtTarget{get;}
CopyC# JavaScript
Cinemachine
CinemachineComponentBaseStageProperty
Whatpartofthepipelinethisfitsinto
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:CinemachineCoreStage
SeeAlsoReferenceCinemachineComponentBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicabstractCinemachineCoreStageStage{get;}
CopyC# JavaScript
Cinemachine
CinemachineComponentBaseVcamStateProperty
Returnstheownervcam'sCameraState.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:CameraState
SeeAlsoReferenceCinemachineComponentBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicCameraStateVcamState{get;}
CopyC# JavaScript
Cinemachine
CinemachineComponentBaseVirtualCameraProperty
GettheassociatedCinemachineVirtualCameraBase
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:CinemachineVirtualCameraBase
SeeAlsoReferenceCinemachineComponentBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicCinemachineVirtualCameraBaseVirtualCamera{
CopyC# JavaScript
Cinemachine
CinemachineComponentBaseMethods
TheCinemachineComponentBasetypeexposesthefollowingmembers.
Methods Name Description
MutateCameraState Mutatesthecamerastate.Thisstatewilllaterbeappliedtothecamera.
OnPositionDragged APIfortheeditor,toprocessapositiondragfromtheuser.Baseclassimplementationdoesnothing.
Top
SeeAlsoReferenceCinemachineComponentBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineComponentBaseMutateCameraStateMethod
Mutatesthecamerastate.Thisstatewilllaterbeappliedtothecamera.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
curStateType:CinemachineCameraStateInputstatethatmustbemutated
deltaTimeType:SystemSingleDeltatimefortime-basedeffects(ignoreiflessthan0)
SeeAlsoReferenceCinemachineComponentBaseClassCinemachineNamespace
VisittheCinemachineForum
publicabstractvoidMutateCameraState(
refCameraStatecurState,
floatdeltaTime
)
CopyC# JavaScript
https://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineComponentBaseOnPositionDraggedMethod
APIfortheeditor,toprocessapositiondragfromtheuser.Baseclassimplementationdoesnothing.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
deltaType:Vector3Theamountdraggedthisframe
SeeAlsoReferenceCinemachineComponentBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicvirtualvoidOnPositionDragged(
Vector3delta
)
CopyC# JavaScript
Cinemachine
CinemachineComponentBaseFields
TheCinemachineComponentBasetypeexposesthefollowingmembers.
Fields Name Description
Epsilon Usefulconstantforverysmallfloats
Top
SeeAlsoReferenceCinemachineComponentBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineComponentBaseEpsilonField
Usefulconstantforverysmallfloats
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineComponentBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
protectedconstfloatEpsilon=0.0001f
CopyC# JavaScript
Cinemachine
CinemachineComposerClass
ThisisaCinemachineComponentintheAimsectionofthecomponentpipeline.Itsjobistoaimthecameraatthevcam'sLookAttargetobject,withconfigurableoffsets,damping,andcompositionrules.Thecomposerdoesnotchangethecamera'sposition.Itwillonlypanandtiltthecamerawhereitis,inordertogetthedesiredframing.Tomovethecamera,youhavetousethevirtualcamera'sBodysection.
InheritanceHierarchySystemObjectObjectComponentBehaviourMonoBehaviourCinemachineCinemachineComponentBaseCinemachineCinemachineComposerCinemachineCinemachineGroupComposer
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheCinemachineComposertypeexposesthefollowingmembers.
[DocumentationSortingAttribute(3f,DocumentationSortingAttribute
[ExecuteInEditMode]
[AddComponentMenu("")]
[RequireComponent(typeof(CinemachinePipeline))]
[SaveDuringPlayAttribute]
publicclassCinemachineComposer:CinemachineComponentBase
CopyC# JavaScript
Properties Name Description
FollowTarget Returnstheownervcam'sFollowtarget.(InheritedfromCinemachineComponentBase.)
HardGuideRect InternalAPIfortheinspectoreditor
IsValid TrueifcomponentisenabledandhasaLookAtdefined(OverridesCinemachineComponentBaseIsValid.)
LookAtTarget Returnstheownervcam'sLookAttarget.(InheritedfromCinemachineComponentBase.)
SoftGuideRect InternalAPIfortheinspectoreditor
Stage GettheCinemachinePipelinestagethatthiscomponentimplements.AlwaysreturnstheAimstage(OverridesCinemachineComponentBaseStage.)
VcamState Returnstheownervcam'sCameraState.(InheritedfromCinemachineComponentBase.)
VirtualCamera GettheassociatedCinemachineVirtualCameraBase(InheritedfromCinemachineComponentBase.)
Top
Methods Name Description
GetTrackedPoint Applythetargetoffsetstothetargetlocation.
MutateCameraState Appliesthecomposerrulesandorientsthecameraaccordingly(OverridesCinemachineComponentBaseMutateCameraState(CameraStateSingle).)
OnPositionDragged APIfortheeditor,toprocessapositiondragfromtheuser.classimplementationdoesnothing.(InheritedfromCinemachineComponentBase
Top
Fields Name Description
m_BiasX Anon-zerobiaswillmovethetargtpositionawayfromthecenterofthesoftzone
m_BiasY Anon-zerobiaswillmovethetargtpositionawayfromthecenterofthesoftzone
m_DeadZoneHeight Camerawillnotrotateverticallyifthetargetiswithinthisrangeoftheposition
m_DeadZoneWidth Camerawillnotrotate
horizontallyifthetargetiswithinthisrangeoftheposition
m_HorizontalDamping Howaggressivelythecameratriestofollowthetargetinthescreen-horizontaldirection.Smallnumbersaremoreresponsive,rapidlyorientingthecameratokeepthetargetinthedeadzone.Largernumbersgiveamoreheavyslowlyrespondingcamera.Usingdifferentverticalandhorizontalsettingscanyieldawiderangeofcamerabehaviors.
m_LookaheadSmoothing Controlsthesmoothnessofthelookaheadalgorithm.Largervaluessmoothoutjitterypredictionsandalsoincreasepredictionlag
m_LookaheadTime Thissettingwillinstructthecomposertoadjustitstargetoffsetbasedonthemotionofthetarget.Thecomposerwilllookatapointwhereitestimatesthetargetwillbethismanysecondsintothe
future.Notethatthissettingissensitivetonoisyanimation,andcanamplifythenoise,resultinginundesirablecamerajitter.Ifthecamerajittersunacceptablywhenthetargetisinmotion,turndownthissetting,oranimatethetargetmoresmoothly.
m_ScreenX Horizontalscreenpositionfortarget.Thecamerawillrotatetothepositionthetrackedobjecthere
m_ScreenY Verticalscreenpositionfortarget,Thecamerawillrotatetotopositionthetrackedobjecthere
m_SoftZoneHeight Whentargetiswithinthisregion,camerawillgraduallymovetore-aligntowardsthedesiredposition,dependingonmthedampingspeed
m_SoftZoneWidth Whentargetiswithinthisregion,camerawillgraduallymovetore-aligntowardsthedesiredposition,dependingonmthedampingspeed
m_TrackedObjectOffset Targetoffsetfromtheobject'scenterinLOCALspacewhichtheComposertracks.Usethistofine-tunethetrackingtargetpositionwhenthedesiredareaisnotinthetrackedobject'scenter
m_VerticalDamping Howaggressivelythecameratriestofollowthetargetinthescreen-verticaldirection.Smallnumbersaremoreresponsive,rapidlyorientingthecameratokeepthetargetinthedeadzone.Largernumbersgiveamoreheavyslowlyrespondingcamera.Usingdifferentverticalandhorizontalsettingscanyieldawiderangeofcamerabehaviors.
OnGUICallback UsedbytheInspectorEditortodisplayon-screenguides.
Top
SeeAlsoReference
CinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineComposerProperties
TheCinemachineComposertypeexposesthefollowingmembers.
Properties Name Description
FollowTarget Returnstheownervcam'sFollowtarget.(InheritedfromCinemachineComponentBase.)
HardGuideRect InternalAPIfortheinspectoreditor
IsValid TrueifcomponentisenabledandhasaLookAtdefined(OverridesCinemachineComponentBaseIsValid.)
LookAtTarget Returnstheownervcam'sLookAttarget.(InheritedfromCinemachineComponentBase.)
SoftGuideRect InternalAPIfortheinspectoreditor
Stage GettheCinemachinePipelinestagethatthiscomponentimplements.AlwaysreturnstheAimstage(OverridesCinemachineComponentBaseStage.)
VcamState Returnstheownervcam's
CameraState.(InheritedfromCinemachineComponentBase.)
VirtualCamera GettheassociatedCinemachineVirtualCameraBase(InheritedfromCinemachineComponentBase.)
Top
SeeAlsoReferenceCinemachineComposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineComposerHardGuideRectProperty
InternalAPIfortheinspectoreditor
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Rect
SeeAlsoReferenceCinemachineComposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicRectHardGuideRect{get;set;}
CopyC# JavaScript
Cinemachine
CinemachineComposerIsValidProperty
TrueifcomponentisenabledandhasaLookAtdefined
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Boolean
SeeAlsoReferenceCinemachineComposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverrideboolIsValid{get;}
CopyC# JavaScript
Cinemachine
CinemachineComposerSoftGuideRectProperty
InternalAPIfortheinspectoreditor
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Rect
SeeAlsoReferenceCinemachineComposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicRectSoftGuideRect{get;set;}
CopyC# JavaScript
Cinemachine
CinemachineComposerStageProperty
GettheCinemachinePipelinestagethatthiscomponentimplements.AlwaysreturnstheAimstage
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:CinemachineCoreStage
SeeAlsoReferenceCinemachineComposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverrideCinemachineCoreStageStage{get;}
CopyC# JavaScript
Cinemachine
CinemachineComposerMethods
TheCinemachineComposertypeexposesthefollowingmembers.
Methods Name Description
GetTrackedPoint Applythetargetoffsetstothetargetlocation.
MutateCameraState Appliesthecomposerrulesandorientsthecameraaccordingly(OverridesCinemachineComponentBaseMutateCameraState(CameraStateSingle).)
OnPositionDragged APIfortheeditor,toprocessapositiondragfromtheuser.classimplementationdoesnothing.(InheritedfromCinemachineComponentBase
Top
SeeAlsoReferenceCinemachineComposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineComposerGetTrackedPointMethod
Applythetargetoffsetstothetargetlocation.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
lookAtType:Vector3TheunoffsetLookAtpoint
ReturnValueType:Vector3TheLookAtpointwiththeoffsetapplied
SeeAlsoReferenceCinemachineComposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
protectedvirtualVector3GetTrackedPoint(
Vector3lookAt
)
CopyC# JavaScript
Cinemachine
CinemachineComposerMutateCameraStateMethod
Appliesthecomposerrulesandorientsthecameraaccordingly
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
curStateType:CinemachineCameraStateThecurrentcamerastate
deltaTimeType:SystemSingleUsedforcalculatingdamping.Iflessthanzero,thentargetwillsnaptothecenterofthedeadzone.
SeeAlsoReferenceCinemachineComposerClassCinemachineNamespace
VisittheCinemachineForum
publicoverridevoidMutateCameraState(
refCameraStatecurState,
floatdeltaTime
)
CopyC# JavaScript
https://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineComposerFields
TheCinemachineComposertypeexposesthefollowingmembers.
Fields Name Description
m_BiasX Anon-zerobiaswillmovethetargtpositionawayfromthecenterofthesoftzone
m_BiasY Anon-zerobiaswillmovethetargtpositionawayfromthecenterofthesoftzone
m_DeadZoneHeight Camerawillnotrotateverticallyifthetargetiswithinthisrangeoftheposition
m_DeadZoneWidth Camerawillnotrotatehorizontallyifthetargetiswithinthisrangeoftheposition
m_HorizontalDamping Howaggressivelythecameratriestofollowthetargetinthescreen-horizontaldirection.Smallnumbersaremoreresponsive,rapidlyorientingthecamerato
keepthetargetinthedeadzone.Largernumbersgiveamoreheavyslowlyrespondingcamera.Usingdifferentverticalandhorizontalsettingscanyieldawiderangeofcamerabehaviors.
m_LookaheadSmoothing Controlsthesmoothnessofthelookaheadalgorithm.Largervaluessmoothoutjitterypredictionsandalsoincreasepredictionlag
m_LookaheadTime Thissettingwillinstructthecomposertoadjustitstargetoffsetbasedonthemotionofthetarget.Thecomposerwilllookatapointwhereitestimatesthetargetwillbethismanysecondsintothefuture.Notethatthissettingissensitivetonoisyanimation,andcanamplifythenoise,resultinginundesirablecamerajitter.Ifthecamerajittersunacceptablywhenthetargetisinmotion,turndownthissetting,oranimatethetargetmoresmoothly.
m_ScreenX Horizontalscreenpositionfortarget.Thecamerawillrotatetothepositionthetrackedobjecthere
m_ScreenY Verticalscreenpositionfortarget,Thecamerawillrotatetotopositionthetrackedobjecthere
m_SoftZoneHeight Whentargetiswithinthisregion,camerawillgraduallymovetore-aligntowardsthedesiredposition,dependingonmthedampingspeed
m_SoftZoneWidth Whentargetiswithinthisregion,camerawillgraduallymovetore-aligntowardsthedesiredposition,dependingonmthedampingspeed
m_TrackedObjectOffset Targetoffsetfromtheobject'scenterinLOCALspacewhichtheComposertracks.Usethistofine-tunethetrackingtargetpositionwhenthedesiredareaisnotinthetrackedobject'scenter
m_VerticalDamping Howaggressivelythecameratriestofollowthetargetinthescreen-verticaldirection.Smallnumbersaremoreresponsive,rapidlyorientingthecameratokeepthetargetinthedeadzone.Largernumbersgiveamoreheavyslowlyrespondingcamera.Usingdifferentverticalandhorizontalsettingscanyieldawiderangeofcamerabehaviors.
OnGUICallback UsedbytheInspectorEditortodisplayon-screenguides.
Top
SeeAlsoReferenceCinemachineComposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineComposerm_BiasXField
Anon-zerobiaswillmovethetargtpositionawayfromthecenterofthesoftzone
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineComposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[RangeAttribute(-0.5f,0.5f)]
[TooltipAttribute("Anon-zerobiaswillmovethetargetpositionhorizontallyawayfromthecenterofthesoftzone.")]
publicfloatm_BiasX
CopyC# JavaScript
Cinemachine
CinemachineComposerm_BiasYField
Anon-zerobiaswillmovethetargtpositionawayfromthecenterofthesoftzone
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineComposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[RangeAttribute(-0.5f,0.5f)]
[TooltipAttribute("Anon-zerobiaswillmovethetargetpositionverticallyawayfromthecenterofthesoftzone.")]
publicfloatm_BiasY
CopyC# JavaScript
Cinemachine
CinemachineComposerm_DeadZoneHeightField
Camerawillnotrotateverticallyifthetargetiswithinthisrangeoftheposition
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineComposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[RangeAttribute(0f,1f)]
[TooltipAttribute("Camerawillnotrotateverticallyifthetargetiswithinthisrangeoftheposition.")]
publicfloatm_DeadZoneHeight
CopyC# JavaScript
Cinemachine
CinemachineComposerm_DeadZoneWidthField
Camerawillnotrotatehorizontallyifthetargetiswithinthisrangeoftheposition
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineComposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[RangeAttribute(0f,1f)]
[TooltipAttribute("Camerawillnotrotatehorizontallyifthetargetiswithinthisrangeoftheposition.")]
publicfloatm_DeadZoneWidth
CopyC# JavaScript
Cinemachine
CinemachineComposerm_HorizontalDampingField
Howaggressivelythecameratriestofollowthetargetinthescreen-horizontaldirection.Smallnumbersaremoreresponsive,rapidlyorientingthecameratokeepthetargetinthedeadzone.Largernumbersgiveamoreheavyslowlyrespondingcamera.Usingdifferentverticalandhorizontalsettingscanyieldawiderangeofcamerabehaviors.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineComposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[SpaceAttribute]
[RangeAttribute(0f,20f)]
[TooltipAttribute("Howaggressivelythecameratriestofollowthetargetinthescreen-horizontaldirection.Smallnumbersaremoreresponsive,rapidlyorientingthecameratokeepthetargetinthedeadzone.Largernumbersgiveamoreheavyslowlyrespondingcamera.Usingdifferentverticalandhorizontalsettingscanyieldawiderangeofcamerabehaviors.")]
publicfloatm_HorizontalDamping
CopyC# JavaScript
Cinemachine
CinemachineComposerm_LookaheadSmoothingField
Controlsthesmoothnessofthelookaheadalgorithm.Largervaluessmoothoutjitterypredictionsandalsoincreasepredictionlag
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineComposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Controlsthesmoothnessofthelookaheadalgorithm.Largervaluessmoothoutjitterypredictionsandalsoincreasepredictionlag")]
[RangeAttribute(3f,30f)]
publicfloatm_LookaheadSmoothing
CopyC# JavaScript
Cinemachine
CinemachineComposerm_LookaheadTimeField
Thissettingwillinstructthecomposertoadjustitstargetoffsetbasedonthemotionofthetarget.Thecomposerwilllookatapointwhereitestimatesthetargetwillbethismanysecondsintothefuture.Notethatthissettingissensitivetonoisyanimation,andcanamplifythenoise,resultinginundesirablecamerajitter.Ifthecamerajittersunacceptablywhenthetargetisinmotion,turndownthissetting,oranimatethetargetmoresmoothly.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineComposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Thissettingwillinstructthecomposertoadjustitstargetoffsetbasedonthemotionofthetarget.Thecomposerwilllookatapointwhereitestimatesthetargetwillbethismanysecondsintothefuture.Notethatthissettingissensitivetonoisyanimation,andcanamplifythenoise,resultinginundesirablecamerajitter.Ifthecamerajittersunacceptablywhenthetargetisinmotion,turndownthissetting,oranimatethetargetmoresmoothly.")]
[RangeAttribute(0f,1f)]
publicfloatm_LookaheadTime
CopyC# JavaScript
Cinemachine
CinemachineComposerm_ScreenXField
Horizontalscreenpositionfortarget.Thecamerawillrotatetothepositionthetrackedobjecthere
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineComposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[SpaceAttribute]
[RangeAttribute(0f,1f)]
[TooltipAttribute("Horizontalscreenpositionfortarget.Thecamerawillrotatetopositionthetrackedobjecthere.")]
publicfloatm_ScreenX
CopyC# JavaScript
Cinemachine
CinemachineComposerm_ScreenYField
Verticalscreenpositionfortarget,Thecamerawillrotatetotopositionthetrackedobjecthere
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineComposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[RangeAttribute(0f,1f)]
[TooltipAttribute("Verticalscreenpositionfortarget,Thecamerawillrotatetopositionthetrackedobjecthere.")]
publicfloatm_ScreenY
CopyC# JavaScript
Cinemachine
CinemachineComposerm_SoftZoneHeightField
Whentargetiswithinthisregion,camerawillgraduallymovetore-aligntowardsthedesiredposition,dependingonmthedampingspeed
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineComposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[RangeAttribute(0f,2f)]
[TooltipAttribute("Whentargetiswithinthisregion,camerawillgraduallyrotateverticallytore-aligntowardsthedesiredposition,dependingonthedampingspeed.")]
publicfloatm_SoftZoneHeight
CopyC# JavaScript
Cinemachine
CinemachineComposerm_SoftZoneWidthField
Whentargetiswithinthisregion,camerawillgraduallymovetore-aligntowardsthedesiredposition,dependingonmthedampingspeed
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineComposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[RangeAttribute(0f,2f)]
[TooltipAttribute("Whentargetiswithinthisregion,camerawillgraduallyrotatehorizontallytore-aligntowardsthedesiredposition,dependingonthedampingspeed.")]
publicfloatm_SoftZoneWidth
CopyC# JavaScript
Cinemachine
CinemachineComposerm_TrackedObjectOffsetField
Targetoffsetfromtheobject'scenterinLOCALspacewhichtheComposertracks.Usethistofine-tunethetrackingtargetpositionwhenthedesiredareaisnotinthetrackedobject'scenter
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Vector3
SeeAlsoReferenceCinemachineComposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Targetoffsetfromthetargetobject'scenterintarget-localspace.Usethistofine-tunethetrackingtargetpositionwhenthedesiredareaisnotthetrackedobject'scenter.")]
publicVector3m_TrackedObjectOffset
CopyC# JavaScript
Cinemachine
CinemachineComposerm_VerticalDampingField
Howaggressivelythecameratriestofollowthetargetinthescreen-verticaldirection.Smallnumbersaremoreresponsive,rapidlyorientingthecameratokeepthetargetinthedeadzone.Largernumbersgiveamoreheavyslowlyrespondingcamera.Usingdifferentverticalandhorizontalsettingscanyieldawiderangeofcamerabehaviors.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineComposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[RangeAttribute(0f,20f)]
[TooltipAttribute("Howaggressivelythecameratriestofollowthetargetinthescreen-verticaldirection.Smallnumbersaremoreresponsive,rapidlyorientingthecameratokeepthetargetinthedeadzone.Largernumbersgiveamoreheavyslowlyrespondingcamera.Usingdifferentverticalandhorizontalsettingscanyieldawiderangeofcamerabehaviors.")]
publicfloatm_VerticalDamping
CopyC# JavaScript
Cinemachine
CinemachineComposerOnGUICallbackField
UsedbytheInspectorEditortodisplayon-screenguides.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Action
SeeAlsoReferenceCinemachineComposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[NoSaveDuringPlayAttribute]
[HideInInspector]
publicActionOnGUICallback
CopyC# JavaScript
Cinemachine
CinemachineConfinerClass
Anadd-onmoduleforCinemachineVirtualCamerathatpost-processesthefinalpositionofthevirtualcamera.Itwillconfinethevirtualcamera'spositiontothevolumespecifiedintheBoundingVolumefield.
InheritanceHierarchySystemObjectObjectComponentBehaviourMonoBehaviourCinemachineCinemachineExtensionCinemachineCinemachineConfiner
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheCinemachineConfinertypeexposesthefollowingmembers.
Constructors Name Description
[DocumentationSortingAttribute(22f,DocumentationSortingAttribute
[ExecuteInEditMode]
[AddComponentMenu("")]
[SaveDuringPlayAttribute]
publicclassCinemachineConfiner:CinemachineExtension
CopyC# JavaScript
CinemachineConfiner
Top
Properties Name Description
IsValid Checkiftheboundingvolumeisdefined
VirtualCamera GettheassociatedCinemachineVirtualCameraBase(InheritedfromCinemachineExtension.)
Top
Methods Name Description
Awake Connecttovirtualcamerapipeline.implementation(InheritedfromCinemachineExtension
CameraWasDisplaced Seewhetherthevirtualcamerahasbeenmovedbytheconfiner
GetAllExtraStatesT Ineffeicientmethodtogetallextrastateinforforallvcams.only,notruntime!(InheritedfromCinemachineExtension
GetExtraStateT Becauseextensionscanbeplacedonmanagercamsandwillinthatforallthevcamchildren,vcam-specificstateinformationdefineaclasstoholdyourstateinfo(InheritedfromCinemachineExtension
InvalidatePathCache Callthisiftheboundingshape'spointschangeatruntime
OnDestroy Disconnectfromvirtualcamerapipeline.baseimplementation(InheritedfromCinemachineExtension
PostPipelineStageCallback Callbacktotothecameraconfining(OverridesCinemachineExtensionPostPipelineStageCallback(CinemachineVirtualCameraBase,CinemachineCoreStage,CameraState
Top
Fields Name Description
m_BoundingShape2D The2Dshapewithinwhichthecameraistobecontained.
m_BoundingVolume Thevolumewithinwhichthecameraistobecontained.
m_ConfineMode Theconfinercanoperateusinga2Dboundingshapeora3Dboundingvolume
m_ConfineScreenEdges Ifcameraisorthographic,screenedgeswillbeconfinedtothevolume.
m_Damping Howgraduallytoreturnthecameratotheboundingvolumeifitgoesbeyondtheborders
Top
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineConfinerConstructor
[Missing<summary>documentationfor"M:Cinemachine.CinemachineConfiner.#ctor"]
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineConfinerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicCinemachineConfiner()
CopyC# JavaScript
Cinemachine
CinemachineConfinerProperties
TheCinemachineConfinertypeexposesthefollowingmembers.
Properties Name Description
IsValid Checkiftheboundingvolumeisdefined
VirtualCamera GettheassociatedCinemachineVirtualCameraBase(InheritedfromCinemachineExtension.)
Top
SeeAlsoReferenceCinemachineConfinerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineConfinerIsValidProperty
Checkiftheboundingvolumeisdefined
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Boolean
SeeAlsoReferenceCinemachineConfinerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicboolIsValid{get;}
CopyC# JavaScript
Cinemachine
CinemachineConfinerMethods
TheCinemachineConfinertypeexposesthefollowingmembers.
Methods Name Description
Awake Connecttovirtualcamerapipeline.implementation(InheritedfromCinemachineExtension
CameraWasDisplaced Seewhetherthevirtualcamerahasbeenmovedbytheconfiner
GetAllExtraStatesT Ineffeicientmethodtogetallextrastateinforforallvcams.only,notruntime!(InheritedfromCinemachineExtension
GetExtraStateT Becauseextensionscanbeplacedonmanagercamsandwillinthatforallthevcamchildren,vcam-specificstateinformationdefineaclasstoholdyourstateinfo(InheritedfromCinemachineExtension
InvalidatePathCache Callthisiftheboundingshape'spointschangeatruntime
OnDestroy Disconnectfromvirtualcamerapipeline.baseimplementation(InheritedfromCinemachineExtension
PostPipelineStageCallback Callbacktotothecameraconfining(OverridesCinemachineExtensionPostPipelineStageCallback(CinemachineVirtualCameraBase,CinemachineCoreStage,CameraState
Top
SeeAlsoReferenceCinemachineConfinerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineConfinerCameraWasDisplacedMethod
Seewhetherthevirtualcamerahasbeenmovedbytheconfiner
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
vcamType:CinemachineCinemachineVirtualCameraBaseThevirtualcamerainquestion.Thismightbedifferentfromthevirtualcamerathatownstheconfiner,intheeventthatthecamerahaschildren
ReturnValueType:BooleanTrueifthevirtualcamerahasbeenrepositioned
SeeAlsoReferenceCinemachineConfinerClassCinemachineNamespace
publicboolCameraWasDisplaced(
CinemachineVirtualCameraBasevcam
)
CopyC# JavaScript
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineConfinerInvalidatePathCacheMethod
Callthisiftheboundingshape'spointschangeatruntime
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineConfinerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicvoidInvalidatePathCache()
CopyC# JavaScript
Cinemachine
CinemachineConfinerPostPipelineStageCallbackMethod
Callbacktotothecameraconfining
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
vcamType:CinemachineCinemachineVirtualCameraBase[Missing<paramname="vcam"/>documentationfor"M:Cinemachine.CinemachineConfiner.PostPipelineStageCallback(Cinemachine.CinemachineVirtualCameraBase,Cinemachine.CinemachineCore.Stage,Cinemachine.CameraState@,System.Single)"]
stageType:CinemachineCinemachineCoreStage[Missing<paramname="stage"/>documentationfor"M:Cinemachine.CinemachineConfiner.PostPipelineStageCallback(Cinemachine.CinemachineVirtualCameraBase,Cinemachine.CinemachineCore.Stage,Cinemachine.CameraState@,System.Single)"]
stateType:CinemachineCameraState[Missing<paramname="state"/>documentationfor"M:Cinemachine.CinemachineConfiner.PostPipelineStageCallback(Cinemachine.CinemachineVirtualCameraBase,Cinemachine.CinemachineCore.Stage,Cinemachine.CameraState@,System.Single)"]
protectedoverridevoidPostPipelineStageCallback(
CinemachineVirtualCameraBasevcam,
CinemachineCoreStagestage,
refCameraStatestate,
floatdeltaTime
)
CopyC# JavaScript
deltaTimeType:SystemSingle[Missing<paramname="deltaTime"/>documentationfor"M:Cinemachine.CinemachineConfiner.PostPipelineStageCallback(Cinemachine.CinemachineVirtualCameraBase,Cinemachine.CinemachineCore.Stage,Cinemachine.CameraState@,System.Single)"]
SeeAlsoReferenceCinemachineConfinerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineConfinerFields
TheCinemachineConfinertypeexposesthefollowingmembers.
Fields Name Description
m_BoundingShape2D The2Dshapewithinwhichthecameraistobecontained.
m_BoundingVolume Thevolumewithinwhichthecameraistobecontained.
m_ConfineMode Theconfinercanoperateusinga2Dboundingshapeora3Dboundingvolume
m_ConfineScreenEdges Ifcameraisorthographic,screenedgeswillbeconfinedtothevolume.
m_Damping Howgraduallytoreturnthecameratotheboundingvolumeifitgoesbeyondtheborders
Top
SeeAlso
ReferenceCinemachineConfinerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineConfinerm_BoundingShape2DField
The2Dshapewithinwhichthecameraistobecontained.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Collider2D
SeeAlsoReferenceCinemachineConfinerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("The2Dshapewithinwhichthecameraistobecontained")]
publicCollider2Dm_BoundingShape2D
CopyC# JavaScript
Cinemachine
CinemachineConfinerm_BoundingVolumeField
Thevolumewithinwhichthecameraistobecontained.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Collider
SeeAlsoReferenceCinemachineConfinerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Thevolumewithinwhichthecameraistobecontained")]
publicColliderm_BoundingVolume
CopyC# JavaScript
Cinemachine
CinemachineConfinerm_ConfineModeField
Theconfinercanoperateusinga2Dboundingshapeora3Dboundingvolume
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachineConfinerMode
SeeAlsoReferenceCinemachineConfinerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Theconfinercanoperateusinga2Dboundingshapeora3Dboundingvolume")]
publicCinemachineConfinerModem_ConfineMode
CopyC# JavaScript
Cinemachine
CinemachineConfinerm_ConfineScreenEdgesField
Ifcameraisorthographic,screenedgeswillbeconfinedtothevolume.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Boolean
SeeAlsoReferenceCinemachineConfinerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Ifcameraisorthographic,screenedgeswillbeconfinedtothevolume.Ifnotchecked,thenonlythecameracenterwillbeconfined")]
publicboolm_ConfineScreenEdges
CopyC# JavaScript
Cinemachine
CinemachineConfinerm_DampingField
Howgraduallytoreturnthecameratotheboundingvolumeifitgoesbeyondtheborders
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineConfinerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Howgraduallytoreturnthecameratotheboundingvolumeifitgoesbeyondtheborders.Highernumbersaremoregradual.")]
[RangeAttribute(0f,10f)]
publicfloatm_Damping
CopyC# JavaScript
Cinemachine
CinemachineConfinerModeEnumeration
Theconfinercanoperateusinga2Dboundingshapeora3Dboundingvolume
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Members Membername Value Description
Confine2D 0
Confine3D 1
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicenumMode
CopyC# JavaScript
Cinemachine
CinemachineCoreClass
AsingletonthatmanagescompletelistsofCinemachineBrainand,CinemachineVirtualCameras,andthepriorityqueue.ProvidesservicestokeepingtrackofwhetherCinemachineVirtualCamerashavebeenupdatedeachframe.
InheritanceHierarchySystemObjectCinemachineCinemachineCore
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheCinemachineCoretypeexposesthefollowingmembers.
Constructors Name Description
CinemachineCore
Top
Properties Name Description
BrainCount Accessthearrayofactive
publicsealedclassCinemachineCore
CopyC# JavaScript
CinemachineBrainsinthescene
Instance Getthesingletoninstance
VirtualCameraCount ListofallactiveCinemachineVirtualCamerasforallbrains.Thislistiskeptsortedbypriority.
Top
Methods Name Description
FindPotentialTargetBrain TrytofindaCinemachineBraintoassociatewithaCinemachineVirtualCamera.ThefirstCinemachineBraininwhichthisCinemachineVirtualCameraislivewillbeused.Ifnone,thenthefirstactiveCinemachineBrainwillbeused.BrainswithOutputCamera==nullwillnotbereturned.Finalresultmaybenull.
GenerateCameraActivationEvent Signalthatthevirtualhasbeenactivated.Ifthecameraislive,thenallCinemachineBrains
thatareshowingitwillsendanactivationevent.
GenerateCameraCutEvent Signalthatthevirtualcamera'scontentisdiscontinuousWRTthepreviousframe.Ifthecameraislive,thenallCinemachineBrainsthatareshowingitwillsendacutevent.
GetActiveBrain AccessthearrayofactiveCinemachineBrainsinthescenewithoutgebneratinggarbage
GetVcamUpdateStatus Internaluseonly
GetVirtualCamera AccessthearrayofactiveICinemachineCamerainthescenewithoutgebneratinggarbage
IsLive IsthisvirtualcameracurrentlyactivelycontrollinganyCamera?
Top
Fields Name Description
GetInputAxis DelegateforoverridingUnity'sdefaultinputsystem.Ifyousetthis,thenyourdelegatewillbecalledinsteadofSystem.Input.GetAxis(axisName)wheneverin-gameuserinputisneeded.
kStreamingVersion Dataversionstring.Usedtoupgradefromlegacyprojects
kVersionString Human-readableCinemachineVersion
sShowHiddenObjects Iftrue,showhiddenCinemachineobjects,tomakemanualscriptmappingpossible.
Top
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineCoreConstructor
[Missing<summary>documentationfor"M:Cinemachine.CinemachineCore.#ctor"]
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineCoreClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicCinemachineCore()
CopyC# JavaScript
Cinemachine
CinemachineCoreProperties
TheCinemachineCoretypeexposesthefollowingmembers.
Properties Name Description
BrainCount AccessthearrayofactiveCinemachineBrainsinthescene
Instance Getthesingletoninstance
VirtualCameraCount ListofallactiveCinemachineVirtualCamerasforallbrains.Thislistiskeptsortedbypriority.
Top
SeeAlsoReferenceCinemachineCoreClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineCoreBrainCountProperty
AccessthearrayofactiveCinemachineBrainsinthescene
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Int32
SeeAlsoReferenceCinemachineCoreClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicintBrainCount{get;}
CopyC# JavaScript
Cinemachine
CinemachineCoreInstanceProperty
Getthesingletoninstance
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:CinemachineCore
SeeAlsoReferenceCinemachineCoreClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicstaticCinemachineCoreInstance{get;}
CopyC# JavaScript
Cinemachine
CinemachineCoreVirtualCameraCountProperty
ListofallactiveCinemachineVirtualCamerasforallbrains.Thislistiskeptsortedbypriority.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Int32
SeeAlsoReferenceCinemachineCoreClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicintVirtualCameraCount{get;}
CopyC# JavaScript
Cinemachine
CinemachineCoreMethods
TheCinemachineCoretypeexposesthefollowingmembers.
Methods Name Description
FindPotentialTargetBrain TrytofindaCinemachineBraintoassociatewithaCinemachineVirtualCamera.ThefirstCinemachineBraininwhichthisCinemachineVirtualCameraislivewillbeused.Ifnone,thenthefirstactiveCinemachineBrainwillbeused.BrainswithOutputCamera==nullwillnotbereturned.Finalresultmaybenull.
GenerateCameraActivationEvent Signalthatthevirtualhasbeenactivated.Ifthecameraislive,thenallCinemachineBrainsthatareshowingitwillsendanactivationevent.
GenerateCameraCutEvent Signalthatthevirtual
camera'scontentisdiscontinuousWRTthepreviousframe.Ifthecameraislive,thenallCinemachineBrainsthatareshowingitwillsendacutevent.
GetActiveBrain AccessthearrayofactiveCinemachineBrainsinthescenewithoutgebneratinggarbage
GetVcamUpdateStatus Internaluseonly
GetVirtualCamera AccessthearrayofactiveICinemachineCamerainthescenewithoutgebneratinggarbage
IsLive IsthisvirtualcameracurrentlyactivelycontrollinganyCamera?
Top
SeeAlsoReferenceCinemachineCoreClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineCoreFindPotentialTargetBrainMethod
TrytofindaCinemachineBraintoassociatewithaCinemachineVirtualCamera.ThefirstCinemachineBraininwhichthisCinemachineVirtualCameraislivewillbeused.Ifnone,thenthefirstactiveCinemachineBrainwillbeused.BrainswithOutputCamera==nullwillnotbereturned.Finalresultmaybenull.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
vcamType:CinemachineICinemachineCameraVirtualcamerawhosepotentialbrainweneed.
ReturnValueType:CinemachineBrainFirstCinemachineBrainfoundthatmightbeappropriateforthisvcam,ornull
SeeAlso
publicCinemachineBrainFindPotentialTargetBrain(
ICinemachineCameravcam
)
CopyC# JavaScript
ReferenceCinemachineCoreClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineCoreGenerateCameraActivationEventMethod
Signalthatthevirtualhasbeenactivated.Ifthecameraislive,thenallCinemachineBrainsthatareshowingitwillsendanactivationevent.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
vcamType:CinemachineICinemachineCamera[Missing<paramname="vcam"/>documentationfor"M:Cinemachine.CinemachineCore.GenerateCameraActivationEvent(Cinemachine.ICinemachineCamera)"]
SeeAlsoReferenceCinemachineCoreClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicvoidGenerateCameraActivationEvent(
ICinemachineCameravcam
)
CopyC# JavaScript
Cinemachine
CinemachineCoreGenerateCameraCutEventMethod
Signalthatthevirtualcamera'scontentisdiscontinuousWRTthepreviousframe.Ifthecameraislive,thenallCinemachineBrainsthatareshowingitwillsendacutevent.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
vcamType:CinemachineICinemachineCamera[Missing<paramname="vcam"/>documentationfor"M:Cinemachine.CinemachineCore.GenerateCameraCutEvent(Cinemachine.ICinemachineCamera)"]
SeeAlsoReferenceCinemachineCoreClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicvoidGenerateCameraCutEvent(
ICinemachineCameravcam
)
CopyC# JavaScript
Cinemachine
CinemachineCoreGetActiveBrainMethod
AccessthearrayofactiveCinemachineBrainsinthescenewithoutgebneratinggarbage
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
indexType:SystemInt32Indexofthebraintoaccess,range0-BrainCount
ReturnValueType:CinemachineBrainThebrainatthespecifiedindex
SeeAlsoReferenceCinemachineCoreClassCinemachineNamespace
VisittheCinemachineForum
publicCinemachineBrainGetActiveBrain(
intindex
)
CopyC# JavaScript
https://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineCoreGetVcamUpdateStatusMethod
Internaluseonly
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
vcamType:CinemachineICinemachineCamera[Missing<paramname="vcam"/>documentationfor"M:Cinemachine.CinemachineCore.GetVcamUpdateStatus(Cinemachine.ICinemachineCamera)"]
ReturnValueType:CinemachineCoreUpdateFilter[Missing<returns>documentationfor"M:Cinemachine.CinemachineCore.GetVcamUpdateStatus(Cinemachine.ICinemachineCamera)"]
SeeAlsoReferenceCinemachineCoreClassCinemachineNamespace
publicCinemachineCoreUpdateFilterGetVcamUpdateStatus
ICinemachineCameravcam
)
CopyC# JavaScript
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineCoreGetVirtualCameraMethod
AccessthearrayofactiveICinemachineCamerainthescenewithoutgebneratinggarbage
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
indexType:SystemInt32Indexofthecameratoaccess,range0-VirtualCameraCount
ReturnValueType:ICinemachineCameraThevirtualcameraatthespecifiedindex
SeeAlsoReferenceCinemachineCoreClassCinemachineNamespace
VisittheCinemachineForum
publicICinemachineCameraGetVirtualCamera(
intindex
)
CopyC# JavaScript
https://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineCoreIsLiveMethod
IsthisvirtualcameracurrentlyactivelycontrollinganyCamera?
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
vcamType:CinemachineICinemachineCamera[Missing<paramname="vcam"/>documentationfor"M:Cinemachine.CinemachineCore.IsLive(Cinemachine.ICinemachineCamera)"]
ReturnValueType:Boolean[Missing<returns>documentationfor"M:Cinemachine.CinemachineCore.IsLive(Cinemachine.ICinemachineCamera)"]
SeeAlsoReferenceCinemachineCoreClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicboolIsLive(
ICinemachineCameravcam
)
CopyC# JavaScript
Cinemachine
CinemachineCoreFields
TheCinemachineCoretypeexposesthefollowingmembers.
Fields Name Description
GetInputAxis DelegateforoverridingUnity'sdefaultinputsystem.Ifyousetthis,thenyourdelegatewillbecalledinsteadofSystem.Input.GetAxis(axisName)wheneverin-gameuserinputisneeded.
kStreamingVersion Dataversionstring.Usedtoupgradefromlegacyprojects
kVersionString Human-readableCinemachineVersion
sShowHiddenObjects Iftrue,showhiddenCinemachineobjects,tomakemanualscriptmappingpossible.
Top
SeeAlsoReferenceCinemachineCoreClassCinemachineNamespace
VisittheCinemachineForum
https://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineCoreGetInputAxisField
DelegateforoverridingUnity'sdefaultinputsystem.Ifyousetthis,thenyourdelegatewillbecalledinsteadofSystem.Input.GetAxis(axisName)wheneverin-gameuserinputisneeded.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachineCoreAxisInputDelegate
SeeAlsoReferenceCinemachineCoreClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicstaticCinemachineCoreAxisInputDelegateGetInputAxis
CopyC# JavaScript
Cinemachine
CinemachineCorekStreamingVersionField
Dataversionstring.Usedtoupgradefromlegacyprojects
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Int32
SeeAlsoReferenceCinemachineCoreClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicstaticreadonlyintkStreamingVersion
CopyC# JavaScript
Cinemachine
CinemachineCorekVersionStringField
Human-readableCinemachineVersion
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:String
SeeAlsoReferenceCinemachineCoreClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicstaticreadonlystringkVersionString
CopyC# JavaScript
Cinemachine
CinemachineCoresShowHiddenObjectsField
Iftrue,showhiddenCinemachineobjects,tomakemanualscriptmappingpossible.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Boolean
SeeAlsoReferenceCinemachineCoreClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicstaticboolsShowHiddenObjects
CopyC# JavaScript
Cinemachine
CinemachineCoreAxisInputDelegateDelegate
DelegateforoverridingUnity'sdefaultinputsystem.Returnsthevalueofthenamedaxis.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
axisNameType:SystemString
ReturnValueType:Single
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicdelegatefloatAxisInputDelegate(
stringaxisName
)
CopyC# JavaScript
Cinemachine
CinemachineCoreStageEnumeration
StagesintheCinemachineComponentpipeline,usedforUIorganization>.Thisenumdefinesthepipelineorder.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Members
Membername Value Description
Body 0 Secondstage:positionthecamerainspace
Aim 1 Thirdstage:orientthecameratopointatthetarget
Noise 2 Finalstage:applynoise(thisisdoneseparately,intheCorrectionchanneloftheCameraState)
SeeAlso
publicenumStage
CopyC# JavaScript
ReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineCoreUpdateFilterEnumeration
Internaluseonly
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Members Membername Value Description
Fixed 0
Late 1
Any 2
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicenumUpdateFilter
CopyC# JavaScript
Cinemachine
CinemachineDollyCartClass
ThisisaverysimplebehaviourthatconstrainsitstransformtoaCinemachinePath.Itcanbeusedtoanimateanyobjectsalongapath,orasaFollowtargetforCinemachineVirtualCameras.
InheritanceHierarchySystemObjectObjectComponentBehaviourMonoBehaviourCinemachineCinemachineDollyCart
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheCinemachineDollyCarttypeexposesthefollowingmembers.
Constructors Name Description
CinemachineDollyCart
Top
[DocumentationSortingAttribute(21f,DocumentationSortingAttribute
[ExecuteInEditMode]
publicclassCinemachineDollyCart:MonoBehaviour
CopyC# JavaScript
Fields Name Description
m_Path Thepathtofollow
m_Position Thecart'scurrentpositiononthepath,indistanceunits
m_PositionUnits HowtointerpretthePathPosition
m_Speed Movethecartwiththisspeed
m_UpdateMethod Whentomovethecart,ifVelocityisnon-zero
Top
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineDollyCartConstructor
[Missing<summary>documentationfor"M:Cinemachine.CinemachineDollyCart.#ctor"]
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineDollyCartClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicCinemachineDollyCart()
CopyC# JavaScript
Cinemachine
CinemachineDollyCartFields
TheCinemachineDollyCarttypeexposesthefollowingmembers.
Fields Name Description
m_Path Thepathtofollow
m_Position Thecart'scurrentpositiononthepath,indistanceunits
m_PositionUnits HowtointerpretthePathPosition
m_Speed Movethecartwiththisspeed
m_UpdateMethod Whentomovethecart,ifVelocityisnon-zero
Top
SeeAlsoReferenceCinemachineDollyCartClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineDollyCartm_PathField
Thepathtofollow
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachinePathBase
SeeAlsoReferenceCinemachineDollyCartClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Thepathtofollow")]
publicCinemachinePathBasem_Path
CopyC# JavaScript
Cinemachine
CinemachineDollyCartm_PositionField
Thecart'scurrentpositiononthepath,indistanceunits
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineDollyCartClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Thepositionalongthepathatwhichthecartwillbeplaced.Thiscanbeanimateddirectlyor,ifthevelocityisnon-zero,willbeupdatedautomatically.ThevalueisinterpretedaccordingtothePositionUnitssetting.")]
[FormerlySerializedAsAttribute("m_CurrentDistance")]
publicfloatm_Position
CopyC# JavaScript
Cinemachine
CinemachineDollyCartm_PositionUnitsField
HowtointerpretthePathPosition
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachinePathBasePositionUnits
SeeAlsoReferenceCinemachineDollyCartClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("HowtointerpretthePathPosition.IfsettoPathUnits,valuesareasfollows:0representsthefirstwaypointonthepath,1isthesecond,andsoon.Valuesin-betweenarepointsonthepathinbetweenthewaypoints.IfsettoDistance,thenPathPositionrepresentsdistancealongthepath.")]
publicCinemachinePathBasePositionUnitsm_PositionUnits
CopyC# JavaScript
Cinemachine
CinemachineDollyCartm_SpeedField
Movethecartwiththisspeed
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineDollyCartClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Movethecartwiththisspeedalongthepath.ThevalueisinterpretedaccordingtothePositionUnitssetting.")]
[FormerlySerializedAsAttribute("m_Velocity")]
publicfloatm_Speed
CopyC# JavaScript
Cinemachine
CinemachineDollyCartm_UpdateMethodField
Whentomovethecart,ifVelocityisnon-zero
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachineDollyCartUpdateMethod
SeeAlsoReferenceCinemachineDollyCartClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Whentomovethecart,ifVelocityisnon-zero")]
publicCinemachineDollyCartUpdateMethodm_UpdateMethod
CopyC# JavaScript
Cinemachine
CinemachineDollyCartUpdateMethodEnumeration
Thisenumdefinestheoptionsavailablefortheupdatemethod.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Members
Membername Value Description
Update 0 UpdatedinnormalMonoBehaviourUpdate.
FixedUpdate 1 UpdatedinsyncwiththePhysicsmodule,inFixedUpdate
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicenumUpdateMethod
CopyC# JavaScript
Cinemachine
CinemachineExtensionClass
BaseclassforaCinemachineVirtualCameraextensionmodule.HooksintotheCinemachinePipeline.
InheritanceHierarchySystemObjectObjectComponentBehaviourMonoBehaviourCinemachineCinemachineExtensionCinemachineCinemachineColliderCinemachineCinemachineConfinerCinemachineCinemachineFollowZoom
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheCinemachineExtensiontypeexposesthefollowingmembers.
Constructors Name Description
CinemachineExtension
[DocumentationSortingAttribute(23f,DocumentationSortingAttribute
publicabstractclassCinemachineExtension:MonoBehaviour
CopyC# JavaScript
Top
Properties Name Description
VirtualCamera GettheassociatedCinemachineVirtualCameraBase
Top
Methods Name Description
Awake Connecttovirtualcamerapipeline.Overrideimplementationsmustcallthisbaseimplementation
GetAllExtraStatesT Ineffeicientmethodtogetallextrastateinforforallvcams.IntendedforEditoruseonly,notruntime!
GetExtraStateT Becauseextensionscanbeplacedonmanagercamsandwillinthatcasebecalledforallthevcamchildren,vcam-specificstateinformationshouldbestoredhere.Justdefineaclasstoholdyourstateinfoand
useitexclusivelywhencallingthis.
OnDestroy Disconnectfromvirtualcamerapipeline.Overrideimplementationsmustcallthisbaseimplementation
PostPipelineStageCallback Thiscallbackwillbecalledafterthevirtualcamerahasimplementedeachstageinthepipeline.Thismethodmaymodifythereferencedstate.IfdeltaTimelessthan0,resetallstateinfoandperformnodamping.
Top
Fields Name Description
Epsilon Usefulconstantforverysmallfloats
Top
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineExtensionConstructor
[Missing<summary>documentationfor"M:Cinemachine.CinemachineExtension.#ctor"]
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineExtensionClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
protectedCinemachineExtension()
CopyC# JavaScript
Cinemachine
CinemachineExtensionProperties
TheCinemachineExtensiontypeexposesthefollowingmembers.
Properties Name Description
VirtualCamera GettheassociatedCinemachineVirtualCameraBase
Top
SeeAlsoReferenceCinemachineExtensionClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineExtensionVirtualCameraProperty
GettheassociatedCinemachineVirtualCameraBase
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:CinemachineVirtualCameraBase
SeeAlsoReferenceCinemachineExtensionClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicCinemachineVirtualCameraBaseVirtualCamera{
CopyC# JavaScript
Cinemachine
CinemachineExtensionMethods
TheCinemachineExtensiontypeexposesthefollowingmembers.
Methods Name Description
Awake Connecttovirtualcamerapipeline.Overrideimplementationsmustcallthisbaseimplementation
GetAllExtraStatesT Ineffeicientmethodtogetallextrastateinforforallvcams.IntendedforEditoruseonly,notruntime!
GetExtraStateT Becauseextensionscanbeplacedonmanagercamsandwillinthatcasebecalledforallthevcamchildren,vcam-specificstateinformationshouldbestoredhere.Justdefineaclasstoholdyourstateinfoanduseitexclusivelywhencallingthis.
OnDestroy Disconnectfrom
virtualcamerapipeline.Overrideimplementationsmustcallthisbaseimplementation
PostPipelineStageCallback Thiscallbackwillbecalledafterthevirtualcamerahasimplementedeachstageinthepipeline.Thismethodmaymodifythereferencedstate.IfdeltaTimelessthan0,resetallstateinfoandperformnodamping.
Top
SeeAlsoReferenceCinemachineExtensionClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineExtensionAwakeMethod
Connecttovirtualcamerapipeline.Overrideimplementationsmustcallthisbaseimplementation
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineExtensionClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
protectedvirtualvoidAwake()
CopyC# JavaScript
Cinemachine
CinemachineExtensionGetAllExtraStatesMethod
Ineffeicientmethodtogetallextrastateinforforallvcams.IntendedforEditoruseonly,notruntime!
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TypeParameters
T
ReturnValueType:ListT[Missing<returns>documentationfor"M:Cinemachine.CinemachineExtension.GetAllExtraStates``1"]
SeeAlsoReferenceCinemachineExtensionClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
protectedList<T>GetAllExtraStates<T>()
whereT:class,new()
CopyC# JavaScript
Cinemachine
CinemachineExtensionGetExtraStateMethod
Becauseextensionscanbeplacedonmanagercamsandwillinthatcasebecalledforallthevcamchildren,vcam-specificstateinformationshouldbestoredhere.Justdefineaclasstoholdyourstateinfoanduseitexclusivelywhencallingthis.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
vcamType:CinemachineICinemachineCamera[Missing<paramname="vcam"/>documentationfor"M:Cinemachine.CinemachineExtension.GetExtraState``1(Cinemachine.ICinemachineCamera)"]
TypeParameters
T
ReturnValueType:T[Missing<returns>documentationfor
protectedTGetExtraState<T>(
ICinemachineCameravcam
)
whereT:class,new()
CopyC# JavaScript
"M:Cinemachine.CinemachineExtension.GetExtraState``1(Cinemachine.ICinemachineCamera)"]
SeeAlsoReferenceCinemachineExtensionClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineExtensionOnDestroyMethod
Disconnectfromvirtualcamerapipeline.Overrideimplementationsmustcallthisbaseimplementation
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineExtensionClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
protectedvirtualvoidOnDestroy()
CopyC# JavaScript
Cinemachine
CinemachineExtensionPostPipelineStageCallbackMethod
Thiscallbackwillbecalledafterthevirtualcamerahasimplementedeachstageinthepipeline.Thismethodmaymodifythereferencedstate.IfdeltaTimelessthan0,resetallstateinfoandperformnodamping.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
vcamType:CinemachineCinemachineVirtualCameraBase[Missing<paramname="vcam"/>documentationfor"M:Cinemachine.CinemachineExtension.PostPipelineStageCallback(Cinemachine.CinemachineVirtualCameraBase,Cinemachine.CinemachineCore.Stage,Cinemachine.CameraState@,System.Single)"]
stageType:CinemachineCinemachineCoreStage[Missing<paramname="stage"/>documentationfor"M:Cinemachine.CinemachineExtension.PostPipelineStageCallback(Cinemachine.CinemachineVirtualCameraBase,Cinemachine.CinemachineCore.Stage,Cinemachine.CameraState@,System.Single)"]
state
protectedabstractvoidPostPipelineStageCallback(
CinemachineVirtualCameraBasevcam,
CinemachineCoreStagestage,
refCameraStatestate,
floatdeltaTime
)
CopyC# JavaScript
Type:CinemachineCameraState[Missing<paramname="state"/>documentationfor"M:Cinemachine.CinemachineExtension.PostPipelineStageCallback(Cinemachine.CinemachineVirtualCameraBase,Cinemachine.CinemachineCore.Stage,Cinemachine.CameraState@,System.Single)"]
deltaTimeType:SystemSingle[Missing<paramname="deltaTime"/>documentationfor"M:Cinemachine.CinemachineExtension.PostPipelineStageCallback(Cinemachine.CinemachineVirtualCameraBase,Cinemachine.CinemachineCore.Stage,Cinemachine.CameraState@,System.Single)"]
SeeAlsoReferenceCinemachineExtensionClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineExtensionFields
TheCinemachineExtensiontypeexposesthefollowingmembers.
Fields Name Description
Epsilon Usefulconstantforverysmallfloats
Top
SeeAlsoReferenceCinemachineExtensionClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineExtensionEpsilonField
Usefulconstantforverysmallfloats
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineExtensionClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
protectedconstfloatEpsilon=0.0001f
CopyC# JavaScript
Cinemachine
CinemachineExternalCameraClass
Thiscomponentwillexposeanon-cinemachinecameratothecinemachinesystem,allowingittoparticipateinblends.JustadditasacomponentalongsideanexistingUnityCameracomponent.
InheritanceHierarchySystemObjectObjectComponentBehaviourMonoBehaviourCinemachineCinemachineVirtualCameraBaseCinemachineCinemachineExternalCamera
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheCinemachineExternalCameratypeexposesthefollowingmembers.
[DocumentationSortingAttribute(14f,DocumentationSortingAttribute
[RequireComponent(typeof(Camera))]
[DisallowMultipleComponent]
[ExecuteInEditMode]
[AddComponentMenu("Cinemachine/CinemachineExternalCamera")]
publicclassCinemachineExternalCamera:CinemachineVirtualCameraBase
CopyC# JavaScript
Constructors Name Description
CinemachineExternalCamera
Top
Properties Name Description
Description Getsabriefdebugdescriptionofthisvirtualcamera,forusewhendisplayiongdebuginfo(InheritedfromCinemachineVirtualCameraBase
Follow Thisvcamdefinesnotargets(OverridesCinemachineVirtualCameraBase
LiveChildOrSelf Justreturnsself.(InheritedfromCinemachineVirtualCameraBase
LookAt Theobjectthatthecameraislookingat(OverridesCinemachineVirtualCameraBase
Name GetthenameoftheVirtualCamera.BaseimplementationreturnstheownerGameObject'sname.(InheritedfromCinemachineVirtualCameraBase
ParentCamera Supportformeta-virtual-cameras.thesituationwhereavirtualcameraisin
factthepublicfaceofaprivatearmyofvirtualcameras,whichitmanagesonitsown.ThismethodgetstheVirtualCameraowner,ifany.PrivatearmiesareimplementedasTransformchildrenoftheparentvcam.(InheritedfromCinemachineVirtualCameraBase
PreviousStateIsValid SetthistoforcethenextupdatetoignoredeltaTimeandresetitself(InheritedfromCinemachineVirtualCameraBase
Priority GetthePriorityofthevirtualcamera.ThisdeterminesitsplacementCinemachineCore'squeueofeligibleshots.(InheritedfromCinemachineVirtualCameraBase
State GettheCameraState,asweareabletoconstructonefromtheUnityCamera(OverridesCinemachineVirtualCameraBase
ValidatingStreamVersion Versionthatwaslaststreamed,forupgradinglegacy(InheritedfromCinemachineVirtualCameraBase
VirtualCameraGameObject TheGameObjectowneroftheVirtualCamerabehaviour.(InheritedfromCinemachineVirtualCameraBase
Top
Methods Name Description
AddPostPipelineStageHook Adelegatetohookintothestatecalculationpipeline.becalledaftereachpipelinestage,toallowotherstohookintothepipeline.SeeCinemachineCore.Stage.(InheritedfromCinemachineVirtualCameraBase
InvokePostPipelineStageCallback InvokesthePostPipelineStageDelegateforthiscamera,andupthehierarchyforallparentcameras(ifany).(InheritedfromCinemachineVirtualCameraBase
IsLiveChild Checkwhetherthevcamalivechildofthiscamera.classimplementationalwaysreturnsfalse.(InheritedfromCinemachineVirtualCameraBase
MoveToTopOfPrioritySubqueue Whenmultiplevirtualcamerashavethehighestpriority,thereissometimestheneedtopushonetothetop,makingitthecurrentLivecameraifitsharesthehighestpriorityinthequeuewithitspeers.Thishappensautomaticallywhenavcamisenabled:themostrecentonegoestothetopoftheprioritysubqueue.Usethismethodtopushavcamtothetopofitsprioritypeers.Ifitanditspeerssharethehighestpriority,thenthisvcamwillbecomeLive.(InheritedfromCinemachineVirtualCameraBase
OnDestroy Baseclassimplementationremovesthevirtualcamerafromthepriorityqueue.(InheritedfromCinemachineVirtualCameraBase
OnDisable Baseclassimplementationmakessurethepriorityqueueremainsup-to-date.(InheritedfromCinemachineVirtualCameraBase
OnEnable Baseclassimplementationaddsthevirtualcamerafromthepriorityqueue.(InheritedfromCinemachineVirtualCameraBase
OnTransformParentChanged Baseclassimplementationmakessurethepriorityqueueremainsup-to-date.(InheritedfromCinemachineVirtualCameraBase
OnTransitionFromCamera Notificationthatthisvirtualcameraisgoinglive.implementationmustbecalledbyanyoverriddenmethod.(InheritedfromCinemachineVirtualCameraBase
OnValidate Enforceboundsforfields,whenchangedininspector.baseclassimplementationatthebeginningofoverriddenmethod.Afterbasemethodiscalled,ValidatingStreamVersionwillbevalid.(InheritedfromCinemachineVirtualCameraBase
PreUpdateChildCameras Thisiscalledpriortotheupdatingofthevcam'schildcameras,inordertoallowtheparenttoprepareitschildren.thechildrenareupdatingonFixedUpdate,thenthiswillnotnecessarilybecalledpriortoeveryFixedUpdate,butitmightbecalledonLateUpdateinstead.doesnothing.(InheritedfromCinemachineVirtualCameraBase
RemovePostPipelineStageHook RemoveaPipelinestagehookcallback.(InheritedfromCinemachineVirtualCameraBase
ResolveFollow Returnsthisvcam'sFollowtarget,orifthatisnull,willretruntheparentvcam'sFollowtarget.(InheritedfromCinemachineVirtualCameraBase
ResolveLookAt Returnsthisvcam'sLookAttarget,orifthatisnull,willretruntheparentvcam'sLookAttarget.(InheritedfromCinemachineVirtualCameraBase
Start Baseclassimplementationdoesnothing.(InheritedfromCinemachineVirtualCameraBase
Update Baseclassimplementationmakessurethepriorityqueueremainsup-to-date.(InheritedfromCinemachineVirtualCameraBase
UpdateCameraState ConstructaCameraStateobjectfromtheUnityCamera(OverridesCinemachineVirtualCameraBaseSingle).)
Top
Fields Name Description
CinemachineGUIDebuggerCallback Thisisdeprecated.Itisheretosupportthesoon-to-be-removedCinemachineDebuggerintheEditor.(InheritedfromCinemachineVirtualCameraBase
m_ExcludedPropertiesInInspector Inspectorcontrol-UseforhidingsectionsoftheInspectorUI.(InheritedfromCinemachineVirtualCameraBase
m_LockStageInInspector Inspectorcontrol-UseforenablingsectionsoftheInspectorUI.(InheritedfromCinemachineVirtualCameraBase
m_LookAt Theobjectthatthecameraislookingat.
m_Priority Theprioritywilldeterminewhichcamerabecomesactivebasedonthestateofothercamerasandthiscamera.Highernumbershavegreaterpriority.(InheritedfromCinemachineVirtualCameraBase
OnPostPipelineStage Adelegatetohookintothestatecalculationpipeline.Implementaionmustbesuretocallthisaftereachpipelinestage,toallowotherservicestohookintothepipeline.SeeCinemachineCore.Stage.(InheritedfromCinemachineVirtualCameraBase
Top
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineExternalCameraConstructor
[Missing<summary>documentationfor"M:Cinemachine.CinemachineExternalCamera.#ctor"]
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineExternalCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicCinemachineExternalCamera()
CopyC# JavaScript
Cinemachine
CinemachineExternalCameraProperties
TheCinemachineExternalCameratypeexposesthefollowingmembers.
Properties Name Description
Description Getsabriefdebugdescriptionofthisvirtualcamera,forusewhendisplayiongdebuginfo(InheritedfromCinemachineVirtualCameraBase
Follow Thisvcamdefinesnotargets(OverridesCinemachineVirtualCameraBase
LiveChildOrSelf Justreturnsself.(InheritedfromCinemachineVirtualCameraBase
LookAt Theobjectthatthecameraislookingat(OverridesCinemachineVirtualCameraBase
Name GetthenameoftheVirtualCamera.BaseimplementationreturnstheownerGameObject'sname.(InheritedfromCinemachineVirtualCameraBase
ParentCamera Supportformeta-virtual-cameras.
thesituationwhereavirtualcameraisinfactthepublicfaceofaprivatearmyofvirtualcameras,whichitmanagesonitsown.ThismethodgetstheVirtualCameraowner,ifany.PrivatearmiesareimplementedasTransformchildrenoftheparentvcam.(InheritedfromCinemachineVirtualCameraBase
PreviousStateIsValid SetthistoforcethenextupdatetoignoredeltaTimeandresetitself(InheritedfromCinemachineVirtualCameraBase
Priority GetthePriorityofthevirtualcamera.ThisdeterminesitsplacementCinemachineCore'squeueofeligibleshots.(InheritedfromCinemachineVirtualCameraBase
State GettheCameraState,asweareabletoconstructonefromtheUnityCamera(OverridesCinemachineVirtualCameraBase
ValidatingStreamVersion Versionthatwaslaststreamed,forupgradinglegacy(InheritedfromCinemachineVirtualCameraBase
VirtualCameraGameObject TheGameObjectowneroftheVirtualCamerabehaviour.(InheritedfromCinemachineVirtualCameraBase
Top
SeeAlsoReferenceCinemachineExternalCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineExternalCameraFollowProperty
Thisvcamdefinesnotargets
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:TransformImplementsICinemachineCameraFollow
SeeAlsoReferenceCinemachineExternalCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverrideTransformFollow{get;set;}
CopyC# JavaScript
Cinemachine
CinemachineExternalCameraLookAtProperty
Theobjectthatthecameraislookingat
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:TransformImplementsICinemachineCameraLookAt
SeeAlsoReferenceCinemachineExternalCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverrideTransformLookAt{get;set;}
CopyC# JavaScript
Cinemachine
CinemachineExternalCameraStateProperty
GettheCameraState,asweareabletoconstructonefromtheUnityCamera
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:CameraStateImplementsICinemachineCameraState
SeeAlsoReferenceCinemachineExternalCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverrideCameraStateState{get;}
CopyC# JavaScript
Cinemachine
CinemachineExternalCameraMethods
TheCinemachineExternalCameratypeexposesthefollowingmembers.
Methods Name Description
AddPostPipelineStageHook Adelegatetohookintothestatecalculationpipeline.becalledaftereachpipelinestage,toallowotherstohookintothepipeline.SeeCinemachineCore.Stage.(InheritedfromCinemachineVirtualCameraBase
InvokePostPipelineStageCallback InvokesthePostPipelineStageDelegateforthiscamera,andupthehierarchyforallparentcameras(ifany).(InheritedfromCinemachineVirtualCameraBase
IsLiveChild Checkwhetherthevcamalivechildofthiscamera.classimplementationalwaysreturnsfalse.(InheritedfromCinemachineVirtualCameraBase
MoveToTopOfPrioritySubqueue Whenmultiplevirtualcamerashavethehighestpriority,thereissometimestheneedtopushonetothetop,makingitthecurrentLivecameraifitsharesthehighestpriorityinthequeuewithitspeers.Thishappensautomaticallywhenavcamisenabled:themostrecentonegoestothetopoftheprioritysubqueue.Usethismethodtopushavcamtothetopofitsprioritypeers.Ifitanditspeerssharethehighestpriority,thenthisvcamwillbecomeLive.(InheritedfromCinemachineVirtualCameraBase
OnDestroy Baseclassimplementationremovesthevirtualcamerafromthepriorityqueue.
(InheritedfromCinemachineVirtualCameraBase
OnDisable Baseclassimplementationmakessurethepriorityqueueremainsup-to-date.(InheritedfromCinemachineVirtualCameraBase
OnEnable Baseclassimplementationaddsthevirtualcamerafromthepriorityqueue.(InheritedfromCinemachineVirtualCameraBase
OnTransformParentChanged Baseclassimplementationmakessurethepriorityqueueremainsup-to-date.(InheritedfromCinemachineVirtualCameraBase
OnTransitionFromCamera Notificationthatthisvirtualcameraisgoinglive.implementationmustbecalledbyanyoverriddenmethod.(InheritedfromCinemachineVirtualCameraBase
OnValidate Enforceboundsforfields,whenchangedininspector.baseclassimplementationatthebeginningofoverriddenmethod.Afterbasemethodiscalled,ValidatingStreamVersionwillbevalid.(InheritedfromCinemachineVirtualCameraBase
PreUpdateChildCameras Thisiscalledpriortotheupdatingofthevcam'schildcameras,inordertoallowtheparenttoprepareitschildren.thechildrenareupdatingonFixedUpdate,thenthiswillnotnecessarilybecalledpriortoeveryFixedUpdate,butitmightbecalledonLateUpdateinstead.doesnothing.(InheritedfromCinemachineVirtualCameraBase
RemovePostPipelineStageHook RemoveaPipelinestagehookcallback.(InheritedfromCinemachineVirtualCameraBase
ResolveFollow Returnsthisvcam'sFollowtarget,orifthatisnull,willretruntheparentvcam'sFollowtarget.(InheritedfromCinemachineVirtualCameraBase
ResolveLookAt Returnsthisvcam'sLookAttarget,orifthatisnull,willretruntheparentvcam'sLookAttarget.(InheritedfromCinemachineVirtualCameraBase
Start Baseclassimplementationdoesnothing.(InheritedfromCinemachineVirtualCameraBase
Update Baseclassimplementationmakessurethepriorityqueueremainsup-to-date.(InheritedfromCinemachineVirtualCameraBase
UpdateCameraState ConstructaCameraStateobjectfromtheUnityCamera(OverridesCinemachineVirtualCameraBaseSingle).)
Top
SeeAlsoReferenceCinemachineExternalCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineExternalCameraUpdateCameraStateMethod
ConstructaCameraStateobjectfromtheUnityCamera
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
worldUpType:Vector3[Missing<paramname="worldUp"/>documentationfor"M:Cinemachine.CinemachineExternalCamera.UpdateCameraState(UnityEngine.Vector3,System.Single)"]
deltaTimeType:SystemSingle[Missing<paramname="deltaTime"/>documentationfor"M:Cinemachine.CinemachineExternalCamera.UpdateCameraState(UnityEngine.Vector3,System.Single)"]
ImplementsICinemachineCameraUpdateCameraState(Vector3,Single)
SeeAlsoReference
publicoverridevoidUpdateCameraState(
Vector3worldUp,
floatdeltaTime
)
CopyC# JavaScript
CinemachineExternalCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineExternalCameraFields
TheCinemachineExternalCameratypeexposesthefollowingmembers.
Fields Name Description
CinemachineGUIDebuggerCallback Thisisdeprecated.Itisheretosupportthesoon-to-be-removedCinemachineDebuggerintheEditor.(InheritedfromCinemachineVirtualCameraBase
m_ExcludedPropertiesInInspector Inspectorcontrol-UseforhidingsectionsoftheInspectorUI.(InheritedfromCinemachineVirtualCameraBase
m_LockStageInInspector Inspectorcontrol-UseforenablingsectionsoftheInspectorUI.(InheritedfromCinemachineVirtualCameraBase
m_LookAt Theobjectthatthecameraislookingat.
m_Priority Theprioritywilldeterminewhichcamerabecomesactivebasedonthestateofothercamerasandthiscamera.Highernumbers
havegreaterpriority.(InheritedfromCinemachineVirtualCameraBase
OnPostPipelineStage Adelegatetohookintothestatecalculationpipeline.Implementaionmustbesuretocallthisaftereachpipelinestage,toallowotherservicestohookintothepipeline.SeeCinemachineCore.Stage.(InheritedfromCinemachineVirtualCameraBase
Top
SeeAlsoReferenceCinemachineExternalCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineExternalCameram_LookAtField
Theobjectthatthecameraislookingat.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Transform
SeeAlsoReferenceCinemachineExternalCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Theobjectthatthecameraislookingat.Settingthiswillimprovethequalityoftheblendstoandfromthiscamera")]
[NoSaveDuringPlayAttribute]
publicTransformm_LookAt
CopyC# JavaScript
Cinemachine
CinemachineFollowZoomClass
Anadd-onmoduleforCinemachineVirtualCamerathatadjuststheFOVofthelenstokeepthetargetobjectataconstantsizeonthescreen,regardlessofcameraandtargetposition.
InheritanceHierarchySystemObjectObjectComponentBehaviourMonoBehaviourCinemachineCinemachineExtensionCinemachineCinemachineFollowZoom
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheCinemachineFollowZoomtypeexposesthefollowingmembers.
Constructors Name Description
[DocumentationSortingAttribute(16f,DocumentationSortingAttribute
[ExecuteInEditMode]
[AddComponentMenu("")]
[SaveDuringPlayAttribute]
publicclassCinemachineFollowZoom:CinemachineExtension
CopyC# JavaScript
CinemachineFollowZoom
Top
Properties Name Description
VirtualCamera GettheassociatedCinemachineVirtualCameraBase(InheritedfromCinemachineExtension.)
Top
Methods Name Description
Awake Connecttovirtualcamerapipeline.implementation(InheritedfromCinemachineExtension
GetAllExtraStatesT Ineffeicientmethodtogetallextrastateinforforallvcams.only,notruntime!(InheritedfromCinemachineExtension
GetExtraStateT Becauseextensionscanbeplacedonmanagercamsandwillinthatforallthevcamchildren,vcam-specificstateinformationdefineaclasstoholdyourstateinfo(InheritedfromCinemachineExtension
OnDestroy Disconnectfromvirtualcamerapipeline.baseimplementation(InheritedfromCinemachineExtension
PostPipelineStageCallback Callbacktopreformthezoomadjustment(OverridesCinemachineExtensionPostPipelineStageCallback(CinemachineVirtualCameraBase,
CinemachineCoreStage,CameraState
Top
Fields Name Description
m_Damping Increasethisvaluetosoftentheaggressivenessofthefollow-zoom.Smallnumbersaremoreresponsive,largernumbersgiveamoreheavyslowlyrespondingcamera.
m_MaxFOV WillnotgenerateanFOVlargetthanthis.
m_MinFOV WillnotgenerateanFOVsmallerthanthis.
m_Width Theshotwidthtomaintain,inworldunits,attargetdistance.FOVwillbeadustedasfaraspossibletomaintainthiswidthatthetargetdistancefromthecamera.
Top
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineFollowZoomConstructor
[Missing<summary>documentationfor"M:Cinemachine.CinemachineFollowZoom.#ctor"]
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineFollowZoomClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicCinemachineFollowZoom()
CopyC# JavaScript
Cinemachine
CinemachineFollowZoomProperties
TheCinemachineFollowZoomtypeexposesthefollowingmembers.
Properties Name Description
VirtualCamera GettheassociatedCinemachineVirtualCameraBase(InheritedfromCinemachineExtension.)
Top
SeeAlsoReferenceCinemachineFollowZoomClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineFollowZoomMethods
TheCinemachineFollowZoomtypeexposesthefollowingmembers.
Methods Name Description
Awake Connecttovirtualcamerapipeline.implementation(InheritedfromCinemachineExtension
GetAllExtraStatesT Ineffeicientmethodtogetallextrastateinforforallvcams.only,notruntime!(InheritedfromCinemachineExtension
GetExtraStateT Becauseextensionscanbeplacedonmanagercamsandwillinthatforallthevcamchildren,vcam-specificstateinformationdefineaclasstoholdyourstateinfo(InheritedfromCinemachineExtension
OnDestroy Disconnectfromvirtualcamerapipeline.baseimplementation(InheritedfromCinemachineExtension
PostPipelineStageCallback Callbacktopreformthezoomadjustment(OverridesCinemachineExtensionPostPipelineStageCallback(CinemachineVirtualCameraBase,CinemachineCoreStage,CameraState
Top
SeeAlso
ReferenceCinemachineFollowZoomClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineFollowZoomPostPipelineStageCallbackMethod
Callbacktopreformthezoomadjustment
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
vcamType:CinemachineCinemachineVirtualCameraBase[Missing<paramname="vcam"/>documentationfor"M:Cinemachine.CinemachineFollowZoom.PostPipelineStageCallback(Cinemachine.CinemachineVirtualCameraBase,Cinemachine.CinemachineCore.Stage,Cinemachine.CameraState@,System.Single)"]
stageType:CinemachineCinemachineCoreStage[Missing<paramname="stage"/>documentationfor"M:Cinemachine.CinemachineFollowZoom.PostPipelineStageCallback(Cinemachine.CinemachineVirtualCameraBase,Cinemachine.CinemachineCore.Stage,Cinemachine.CameraState@,System.Single)"]
stateType:CinemachineCameraState[Missing<paramname="state"/>documentationfor"M:Cinemachine.CinemachineFollowZoom.PostPipelineStageCallback(Cinemachine.CinemachineVirtualCameraBase,Cinemachine.CinemachineCore.Stage,Cinemachine.CameraState@,System.Single)"]
protectedoverridevoidPostPipelineStageCallback(
CinemachineVirtualCameraBasevcam,
CinemachineCoreStagestage,
refCameraStatestate,
floatdeltaTime
)
CopyC# JavaScript
deltaTimeType:SystemSingle[Missing<paramname="deltaTime"/>documentationfor"M:Cinemachine.CinemachineFollowZoom.PostPipelineStageCallback(Cinemachine.CinemachineVirtualCameraBase,Cinemachine.CinemachineCore.Stage,Cinemachine.CameraState@,System.Single)"]
SeeAlsoReferenceCinemachineFollowZoomClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineFollowZoomFields
TheCinemachineFollowZoomtypeexposesthefollowingmembers.
Fields Name Description
m_Damping Increasethisvaluetosoftentheaggressivenessofthefollow-zoom.Smallnumbersaremoreresponsive,largernumbersgiveamoreheavyslowlyrespondingcamera.
m_MaxFOV WillnotgenerateanFOVlargetthanthis.
m_MinFOV WillnotgenerateanFOVsmallerthanthis.
m_Width Theshotwidthtomaintain,inworldunits,attargetdistance.FOVwillbeadustedasfaraspossibletomaintainthiswidthatthetargetdistancefromthecamera.
Top
SeeAlsoReferenceCinemachineFollowZoomClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineFollowZoomm_DampingField
Increasethisvaluetosoftentheaggressivenessofthefollow-zoom.Smallnumbersaremoreresponsive,largernumbersgiveamoreheavyslowlyrespondingcamera.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineFollowZoomClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[RangeAttribute(0f,20f)]
[TooltipAttribute("Increasethisvaluetosoftentheaggressivenessofthefollow-zoom.Smallnumbersaremoreresponsive,largernumbersgiveamoreheavyslowlyrespondingcamera.")]
publicfloatm_Damping
CopyC# JavaScript
Cinemachine
CinemachineFollowZoomm_MaxFOVField
WillnotgenerateanFOVlargetthanthis.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineFollowZoomClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[RangeAttribute(1f,179f)]
[TooltipAttribute("UpperlimitfortheFOVthatthisbehaviourwillgenerate.")]
publicfloatm_MaxFOV
CopyC# JavaScript
Cinemachine
CinemachineFollowZoomm_MinFOVField
WillnotgenerateanFOVsmallerthanthis.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineFollowZoomClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[RangeAttribute(1f,179f)]
[TooltipAttribute("LowerlimitfortheFOVthatthisbehaviourwillgenerate.")]
publicfloatm_MinFOV
CopyC# JavaScript
Cinemachine
CinemachineFollowZoomm_WidthField
Theshotwidthtomaintain,inworldunits,attargetdistance.FOVwillbeadustedasfaraspossibletomaintainthiswidthatthetargetdistancefromthecamera.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineFollowZoomClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Theshotwidthtomaintain,inworldunits,attargetdistance.")]
publicfloatm_Width
CopyC# JavaScript
Cinemachine
CinemachineFramingTransposerClass
ThisisaCinemachineComponentintheBodysectionofthecomponentpipeline.Itsjobistopositionthecamerainafixedscreen-spacerelationshiptothevcam'sFollowtargetobject,withoffsetsanddamping.ThecamerawillbefirstmovedalongthecameraZaxisuntiltheFollowtargetisatthedesireddistancefromthecamera'sX-Yplane.ThecamerawillthenbemovedinitsXYplaneuntiltheFollowtargetisatthedesiredpointonthecamera'sscreen.TheFramingTansposerwillonlychangethecamera'spositioninspace.Itwillnotre-orientorotherwiseaimthecamera.Forthiscomponenttoworkproperly,thevcam'sLookAttargetmustbenull.TheFollowtargetwilldefinewhatthecameraislookingat.IftheFollowtargetisaCinemachineTargetGroup,thenadditionalcontrolswillbeavailabletodynamicallyadjustthecamera’sviewinordertoframetheentiregroup.Althoughthiscomponentwasdesignedfororthographiccameras,itworksequallywellwithpersectivecamerasandcanbeusedin3Denvironments.
InheritanceHierarchySystemObjectObjectComponentBehaviourMonoBehaviourCinemachineCinemachineComponentBaseCinemachineCinemachineFramingTransposer
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
SyntaxCopy
TheCinemachineFramingTransposertypeexposesthefollowingmembers.
Constructors Name Description
CinemachineFramingTransposer
Top
Properties Name Description
FollowTarget Returnstheownervcam'sFollowtarget.(InheritedfromCinemachineComponentBase.)
HardGuideRect InternalAPIfortheinspectoreditor
IsValid TrueifcomponentisenabledandhasavalidFollowtarget(OverridesCinemachineComponentBaseIsValid.)
LookAtTarget Returnstheownervcam'sLookAttarget.(Inheritedfrom
[DocumentationSortingAttribute(5.5f,DocumentationSortingAttribute
[ExecuteInEditMode]
[AddComponentMenu("")]
[RequireComponent(typeof(CinemachinePipeline
[SaveDuringPlayAttribute]
publicclassCinemachineFramingTransposer
CopyC# JavaScript
CinemachineComponentBase.)
m_LastBounds Foreditorvisulaizationofthecalculatedboundingboxofthegroup
m_lastBoundsMatrix Foreditorvisualizationofthecalculatedboundingboxofthegroup
SoftGuideRect InternalAPIfortheinspectoreditor
Stage GettheCinemachinePipelinestagethatthiscomponentimplements.AlwaysreturnstheBodystage(OverridesCinemachineComponentBaseStage.)
TargetGroup GetFollowtargetasCinemachineTargetGroup,ornulliftargetisnotagroup
VcamState Returnstheownervcam'sCameraState.(InheritedfromCinemachineComponentBase.)
VirtualCamera GettheassociatedCinemachineVirtualCameraBase(InheritedfromCinemachineComponentBase.)
Top
Methods Name Description
MutateCameraState Positionsthevirtualcameraaccordingtothetransposerrules.(OverridesCinemachineComponentBaseMutateCameraState(CameraState
Single).)
OnPositionDragged APIfortheeditor,toprocessapositiondragfromtheuser.classimplementationdoesnothing.(InheritedfromCinemachineComponentBase
Top
Fields Name Description
m_AdjustmentMode Howtoadjustthecameratogetthedesiredframing
m_BiasX Anon-zerobiaswillmovethetargtpositionawayfromthecenterofthesoftzone
m_BiasY Anon-zerobiaswillmovethetargtpositionawayfromthecenterofthesoftzone
m_CameraDistance ThedistancealongthecameraaxisthatwillbemaintainedfromtheFollowtarget
m_DeadZoneDepth Thecamerawillnotmovealongitsz-axisiftheFollowtargetiswithinthisdistanceofthespecifiedcameradistance
m_DeadZoneHeight Camerawillnotmove
verticallyifthetargetiswithinthisrangeoftheposition
m_DeadZoneWidth Camerawillnotmovehorizontallyifthetargetiswithinthisrangeoftheposition
m_GroupFramingMode Whatscreendimensionstoconsiderwhenframing
m_GroupFramingSize Howmuchofthescreentofillwiththeboundingboxofthetargets.
m_LookaheadSmoothing Controlsthesmoothnessofthelookaheadalgorithm.Largervaluessmoothoutjitterypredictionsandalsoincreasepredictionlag
m_LookaheadTime Thissettingwillinstructthecomposertoadjustitstargetoffsetbasedonthemotionofthetarget.Thecomposerwilllookatapointwhereitestimatesthetargetwillbethismanysecondsintothefuture.Notethatthissettingissensitivetonoisyanimation,andcanamplifythenoise,
resultinginundesirablecamerajitter.Ifthecamerajittersunacceptablywhenthetargetisinmotion,turndownthissetting,oranimatethetargetmoresmoothly.
m_MaxDollyIn Howmuchclosertothetargetcanthecamerago?
m_MaxDollyOut Howmuchfartherfromthetargetcanthecamerago?
m_MaximumDistance Setthistolimithowfarfromthetaregtthecameracanget
m_MaximumFOV IfadjustingFOV,willnotsettheFOVhigherthanthis
m_MaximumOrthoSize IfadjustingOrthographicSize,willnotsetithigherthanthis
m_MinimumDistance Setthistolimithowclosetothetargetthecameracanget
m_MinimumFOV IfadjustingFOV,willnotsettheFOVlowerthanthis
m_MinimumOrthoSize IfadjustingOrthographicSize,willnotsetitlowerthanthis
m_ScreenX Horizontalscreenpositionfortarget.Thecamerawillmovetopositionthetrackedobjecthere
m_ScreenY Verticalscreenpositionfortarget,Thecamerawillmovetotopositionthetrackedobjecthere
m_SoftZoneHeight Whentargetiswithinthisregion,camerawillgraduallymovetore-aligntowardsthedesiredposition,dependingonmthedampingspeed
m_SoftZoneWidth Whentargetiswithinthisregion,camerawillgraduallymovetore-aligntowardsthedesiredposition,dependingonmthedampingspeed
m_UnlimitedSoftZone
m_XDamping HowaggressivelythecameratriestomaintaintheoffsetintheX-axis.Smallnumbersaremore
responsive,rapidlytranslatingthecameratokeepthetarget'sx-axisoffset.Largernumbersgiveamoreheavyslowlyrespondingcamera.Usingdifferentsettingsperaxiscanyieldawiderangeofcamerabehaviors
m_YDamping HowaggressivelythecameratriestomaintaintheoffsetintheY-axis.Smallnumbersaremoreresponsive,rapidlytranslatingthecameratokeepthetarget'sy-axisoffset.Largernumbersgiveamoreheavyslowlyrespondingcamera.Usingdifferentsettingsperaxiscanyieldawiderangeofcamerabehaviors
m_ZDamping HowaggressivelythecameratriestomaintaintheoffsetintheZ-axis.Smallnumbersaremoreresponsive,rapidlytranslatingthecameratokeepthetarget'sz-axisoffset.Largernumbersgiveamore
heavyslowlyrespondingcamera.Usingdifferentsettingsperaxiscanyieldawiderangeofcamerabehaviors
OnGUICallback UsedbytheInspectorEditortodisplayon-screenguides.
Top
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineFramingTransposerConstructor
[Missing<summary>documentationfor"M:Cinemachine.CinemachineFramingTransposer.#ctor"]
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineFramingTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicCinemachineFramingTransposer()
CopyC# JavaScript
Cinemachine
CinemachineFramingTransposerProperties
TheCinemachineFramingTransposertypeexposesthefollowingmembers.
Properties Name Description
FollowTarget Returnstheownervcam'sFollowtarget.(InheritedfromCinemachineComponentBase.)
HardGuideRect InternalAPIfortheinspectoreditor
IsValid TrueifcomponentisenabledandhasavalidFollowtarget(OverridesCinemachineComponentBaseIsValid.)
LookAtTarget Returnstheownervcam'sLookAttarget.(InheritedfromCinemachineComponentBase.)
m_LastBounds Foreditorvisulaizationofthecalculatedboundingboxofthegroup
m_lastBoundsMatrix Foreditorvisualizationofthecalculatedboundingboxofthegroup
SoftGuideRect InternalAPIfortheinspectoreditor
Stage GettheCinemachinePipelinestagethatthiscomponentimplements.AlwaysreturnstheBodystage(OverridesCinemachineComponentBaseStage.)
TargetGroup GetFollowtargetasCinemachineTargetGroup,ornulliftargetisnotagroup
VcamState Returnstheownervcam'sCameraState.(InheritedfromCinemachineComponentBase.)
VirtualCamera GettheassociatedCinemachineVirtualCameraBase(InheritedfromCinemachineComponentBase.)
Top
SeeAlsoReferenceCinemachineFramingTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineFramingTransposerHardGuideRectProperty
InternalAPIfortheinspectoreditor
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Rect
SeeAlsoReferenceCinemachineFramingTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicRectHardGuideRect{get;set;}
CopyC# JavaScript
Cinemachine
CinemachineFramingTransposerIsValidProperty
TrueifcomponentisenabledandhasavalidFollowtarget
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Boolean
SeeAlsoReferenceCinemachineFramingTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverrideboolIsValid{get;}
CopyC# JavaScript
Cinemachine
CinemachineFramingTransposerm_LastBoundsProperty
Foreditorvisulaizationofthecalculatedboundingboxofthegroup
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Bounds
SeeAlsoReferenceCinemachineFramingTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicBoundsm_LastBounds{get;}
CopyC# JavaScript
Cinemachine
CinemachineFramingTransposerm_lastBoundsMatrixProperty
Foreditorvisualizationofthecalculatedboundingboxofthegroup
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Matrix4x4
SeeAlsoReferenceCinemachineFramingTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicMatrix4x4m_lastBoundsMatrix{get;}
CopyC# JavaScript
Cinemachine
CinemachineFramingTransposerSoftGuideRectProperty
InternalAPIfortheinspectoreditor
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Rect
SeeAlsoReferenceCinemachineFramingTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicRectSoftGuideRect{get;set;}
CopyC# JavaScript
Cinemachine
CinemachineFramingTransposerStageProperty
GettheCinemachinePipelinestagethatthiscomponentimplements.AlwaysreturnstheBodystage
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:CinemachineCoreStage
SeeAlsoReferenceCinemachineFramingTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverrideCinemachineCoreStageStage{get;}
CopyC# JavaScript
Cinemachine
CinemachineFramingTransposerTargetGroupProperty
GetFollowtargetasCinemachineTargetGroup,ornulliftargetisnotagroup
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:CinemachineTargetGroup
SeeAlsoReferenceCinemachineFramingTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicCinemachineTargetGroupTargetGroup{get;}
CopyC# JavaScript
Cinemachine
CinemachineFramingTransposerMethods
TheCinemachineFramingTransposertypeexposesthefollowingmembers.
Methods Name Description
MutateCameraState Positionsthevirtualcameraaccordingtothetransposerrules.(OverridesCinemachineComponentBaseMutateCameraState(CameraStateSingle).)
OnPositionDragged APIfortheeditor,toprocessapositiondragfromtheuser.classimplementationdoesnothing.(InheritedfromCinemachineComponentBase
Top
SeeAlsoReferenceCinemachineFramingTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineFramingTransposerMutateCameraStateMethod
Positionsthevirtualcameraaccordingtothetransposerrules.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
curStateType:CinemachineCameraStateThecurrentcamerastate
deltaTimeType:SystemSingleUsedfordamping.Iflessthan0,nodampingisdone.
SeeAlsoReferenceCinemachineFramingTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverridevoidMutateCameraState(
refCameraStatecurState,
floatdeltaTime
)
CopyC# JavaScript
Cinemachine
CinemachineFramingTransposerFields
TheCinemachineFramingTransposertypeexposesthefollowingmembers.
Fields Name Description
m_AdjustmentMode Howtoadjustthecameratogetthedesiredframing
m_BiasX Anon-zerobiaswillmovethetargtpositionawayfromthecenterofthesoftzone
m_BiasY Anon-zerobiaswillmovethetargtpositionawayfromthecenterofthesoftzone
m_CameraDistance ThedistancealongthecameraaxisthatwillbemaintainedfromtheFollowtarget
m_DeadZoneDepth Thecamerawillnotmovealongitsz-axisiftheFollowtargetiswithinthisdistanceofthespecifiedcameradistance
m_DeadZoneHeight Camerawillnotmoveverticallyifthetargetiswithinthisrangeoftheposition
m_DeadZoneWidth Camerawillnotmovehorizontallyifthetargetiswithinthisrangeoftheposition
m_GroupFramingMode Whatscreendimensionstoconsiderwhenframing
m_GroupFramingSize Howmuchofthescreentofillwiththeboundingboxofthetargets.
m_LookaheadSmoothing Controlsthesmoothnessofthelookaheadalgorithm.Largervaluessmoothoutjitterypredictionsandalsoincreasepredictionlag
m_LookaheadTime Thissettingwillinstructthecomposertoadjustitstargetoffsetbasedonthemotionofthetarget.Thecomposerwilllookatapointwhereitestimatesthetargetwillbethismanysecondsintothefuture.Notethatthissettingissensitiveto
noisyanimation,andcanamplifythenoise,resultinginundesirablecamerajitter.Ifthecamerajittersunacceptablywhenthetargetisinmotion,turndownthissetting,oranimatethetargetmoresmoothly.
m_MaxDollyIn Howmuchclosertothetargetcanthecamerago?
m_MaxDollyOut Howmuchfartherfromthetargetcanthecamerago?
m_MaximumDistance Setthistolimithowfarfromthetaregtthecameracanget
m_MaximumFOV IfadjustingFOV,willnotsettheFOVhigherthanthis
m_MaximumOrthoSize IfadjustingOrthographicSize,willnotsetithigherthanthis
m_MinimumDistance Setthistolimithowclosetothetargetthecameracanget
m_MinimumFOV IfadjustingFOV,willnotsettheFOVlowerthanthis
m_MinimumOrthoSize IfadjustingOrthographicSize,willnotsetitlowerthanthis
m_ScreenX Horizontalscreenpositionfortarget.Thecamerawillmovetopositionthetrackedobjecthere
m_ScreenY Verticalscreenpositionfortarget,Thecamerawillmovetotopositionthetrackedobjecthere
m_SoftZoneHeight Whentargetiswithinthisregion,camerawillgraduallymovetore-aligntowardsthedesiredposition,dependingonmthedampingspeed
m_SoftZoneWidth Whentargetiswithinthisregion,camerawillgraduallymovetore-aligntowardsthedesiredposition,dependingonmthedampingspeed
m_UnlimitedSoftZone
m_XDamping HowaggressivelythecameratriestomaintaintheoffsetintheX-axis.Smallnumbersaremore
responsive,rapidlytranslatingthecameratokeepthetarget'sx-axisoffset.Largernumbersgiveamoreheavyslowlyrespondingcamera.Usingdifferentsettingsperaxiscanyieldawiderangeofcamerabehaviors
m_YDamping HowaggressivelythecameratriestomaintaintheoffsetintheY-axis.Smallnumbersaremoreresponsive,rapidlytranslatingthecameratokeepthetarget'sy-axisoffset.Largernumbersgiveamoreheavyslowlyrespondingcamera.Usingdifferentsettingsperaxiscanyieldawiderangeofcamerabehaviors
m_ZDamping HowaggressivelythecameratriestomaintaintheoffsetintheZ-axis.Smallnumbersaremoreresponsive,rapidlytranslatingthecameratokeepthetarget'sz-axisoffset.Largernumbersgiveamore
heavyslowlyrespondingcamera.Usingdifferentsettingsperaxiscanyieldawiderangeofcamerabehaviors
OnGUICallback UsedbytheInspectorEditortodisplayon-screenguides.
Top
SeeAlsoReferenceCinemachineFramingTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineFramingTransposerm_AdjustmentModeField
Howtoadjustthecameratogetthedesiredframing
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachineFramingTransposerAdjustmentMode
SeeAlsoReferenceCinemachineFramingTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Howtoadjustthecameratogetthedesiredframing.Youcanzoom,dollyin/out,ordoboth.")]
publicCinemachineFramingTransposerAdjustmentModem_AdjustmentMode
CopyC# JavaScript
Cinemachine
CinemachineFramingTransposerm_BiasXField
Anon-zerobiaswillmovethetargtpositionawayfromthecenterofthesoftzone
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineFramingTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[RangeAttribute(-0.5f,0.5f)]
[TooltipAttribute("Anon-zerobiaswillmovethetargetpositionhorizontallyawayfromthecenterofthesoftzone.")]
publicfloatm_BiasX
CopyC# JavaScript
Cinemachine
CinemachineFramingTransposerm_BiasYField
Anon-zerobiaswillmovethetargtpositionawayfromthecenterofthesoftzone
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineFramingTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[RangeAttribute(-0.5f,0.5f)]
[TooltipAttribute("Anon-zerobiaswillmovethetargetpositionverticallyawayfromthecenterofthesoftzone.")]
publicfloatm_BiasY
CopyC# JavaScript
Cinemachine
CinemachineFramingTransposerm_CameraDistanceField
ThedistancealongthecameraaxisthatwillbemaintainedfromtheFollowtarget
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineFramingTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("ThedistancealongthecameraaxisthatwillbemaintainedfromtheFollowtarget")]
publicfloatm_CameraDistance
CopyC# JavaScript
Cinemachine
CinemachineFramingTransposerm_DeadZoneDepthField
Thecamerawillnotmovealongitsz-axisiftheFollowtargetiswithinthisdistanceofthespecifiedcameradistance
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineFramingTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Thecamerawillnotmovealongitsz-axisiftheFollowtargetiswithinthisdistanceofthespecifiedcameradistance")]
[FormerlySerializedAsAttribute("m_DistanceDeadZoneSize")]
publicfloatm_DeadZoneDepth
CopyC# JavaScript
Cinemachine
CinemachineFramingTransposerm_DeadZoneHeightField
Camerawillnotmoveverticallyifthetargetiswithinthisrangeoftheposition
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineFramingTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[RangeAttribute(0f,1f)]
[TooltipAttribute("Camerawillnotmoveverticallyifthetargetiswithinthisrangeoftheposition.")]
publicfloatm_DeadZoneHeight
CopyC# JavaScript
Cinemachine
CinemachineFramingTransposerm_DeadZoneWidthField
Camerawillnotmovehorizontallyifthetargetiswithinthisrangeoftheposition
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineFramingTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[SpaceAttribute]
[RangeAttribute(0f,1f)]
[TooltipAttribute("Camerawillnotmovehorizontallyifthetargetiswithinthisrangeoftheposition.")]
publicfloatm_DeadZoneWidth
CopyC# JavaScript
Cinemachine
CinemachineFramingTransposerm_GroupFramingModeField
Whatscreendimensionstoconsiderwhenframing
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachineFramingTransposerFramingMode
SeeAlsoReferenceCinemachineFramingTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[SpaceAttribute]
[TooltipAttribute("Whatscreendimensionstoconsiderwhenframing.CanbeHorizontal,Vertical,orboth")]
[FormerlySerializedAsAttribute("m_FramingMode")]
publicCinemachineFramingTransposerFramingModem_GroupFramingMode
CopyC# JavaScript
Cinemachine
CinemachineFramingTransposerm_GroupFramingSizeField
Howmuchofthescreentofillwiththeboundingboxofthetargets.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineFramingTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Theboundingboxofthetargetsshouldoccupythisamountofthescreenspace.1meansfillthewholescreen.0.5meansfillhalfthescreen,etc.")]
publicfloatm_GroupFramingSize
CopyC# JavaScript
Cinemachine
CinemachineFramingTransposerm_LookaheadSmoothingField
Controlsthesmoothnessofthelookaheadalgorithm.Largervaluessmoothoutjitterypredictionsandalsoincreasepredictionlag
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineFramingTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Controlsthesmoothnessofthelookaheadalgorithm.Largervaluessmoothoutjitterypredictionsandalsoincreasepredictionlag")]
[RangeAttribute(3f,30f)]
publicfloatm_LookaheadSmoothing
CopyC# JavaScript
Cinemachine
CinemachineFramingTransposerm_LookaheadTimeField
Thissettingwillinstructthecomposertoadjustitstargetoffsetbasedonthemotionofthetarget.Thecomposerwilllookatapointwhereitestimatesthetargetwillbethismanysecondsintothefuture.Notethatthissettingissensitivetonoisyanimation,andcanamplifythenoise,resultinginundesirablecamerajitter.Ifthecamerajittersunacceptablywhenthetargetisinmotion,turndownthissetting,oranimatethetargetmoresmoothly.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineFramingTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Thissettingwillinstructthecomposertoadjustitstargetoffsetbasedonthemotionofthetarget.Thecomposerwilllookatapointwhereitestimatesthetargetwillbethismanysecondsintothefuture.Notethatthissettingissensitivetonoisyanimation,andcanamplifythenoise,resultinginundesirablecamerajitter.Ifthecamerajittersunacceptablywhenthetargetisinmotion,turndownthissetting,oranimatethetargetmoresmoothly.")]
[RangeAttribute(0f,1f)]
publicfloatm_LookaheadTime
CopyC# JavaScript
Cinemachine
CinemachineFramingTransposerm_MaxDollyInField
Howmuchclosertothetargetcanthecamerago?
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineFramingTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Themaximumdistancetowardthetargetthatthisbehaviourisallowedtomovethecamera.")]
publicfloatm_MaxDollyIn
CopyC# JavaScript
Cinemachine
CinemachineFramingTransposerm_MaxDollyOutField
Howmuchfartherfromthetargetcanthecamerago?
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineFramingTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Themaximumdistanceawaythetargetthatthisbehaviourisallowedtomovethecamera.")]
publicfloatm_MaxDollyOut
CopyC# JavaScript
Cinemachine
CinemachineFramingTransposerm_MaximumDistanceField
Setthistolimithowfarfromthetaregtthecameracanget
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineFramingTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Setthistolimithowfarfromthetargetthecameracanget.")]
publicfloatm_MaximumDistance
CopyC# JavaScript
Cinemachine
CinemachineFramingTransposerm_MaximumFOVField
IfadjustingFOV,willnotsettheFOVhigherthanthis
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineFramingTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[RangeAttribute(1f,179f)]
[TooltipAttribute("IfadjustingFOV,willnotsettheFOVhigherthanthis.")]
publicfloatm_MaximumFOV
CopyC# JavaScript
Cinemachine
CinemachineFramingTransposerm_MaximumOrthoSizeField
IfadjustingOrthographicSize,willnotsetithigherthanthis
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineFramingTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("IfadjustingOrthographicSize,willnotsetithigherthanthis.")]
publicfloatm_MaximumOrthoSize
CopyC# JavaScript
Cinemachine
CinemachineFramingTransposerm_MinimumDistanceField
Setthistolimithowclosetothetargetthecameracanget
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineFramingTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Setthistolimithowclosetothetargetthecameracanget.")]
publicfloatm_MinimumDistance
CopyC# JavaScript
Cinemachine
CinemachineFramingTransposerm_MinimumFOVField
IfadjustingFOV,willnotsettheFOVlowerthanthis
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineFramingTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[RangeAttribute(1f,179f)]
[TooltipAttribute("IfadjustingFOV,willnotsettheFOVlowerthanthis.")]
publicfloatm_MinimumFOV
CopyC# JavaScript
Cinemachine
CinemachineFramingTransposerm_MinimumOrthoSizeField
IfadjustingOrthographicSize,willnotsetitlowerthanthis
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineFramingTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("IfadjustingOrthographicSize,willnotsetitlowerthanthis.")]
publicfloatm_MinimumOrthoSize
CopyC# JavaScript
Cinemachine
CinemachineFramingTransposerm_ScreenXField
Horizontalscreenpositionfortarget.Thecamerawillmovetopositionthetrackedobjecthere
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineFramingTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[SpaceAttribute]
[RangeAttribute(0f,1f)]
[TooltipAttribute("Horizontalscreenpositionfortarget.Thecamerawillmovetopositionthetrackedobjecthere.")]
publicfloatm_ScreenX
CopyC# JavaScript
Cinemachine
CinemachineFramingTransposerm_ScreenYField
Verticalscreenpositionfortarget,Thecamerawillmovetotopositionthetrackedobjecthere
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineFramingTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[RangeAttribute(0f,1f)]
[TooltipAttribute("Verticalscreenpositionfortarget,Thecamerawillmovetopositionthetrackedobjecthere.")]
publicfloatm_ScreenY
CopyC# JavaScript
Cinemachine
CinemachineFramingTransposerm_SoftZoneHeightField
Whentargetiswithinthisregion,camerawillgraduallymovetore-aligntowardsthedesiredposition,dependingonmthedampingspeed
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineFramingTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[RangeAttribute(0f,2f)]
[TooltipAttribute("Whentargetiswithinthisregion,camerawillgraduallymoveverticallytore-aligntowardsthedesiredposition,dependingonthedampingspeed.")]
publicfloatm_SoftZoneHeight
CopyC# JavaScript
Cinemachine
CinemachineFramingTransposerm_SoftZoneWidthField
Whentargetiswithinthisregion,camerawillgraduallymovetore-aligntowardsthedesiredposition,dependingonmthedampingspeed
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineFramingTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[RangeAttribute(0f,2f)]
[TooltipAttribute("Whentargetiswithinthisregion,camerawillgraduallymovehorizontallytore-aligntowardsthedesiredposition,dependingonthedampingspeed.")]
publicfloatm_SoftZoneWidth
CopyC# JavaScript
Cinemachine
CinemachineFramingTransposerm_UnlimitedSoftZoneField
[Missing<summary>documentationfor"F:Cinemachine.CinemachineFramingTransposer.m_UnlimitedSoftZone"]
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Boolean
SeeAlsoReferenceCinemachineFramingTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[SpaceAttribute]
[TooltipAttribute("Ifchecked,thenthensoftzonewillbeunlimitedinsize.")]
publicboolm_UnlimitedSoftZone
CopyC# JavaScript
Cinemachine
CinemachineFramingTransposerm_XDampingField
HowaggressivelythecameratriestomaintaintheoffsetintheX-axis.Smallnumbersaremoreresponsive,rapidlytranslatingthecameratokeepthetarget'sx-axisoffset.Largernumbersgiveamoreheavyslowlyrespondingcamera.Usingdifferentsettingsperaxiscanyieldawiderangeofcamerabehaviors
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineFramingTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[RangeAttribute(0f,20f)]
[TooltipAttribute("HowaggressivelythecameratriestomaintaintheoffsetintheX-axis.Smallnumbersaremoreresponsive,rapidlytranslatingthecameratokeepthetarget'sx-axisoffset.Largernumbersgiveamoreheavyslowlyrespondingcamera.Usingdifferentsettingsperaxiscanyieldawiderangeofcamerabehaviors.")]
publicfloatm_XDamping
CopyC# JavaScript
Cinemachine
CinemachineFramingTransposerm_YDampingField
HowaggressivelythecameratriestomaintaintheoffsetintheY-axis.Smallnumbersaremoreresponsive,rapidlytranslatingthecameratokeepthetarget'sy-axisoffset.Largernumbersgiveamoreheavyslowlyrespondingcamera.Usingdifferentsettingsperaxiscanyieldawiderangeofcamerabehaviors
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineFramingTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[RangeAttribute(0f,20f)]
[TooltipAttribute("HowaggressivelythecameratriestomaintaintheoffsetintheY-axis.Smallnumbersaremoreresponsive,rapidlytranslatingthecameratokeepthetarget'sy-axisoffset.Largernumbersgiveamoreheavyslowlyrespondingcamera.Usingdifferentsettingsperaxiscanyieldawiderangeofcamerabehaviors.")]
publicfloatm_YDamping
CopyC# JavaScript
Cinemachine
CinemachineFramingTransposerm_ZDampingField
HowaggressivelythecameratriestomaintaintheoffsetintheZ-axis.Smallnumbersaremoreresponsive,rapidlytranslatingthecameratokeepthetarget'sz-axisoffset.Largernumbersgiveamoreheavyslowlyrespondingcamera.Usingdifferentsettingsperaxiscanyieldawiderangeofcamerabehaviors
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineFramingTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[RangeAttribute(0f,20f)]
[TooltipAttribute("HowaggressivelythecameratriestomaintaintheoffsetintheZ-axis.Smallnumbersaremoreresponsive,rapidlytranslatingthecameratokeepthetarget'sz-axisoffset.Largernumbersgiveamoreheavyslowlyrespondingcamera.Usingdifferentsettingsperaxiscanyieldawiderangeofcamerabehaviors.")]
publicfloatm_ZDamping
CopyC# JavaScript
Cinemachine
CinemachineFramingTransposerOnGUICallbackField
UsedbytheInspectorEditortodisplayon-screenguides.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Action
SeeAlsoReferenceCinemachineFramingTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[NoSaveDuringPlayAttribute]
[HideInInspector]
publicActionOnGUICallback
CopyC# JavaScript
Cinemachine
CinemachineFramingTransposerAdjustmentModeEnumeration
Howtoadjustthecameratogetthedesiredframing
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Members Membername Value Description
ZoomOnly 0 Donotmovethecamera,onlyadjusttheFOV.
DollyOnly 1 Justmovethecamera,don'tchangetheFOV.
DollyThenZoom 2 Movethecameraasmuchaspermittedbytheranges,thenadjusttheFOVifnecessarytomaketheshot.
publicenumAdjustmentMode
CopyC# JavaScript
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineFramingTransposerFramingModeEnumeration
Whatscreendimensionstoconsiderwhenframing
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Members Membername Value Description
Horizontal 0 Consideronlythehorizontaldimension.Verticalframingisignored.
Vertical 1 Consideronlytheverticaldimension.Horizontalframingisignored.
HorizontalAndVertical 2 Thelargerofthe
[DocumentationSortingAttribute(4.01f,DocumentationSortingAttribute
publicenumFramingMode
CopyC# JavaScript
horizontalandverticaldimensionswilldominate,togetthebestfit.
None 3 Don'tdoanyframingadjustment
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineFreeLookClass
ACinemachineCameragearedtowardsa3rdpersoncameraexperience.Thecameraorbitsarounditssubjectwiththreeseparatecamerarigsdefiningringsaroundthetarget.Eachrighasitsownradius,heightoffset,composer,andlenssettings.Dependingonthecamera'spositionalongthesplineconnectingthesethreerigs,thesesettingsareinterpolatedtogivethefinalcamerapositionandstate.
InheritanceHierarchySystemObjectObjectComponentBehaviourMonoBehaviourCinemachineCinemachineVirtualCameraBaseCinemachineCinemachineFreeLook
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheCinemachineFreeLooktypeexposesthefollowingmembers.
Constructors
[DocumentationSortingAttribute(11f,DocumentationSortingAttribute
[ExecuteInEditMode]
[DisallowMultipleComponent]
[AddComponentMenu("Cinemachine/CinemachineFreeLook")]
publicclassCinemachineFreeLook:CinemachineVirtualCameraBase
CopyC# JavaScript
Name Description
CinemachineFreeLook
Top
Properties Name Description
Description Getsabriefdebugdescriptionofthisvirtualcamera,forusewhendisplayiongdebuginfo(InheritedfromCinemachineVirtualCameraBase
Follow GetthecurrentFollowtarget.Returnsparent'sFollowifparentisnon-nullandnospecificFollowdefinedforthiscamera(OverridesCinemachineVirtualCameraBase
LiveChildOrSelf Returnstherigwiththegreatestweight(OverridesCinemachineVirtualCameraBase
LookAt GetthecurrentLookAttarget.LookAtifparentisnon-nullandnospecificLookAtdefinedforthiscamera(OverridesCinemachineVirtualCameraBase
Name GetthenameoftheVirtualCamera.implementationreturnstheownerGameObject'sname.(InheritedfromCinemachineVirtualCameraBase
ParentCamera Supportformeta-virtual-cameras.situationwhereavirtualcameraisinfactthepublicfaceofaprivatearmyofvirtualcameras,whichitmanagesonitsown.Thismethodgets
theVirtualCameraowner,ifany.areimplementedasTransformchildrenoftheparentvcam.(InheritedfromCinemachineVirtualCameraBase
PreviousStateIsValid SetthistoforcethenextupdatetoignoredeltaTimeandresetitself(InheritedfromCinemachineVirtualCameraBase
Priority GetthePriorityofthevirtualcamera.determinesitsplacementintheCinemachineCore'squeueofeligibleshots.(InheritedfromCinemachineVirtualCameraBase
RigNames Namesofthe3childrigs
State Thecacmerastate,whichwillbeablendofthechildrigstates(OverridesCinemachineVirtualCameraBase
ValidatingStreamVersion Versionthatwaslaststreamed,forupgradinglegacy(InheritedfromCinemachineVirtualCameraBase
VirtualCameraGameObject TheGameObjectowneroftheVirtualCamerabehaviour.(InheritedfromCinemachineVirtualCameraBase
Top
Methods Name Description
AddPostPipelineStageHook Adelegatetohookintothestatecalculationpipeline.pipeline.SeeCinemachineCore.Stage.(InheritedfromCinemachineVirtualCameraBase
GetLocalPositionForCameraFromInput Returnsthelocalpositionofthecameraalongthesplineusedtoconnectthecurrentheadingofthe
GetRig Getachildrig
InvokePostPipelineStageCallback InvokesthePostPipelineStageDelegateforthiscamera,andupthehierarchyforall(InheritedfromCinemachineVirtualCameraBase
IsLiveChild Checkwhetherthevcamalivechildofthiscamera.(OverridesCinemachineVirtualCameraBase
MoveToTopOfPrioritySubqueue Whenmultiplevirtualcamerashavethehighestpriority,thereisLivecameraifitsharesthehighestpriorityinthequeuewithitspeers.themostrecentonegoestothetopoftheprioritysubqueue.anditspeerssharethehighestpriority,thenthisvcamwillbecomeLive.(InheritedfromCinemachineVirtualCameraBase
OnDestroy Makessurethatthechildrigsgetdestroyedinanundo-firndlymanner.(OverridesCinemachineVirtualCameraBase
OnDisable Baseclassimplementationmakessurethepriorityqueueremainsup-to-date.(InheritedfromCinemachineVirtualCameraBase
OnEnable Updatesthechildrigcache(OverridesCinemachineVirtualCameraBase
OnTransformParentChanged Baseclassimplementationmakessurethepriorityqueueremainsup-to-date.(InheritedfromCinemachineVirtualCameraBase
OnTransitionFromCamera IfwearetransitioningfromanotherFreeLook,grabtheaxisvaluesfromit.(OverridesCinemachineVirtualCameraBase
OnValidate Enforceboundsforfields,whenchangedininspector.(OverridesCinemachineVirtualCameraBase
PreUpdateChildCameras Thisiscalledpriortotheupdatingofthevcam'schildcameras,areupdatingonFixedUpdate,thenthiswillnotnecessarilybecalledLateUpdate.Thisimplementationpushestheaxisvaluestotherigs.(OverridesCinemachineVirtualCameraBase
RemovePostPipelineStageHook RemoveaPipelinestagehookcallback.(OverridesCinemachineVirtualCameraBase
ResolveFollow Returnsthisvcam'sFollowtarget,orifthatisnull,willretrun(InheritedfromCinemachineVirtualCameraBase
ResolveLookAt Returnsthisvcam'sLookAttarget,orifthatisnull,willretrun(InheritedfromCinemachineVirtualCameraBase
Start Baseclassimplementationdoesnothing.(InheritedfromCinemachineVirtualCameraBase
Update Baseclassimplementationmakessurethepriorityqueueremainsup-to-date.(InheritedfromCinemachineVirtualCameraBase
UpdateCameraState CalledbyCinemachineCoreatdesignatedupdatetimeupdated,andablendcalculated,dependingonthevalueoftheYaxis.(OverridesCinemachineVirtualCameraBase
Top
Fields Name Description
CinemachineGUIDebuggerCallback Thisisdeprecated.Itisheretosupportthesoon-to-be-removedCinemachineDebuggerintheEditor.(InheritedfromCinemachineVirtualCameraBase
CreateRigOverride Overridecomponentpipelinecreation.ThisneedstobedonebytheeditortosupportUndo.TheoverridemustdoexactlythesamethingastheCreatePipelinemethodinthisclass.
DestroyRigOverride Overridecomponentpipelinedestruction.ThisneedstobedonebytheeditortosupportUndo.
m_BindingMode Thecoordinatespacetousewheninterpretingtheoffsetfromthetarget
m_CommonLens Ifenabled,thislenssettingwillapplytoallthreechildrigs,otherwisethechildriglenssettingswillbeused
m_ExcludedPropertiesInInspector Inspectorcontrol-UseforhidingsectionsoftheInspectorUI.(InheritedfromCinemachineVirtualCameraBase
m_Follow Objectforthecamerachildrenwantstomovewith(thebodytarget)
m_Heading ThedefinitionofForward.Camerawillfollowbehind
m_Lens SpecifiesthelenspropertiesofthisVirtualCamera.ThisgenerallymirrorstheUnityCamera'slenssettings,andwillbeusedtodrivetheUnitycamerawhenthevcamisactive
m_LockStageInInspector Inspectorcontrol-UseforenablingsectionsoftheInspectorUI.(InheritedfromCinemachineVirtualCameraBase
m_LookAt Objectforthecamerachildrentolookat(theaimtarget)
m_Orbits Theradiusandheightofthethreeorbitingrigs
m_Priority Theprioritywilldeterminewhichcamerabecomesactivebasedonthestateofothercamerasandthiscamera.Highernumbershavegreaterpriority.(InheritedfromCinemachineVirtualCameraBase
m_RecenterToTargetHeading ControlshowautomaticrecenteringoftheXaxisisaccomplished
m_SplineCurvature
m_XAxis TheHorizontalaxis.Valueis0..359.Thisispassedontotherigs'OrbitalTransposercomponent
m_YAxis TheVerticalaxis.Valueis0..1.Chooseshowtoblendthechildrigs
OnPostPipelineStage Adelegatetohookintothestatecalculationpipeline.Implementaionmustbesuretocallthisaftereachpipelinestage,toallowotherservicestohookintothepipeline.SeeCinemachineCore.Stage.(InheritedfromCinemachineVirtualCameraBase
Top
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineFreeLookConstructor
[Missing<summary>documentationfor"M:Cinemachine.CinemachineFreeLook.#ctor"]
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineFreeLookClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicCinemachineFreeLook()
CopyC# JavaScript
Cinemachine
CinemachineFreeLookProperties
TheCinemachineFreeLooktypeexposesthefollowingmembers.
Properties Name Description
Description Getsabriefdebugdescriptionofthisvirtualcamera,forusewhendisplayiongdebuginfo(InheritedfromCinemachineVirtualCameraBase
Follow GetthecurrentFollowtarget.Returnsparent'sFollowifparentisnon-nullandnospecificFollowdefinedforthiscamera(OverridesCinemachineVirtualCameraBase
LiveChildOrSelf Returnstherigwiththegreatestweight(OverridesCinemachineVirtualCameraBase
LookAt GetthecurrentLookAttarget.LookAtifparentisnon-nullandnospecificLookAtdefinedforthiscamera(OverridesCinemachineVirtualCameraBase
Name GetthenameoftheVirtualCamera.implementationreturnstheownerGameObject'sname.(InheritedfromCinemachineVirtualCameraBase
ParentCamera Supportformeta-virtual-cameras.
situationwhereavirtualcameraisinfactthepublicfaceofaprivatearmyofvirtualcameras,whichitmanagesonitsown.ThismethodgetstheVirtualCameraowner,ifany.areimplementedasTransformchildrenoftheparentvcam.(InheritedfromCinemachineVirtualCameraBase
PreviousStateIsValid SetthistoforcethenextupdatetoignoredeltaTimeandresetitself(InheritedfromCinemachineVirtualCameraBase
Priority GetthePriorityofthevirtualcamera.determinesitsplacementintheCinemachineCore'squeueofeligibleshots.(InheritedfromCinemachineVirtualCameraBase
RigNames Namesofthe3childrigs
State Thecacmerastate,whichwillbeablendofthechildrigstates(OverridesCinemachineVirtualCameraBase
ValidatingStreamVersion Versionthatwaslaststreamed,forupgradinglegacy(InheritedfromCinemachineVirtualCameraBase
VirtualCameraGameObject TheGameObjectowneroftheVirtualCamerabehaviour.(InheritedfromCinemachineVirtualCameraBase
Top
SeeAlsoReferenceCinemachineFreeLookClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineFreeLookFollowProperty
GetthecurrentFollowtarget.Returnsparent'sFollowifparentisnon-nullandnospecificFollowdefinedforthiscamera
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:TransformImplementsICinemachineCameraFollow
SeeAlsoReferenceCinemachineFreeLookClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverrideTransformFollow{get;set;}
CopyC# JavaScript
Cinemachine
CinemachineFreeLookLiveChildOrSelfProperty
Returnstherigwiththegreatestweight
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:ICinemachineCameraImplementsICinemachineCameraLiveChildOrSelf
SeeAlsoReferenceCinemachineFreeLookClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverrideICinemachineCameraLiveChildOrSelf{
CopyC# JavaScript
Cinemachine
CinemachineFreeLookLookAtProperty
GetthecurrentLookAttarget.Returnsparent'sLookAtifparentisnon-nullandnospecificLookAtdefinedforthiscamera
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:TransformImplementsICinemachineCameraLookAt
SeeAlsoReferenceCinemachineFreeLookClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverrideTransformLookAt{get;set;}
CopyC# JavaScript
Cinemachine
CinemachineFreeLookRigNamesProperty
Namesofthe3childrigs
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:String
SeeAlsoReferenceCinemachineFreeLookClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicstaticstring[]RigNames{get;}
CopyC# JavaScript
Cinemachine
CinemachineFreeLookStateProperty
Thecacmerastate,whichwillbeablendofthechildrigstates
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:CameraStateImplementsICinemachineCameraState
SeeAlsoReferenceCinemachineFreeLookClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverrideCameraStateState{get;}
CopyC# JavaScript
Cinemachine
CinemachineFreeLookMethods
TheCinemachineFreeLooktypeexposesthefollowingmembers.
Methods Name Description
AddPostPipelineStageHook Adelegatetohookintothestatecalculationpipeline.pipeline.SeeCinemachineCore.Stage.(InheritedfromCinemachineVirtualCameraBase
GetLocalPositionForCameraFromInput Returnsthelocalpositionofthecameraalongthesplineusedtoconnectthecurrentheadingofthe
GetRig Getachildrig
InvokePostPipelineStageCallback InvokesthePostPipelineStageDelegateforthiscamera,andupthehierarchyforall(InheritedfromCinemachineVirtualCameraBase
IsLiveChild Checkwhetherthevcamalivechildofthiscamera.(OverridesCinemachineVirtualCameraBase
MoveToTopOfPrioritySubqueue Whenmultiplevirtualcamerashavethehighestpriority,thereisLivecameraifitsharesthehighestpriorityinthequeuewithitspeers.themostrecentonegoestothetopoftheprioritysubqueue.anditspeerssharethehighestpriority,thenthisvcamwillbecomeLive.(InheritedfromCinemachineVirtualCameraBase
OnDestroy Makessurethatthechildrigsgetdestroyedinanundo-firndlymanner.(OverridesCinemachineVirtualCameraBase
OnDisable Baseclassimplementationmakessurethepriorityqueueremainsup-to-date.(InheritedfromCinemachineVirtualCameraBase
OnEnable Updatesthechildrigcache
(OverridesCinemachineVirtualCameraBase
OnTransformParentChanged Baseclassimplementationmakessurethepriorityqueueremainsup-to-date.(InheritedfromCinemachineVirtualCameraBase
OnTransitionFromCamera IfwearetransitioningfromanotherFreeLook,grabtheaxisvaluesfromit.(OverridesCinemachineVirtualCameraBase
OnValidate Enforceboundsforfields,whenchangedininspector.(OverridesCinemachineVirtualCameraBase
PreUpdateChildCameras Thisiscalledpriortotheupdatingofthevcam'schildcameras,areupdatingonFixedUpdate,thenthiswillnotnecessarilybecalledLateUpdate.Thisimplementationpushestheaxisvaluestotherigs.(OverridesCinemachineVirtualCameraBase
RemovePostPipelineStageHook RemoveaPipelinestagehookcallback.(OverridesCinemachineVirtualCameraBase
ResolveFollow Returnsthisvcam'sFollowtarget,orifthatisnull,willretrun(InheritedfromCinemachineVirtualCameraBase
ResolveLookAt Returnsthisvcam'sLookAttarget,orifthatisnull,willretrun(InheritedfromCinemachineVirtualCameraBase
Start Baseclassimplementationdoesnothing.(InheritedfromCinemachineVirtualCameraBase
Update Baseclassimplementationmakessurethepriorityqueueremainsup-to-date.(InheritedfromCinemachineVirtualCameraBase
UpdateCameraState CalledbyCinemachineCoreatdesignatedupdatetimeupdated,andablendcalculated,dependingonthevalueoftheYaxis.(OverridesCinemachineVirtualCameraBase
Top
SeeAlso
ReferenceCinemachineFreeLookClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineFreeLookGetLocalPositionForCameraFromInputMethod
Returnsthelocalpositionofthecameraalongthesplineusedtoconnectthethreecamerarigs.Doesnottakeintoaccountthecurrentheadingofthecamera(oritstarget)
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
tType:SystemSingleThet-valueforthecameraonitsspline.Internallyclampedtothevalue[0,1]
ReturnValueType:Vector3Thelocaloffset(back+up)ofthecameraWRTitstargetbasedonthesuppliedt-value
SeeAlsoReference
publicVector3GetLocalPositionForCameraFromInput(
floatt
)
CopyC# JavaScript
CinemachineFreeLookClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineFreeLookGetRigMethod
Getachildrig
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
iType:SystemInt32Rigindex.Canbe0,1,or2
ReturnValueType:CinemachineVirtualCameraTherig,ornullifindexisbad.
SeeAlsoReferenceCinemachineFreeLookClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicCinemachineVirtualCameraGetRig(
inti
)
CopyC# JavaScript
Cinemachine
CinemachineFreeLookIsLiveChildMethod
Checkwhetherthevcamalivechildofthiscamera.Returnstrueifthechildiscurrentlycontributingactivelytothecamerastate.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
vcamType:CinemachineICinemachineCameraTheVirtualCameratocheck
ReturnValueType:BooleanTrueifthevcamiscurrentlyactivelyinfluencingthestateofthisvcamImplementsICinemachineCameraIsLiveChild(ICinemachineCamera)
SeeAlsoReferenceCinemachineFreeLookClass
publicoverrideboolIsLiveChild(
ICinemachineCameravcam
)
CopyC# JavaScript
CinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineFreeLookOnDestroyMethod
Makessurethatthechildrigsgetdestroyedinanundo-firndlymanner.Invalidatestherigcache.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineFreeLookClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
protectedoverridevoidOnDestroy()
CopyC# JavaScript
Cinemachine
CinemachineFreeLookOnEnableMethod
Updatesthechildrigcache
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineFreeLookClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
protectedoverridevoidOnEnable()
CopyC# JavaScript
Cinemachine
CinemachineFreeLookOnTransitionFromCameraMethod
IfwearetransitioningfromanotherFreeLook,grabtheaxisvaluesfromit.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
fromCamType:CinemachineICinemachineCameraThecamerabeingdeactivated.Maybenull.
ImplementsICinemachineCameraOnTransitionFromCamera(ICinemachineCamera)
SeeAlsoReferenceCinemachineFreeLookClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverridevoidOnTransitionFromCamera(
ICinemachineCamerafromCam
)
CopyC# JavaScript
Cinemachine
CinemachineFreeLookOnValidateMethod
Enforceboundsforfields,whenchangedininspector.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineFreeLookClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
protectedoverridevoidOnValidate()
CopyC# JavaScript
Cinemachine
CinemachineFreeLookPreUpdateChildCamerasMethod
Thisiscalledpriortotheupdatingofthevcam'schildcameras,inordertoallowtheparenttoprepareitschildren.IfthechildrenareupdatingonFixedUpdate,thenthiswillnotnecessarilybecalledpriortoeveryFixedUpdate,butmightbecalledonLateUpdate.Thisimplementationpushestheaxisvaluestotherigs.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
worldUpType:Vector3DefaultworldUp,setbytheCinemachineBrain
deltaTimeType:SystemSingleDeltatimefortime-basedeffects(ignoreiflessthan0)
ImplementsICinemachineCameraPreUpdateChildCameras(Vector3,Single)
SeeAlso
publicoverridevoidPreUpdateChildCameras(
Vector3worldUp,
floatdeltaTime
)
CopyC# JavaScript
ReferenceCinemachineFreeLookClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineFreeLookRemovePostPipelineStageHookMethod
RemoveaPipelinestagehookcallback.Makesureitisremovedfromallthechildren.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
dType:CinemachineCinemachineVirtualCameraBaseOnPostPipelineStageDelegateThedelegatetoremove.
SeeAlsoReferenceCinemachineFreeLookClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverridevoidRemovePostPipelineStageHook(
CinemachineVirtualCameraBaseOnPostPipelineStageDelegate
)
CopyC# JavaScript
Cinemachine
CinemachineFreeLookUpdateCameraStateMethod
CalledbyCinemachineCoreatdesignatedupdatetimesothevcamcanpositionitselfandtrackitstargets.All3childrigsareupdated,andablendcalculated,dependingonthevalueoftheYaxis.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
worldUpType:Vector3DefaultworldUp,setbytheCinemachineBrain
deltaTimeType:SystemSingleDeltatimefortime-basedeffects(ignoreiflessthan0)
ImplementsICinemachineCameraUpdateCameraState(Vector3,Single)
SeeAlsoReference
publicoverridevoidUpdateCameraState(
Vector3worldUp,
floatdeltaTime
)
CopyC# JavaScript
CinemachineFreeLookClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineFreeLookFields
TheCinemachineFreeLooktypeexposesthefollowingmembers.
Fields Name Description
CinemachineGUIDebuggerCallback Thisisdeprecated.Itisheretosupportthesoon-to-be-removedCinemachineDebuggerintheEditor.(InheritedfromCinemachineVirtualCameraBase
CreateRigOverride Overridecomponentpipelinecreation.ThisneedstobedonebytheeditortosupportUndo.TheoverridemustdoexactlythesamethingastheCreatePipelinemethodinthisclass.
DestroyRigOverride Overridecomponentpipelinedestruction.ThisneedstobedonebytheeditortosupportUndo.
m_BindingMode Thecoordinatespacetousewheninterpretingtheoffsetfromthetarget
m_CommonLens Ifenabled,thislenssettingwillapplytoallthreechildrigs,otherwisethechildriglenssettingswillbeused
m_ExcludedPropertiesInInspector Inspectorcontrol-UseforhidingsectionsoftheInspectorUI.(InheritedfromCinemachineVirtualCameraBase
m_Follow Objectforthecamerachildrenwantstomovewith(thebodytarget)
m_Heading ThedefinitionofForward.Camerawillfollowbehind
m_Lens SpecifiesthelenspropertiesofthisVirtualCamera.ThisgenerallymirrorstheUnityCamera'slenssettings,andwillbeusedtodrivetheUnitycamerawhenthevcamisactive
m_LockStageInInspector Inspectorcontrol-UseforenablingsectionsoftheInspectorUI.(InheritedfromCinemachineVirtualCameraBase
m_LookAt Objectforthecamerachildrentolookat(theaimtarget)
m_Orbits Theradiusandheightofthethreeorbitingrigs
m_Priority Theprioritywilldeterminewhichcamerabecomesactivebasedonthestateofothercamerasandthiscamera.Highernumbershavegreaterpriority.(InheritedfromCinemachineVirtualCameraBase
m_RecenterToTargetHeading ControlshowautomaticrecenteringoftheXaxisisaccomplished
m_SplineCurvature
m_XAxis TheHorizontalaxis.Valueis0..359.Thisispassedontotherigs'OrbitalTransposercomponent
m_YAxis TheVerticalaxis.Valueis0..1.Chooseshowtoblendthechildrigs
OnPostPipelineStage Adelegatetohookintothestatecalculationpipeline.Implementaionmustbesuretocallthisaftereachpipelinestage,toallowotherservicestohookintothepipeline.SeeCinemachineCore.Stage.(InheritedfromCinemachineVirtualCameraBase
Top
SeeAlsoReferenceCinemachineFreeLookClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineFreeLookCreateRigOverrideField
Overridecomponentpipelinecreation.ThisneedstobedonebytheeditortosupportUndo.TheoverridemustdoexactlythesamethingastheCreatePipelinemethodinthisclass.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachineFreeLookCreateRigDelegate
SeeAlsoReferenceCinemachineFreeLookClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicstaticCinemachineFreeLookCreateRigDelegate
CopyC# JavaScript
Cinemachine
CinemachineFreeLookDestroyRigOverrideField
Overridecomponentpipelinedestruction.ThisneedstobedonebytheeditortosupportUndo.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachineFreeLookDestroyRigDelegate
SeeAlsoReferenceCinemachineFreeLookClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicstaticCinemachineFreeLookDestroyRigDelegate
CopyC# JavaScript
Cinemachine
CinemachineFreeLookm_BindingModeField
Thecoordinatespacetousewheninterpretingtheoffsetfromthetarget
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachineTransposerBindingMode
SeeAlsoReferenceCinemachineFreeLookClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[HeaderAttribute("Orbits")]
[TooltipAttribute("Thecoordinatespacetousewheninterpretingtheoffsetfromthetarget.Thisisalsousedtosetthecamera'sUpvector,whichwillbemaintainedwhenaimingthecamera.")]
publicCinemachineTransposerBindingModem_BindingMode
CopyC# JavaScript
Cinemachine
CinemachineFreeLookm_CommonLensField
Ifenabled,thislenssettingwillapplytoallthreechildrigs,otherwisethechildriglenssettingswillbeused
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Boolean
SeeAlsoReferenceCinemachineFreeLookClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Ifenabled,thislenssettingwillapplytoallthreechildrigs,otherwisethechildriglenssettingswillbeused")]
[FormerlySerializedAsAttribute("m_UseCommonLensSetting")]
publicboolm_CommonLens
CopyC# JavaScript
Cinemachine
CinemachineFreeLookm_FollowField
Objectforthecamerachildrenwantstomovewith(thebodytarget)
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Transform
SeeAlsoReferenceCinemachineFreeLookClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Objectforthecamerachildrenwantstomovewith(thebodytarget).")]
[NoSaveDuringPlayAttribute]
publicTransformm_Follow
CopyC# JavaScript
Cinemachine
CinemachineFreeLookm_HeadingField
ThedefinitionofForward.Camerawillfollowbehind
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachineOrbitalTransposerHeading
SeeAlsoReferenceCinemachineFreeLookClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("ThedefinitionofForward.Camerawillfollowbehind.")]
publicCinemachineOrbitalTransposerHeadingm_Heading
CopyC# JavaScript
Cinemachine
CinemachineFreeLookm_LensField
SpecifiesthelenspropertiesofthisVirtualCamera.ThisgenerallymirrorstheUnityCamera'slenssettings,andwillbeusedtodrivetheUnitycamerawhenthevcamisactive
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:LensSettings
SeeAlsoReferenceCinemachineFreeLookClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[FormerlySerializedAsAttribute("m_LensAttributes")]
[TooltipAttribute("SpecifiesthelenspropertiesofthisVirtualCamera.ThisgenerallymirrorstheUnityCamera'slenssettings,andwillbeusedtodrivetheUnitycamerawhenthevcamisactive")]
[LensSettingsPropertyAttribute]
publicLensSettingsm_Lens
CopyC# JavaScript
Cinemachine
CinemachineFreeLookm_LookAtField
Objectforthecamerachildrentolookat(theaimtarget)
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Transform
SeeAlsoReferenceCinemachineFreeLookClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Objectforthecamerachildrentolookat(theaimtarget).")]
[NoSaveDuringPlayAttribute]
publicTransformm_LookAt
CopyC# JavaScript
Cinemachine
CinemachineFreeLookm_OrbitsField
Theradiusandheightofthethreeorbitingrigs
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachineFreeLookOrbit
SeeAlsoReferenceCinemachineFreeLookClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Theradiusandheightofthethreeorbitingrigs.")]
publicCinemachineFreeLookOrbit[]m_Orbits
CopyC# JavaScript
Cinemachine
CinemachineFreeLookm_RecenterToTargetHeadingField
ControlshowautomaticrecenteringoftheXaxisisaccomplished
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachineOrbitalTransposerRecentering
SeeAlsoReferenceCinemachineFreeLookClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("ControlshowautomaticrecenteringoftheXaxisisaccomplished")]
publicCinemachineOrbitalTransposerRecenteringm_RecenterToTargetHeading
CopyC# JavaScript
Cinemachine
CinemachineFreeLookm_SplineCurvatureField
[Missing<summary>documentationfor"F:Cinemachine.CinemachineFreeLook.m_SplineCurvature"]
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineFreeLookClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Controlshowtautisthelinethatconnectstherigs'orbits,whichdeterminesfinalplacementontheYaxis")]
[RangeAttribute(0f,1f)]
[FormerlySerializedAsAttribute("m_SplineTension")]
publicfloatm_SplineCurvature
CopyC# JavaScript
Cinemachine
CinemachineFreeLookm_XAxisField
TheHorizontalaxis.Valueis0..359.Thisispassedontotherigs'OrbitalTransposercomponent
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:AxisState
SeeAlsoReferenceCinemachineFreeLookClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("TheHorizontalaxis.Valueis0..359.Thisispassedontotherigs'OrbitalTransposercomponent")]
publicAxisStatem_XAxis
CopyC# JavaScript
Cinemachine
CinemachineFreeLookm_YAxisField
TheVerticalaxis.Valueis0..1.Chooseshowtoblendthechildrigs
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:AxisState
SeeAlsoReferenceCinemachineFreeLookClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[HeaderAttribute("AxisControl")]
[TooltipAttribute("TheVerticalaxis.Valueis0..1.Chooseshowtoblendthechildrigs")]
publicAxisStatem_YAxis
CopyC# JavaScript
Cinemachine
CinemachineFreeLookCreateRigDelegateDelegate
Overridecomponentpipelinecreation.ThisneedstobedonebytheeditortosupportUndo.TheoverridemustdoexactlythesamethingastheCreatePipelinemethodinthisclass.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
vcamType:CinemachineCinemachineFreeLook
nameType:SystemString
copyFromType:CinemachineCinemachineVirtualCamera
ReturnValueType:CinemachineVirtualCamera
SeeAlso
publicdelegateCinemachineVirtualCameraCreateRigDelegate
CinemachineFreeLookvcam,
stringname,
CinemachineVirtualCameracopyFrom
)
CopyC# JavaScript
ReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineFreeLookDestroyRigDelegateDelegate
Overridecomponentpipelinedestruction.ThisneedstobedonebytheeditortosupportUndo.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
rigType:GameObject
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicdelegatevoidDestroyRigDelegate(
GameObjectrig
)
CopyC# JavaScript
Cinemachine
CinemachineFreeLookOrbitStructure
DefinestheheightandradiusoftheRigorbit
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheCinemachineFreeLookOrbittypeexposesthefollowingmembers.
Constructors Name Description
CinemachineFreeLookOrbit Constructorwithspecificvalues
Top
Fields Name Description
m_Height Heightrelativetotarget
m_Radius Radiusoforbit
[SerializableAttribute]
publicstructOrbit
CopyC# JavaScript
Top
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineFreeLookOrbitConstructor
Constructorwithspecificvalues
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
hType:SystemSingle[Missing<paramname="h"/>documentationfor"M:Cinemachine.CinemachineFreeLook.Orbit.#ctor(System.Single,System.Single)"]
rType:SystemSingle[Missing<paramname="r"/>documentationfor"M:Cinemachine.CinemachineFreeLook.Orbit.#ctor(System.Single,System.Single)"]
SeeAlsoReferenceCinemachineFreeLookOrbitStructureCinemachineNamespace
publicOrbit(
floath,
floatr
)
CopyC# JavaScript
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
OrbitFields
TheCinemachineFreeLookOrbittypeexposesthefollowingmembers.
Fields Name Description
m_Height Heightrelativetotarget
m_Radius Radiusoforbit
Top
SeeAlsoReferenceCinemachineFreeLookOrbitStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineFreeLookOrbitm_HeightField
Heightrelativetotarget
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineFreeLookOrbitStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicfloatm_Height
CopyC# JavaScript
Cinemachine
CinemachineFreeLookOrbitm_RadiusField
Radiusoforbit
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineFreeLookOrbitStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicfloatm_Radius
CopyC# JavaScript
Cinemachine
CinemachineGroupComposerClass
ThisisaCinemachineComponentintheAimsectionofthecomponentpipeline.Itsjobistoaimthecameraatatargetobject,withconfigurableoffsets,damping,andcompositionrules.Inaddition,ifthetargetisaCinemachineTargetGroup,thebehaviourwilladjusttheFOVandthecameradistancetoensurethattheentiregroupoftargetsisframedproperly.
InheritanceHierarchySystemObjectObjectComponentBehaviourMonoBehaviourCinemachineCinemachineComponentBaseCinemachineCinemachineComposerCinemachineCinemachineGroupComposer
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
[DocumentationSortingAttribute(4f,DocumentationSortingAttribute
[ExecuteInEditMode]
[AddComponentMenu("")]
[RequireComponent(typeof(CinemachinePipeline))]
[SaveDuringPlayAttribute]
publicclassCinemachineGroupComposer:CinemachineComposer
CopyC# JavaScript
TheCinemachineGroupComposertypeexposesthefollowingmembers.
Constructors Name Description
CinemachineGroupComposer
Top
Properties Name Description
FollowTarget Returnstheownervcam'sFollowtarget.(InheritedfromCinemachineComponentBase.)
HardGuideRect InternalAPIfortheinspectoreditor(InheritedfromCinemachineComposer.)
IsValid TrueifcomponentisenabledandhasaLookAtdefined(InheritedfromCinemachineComposer.)
LookAtTarget Returnstheownervcam'sLookAttarget.(InheritedfromCinemachineComponentBase.)
m_LastBounds Foreditorvisulaizationofthecalculatedboundingboxofthegroup
m_lastBoundsMatrix Foreditorvisualizationofthecalculatedboundingboxofthegroup
SoftGuideRect InternalAPIfortheinspectoreditor(InheritedfromCinemachineComposer.)
Stage GettheCinemachinePipelinestagethatthiscomponentimplements.AlwaysreturnstheAimstage(InheritedfromCinemachineComposer.)
TargetGroup GetLookAttargetasCinemachineTargetGroup,ornulliftargetisnotagroup
VcamState Returnstheownervcam'sCameraState.(InheritedfromCinemachineComponentBase.)
VirtualCamera GettheassociatedCinemachineVirtualCameraBase(InheritedfromCinemachineComponentBase.)
Top
Methods Name Description
GetTrackedPoint Applythetargetoffsetstothetargetlocation.(InheritedfromCinemachineComposer
MutateCameraState Appliesthecomposerrulesandorientsthecameraaccordingly(OverridesCinemachineComposerMutateCameraState(CameraStateSingle).)
OnPositionDragged APIfortheeditor,toprocessapositiondragfromtheuser.Baseclassimplementationdoesnothing.(InheritedfromCinemachineComponentBase
Top
Fields Name Description
m_AdjustmentMode Howtoadjustthecameratogetthedesiredframing
m_BiasX Anon-zerobiaswillmovethetargtpositionawayfromthecenterofthesoftzone(InheritedfromCinemachineComposer.)
m_BiasY Anon-zerobiaswillmovethetargtpositionawayfromthecenterofthesoftzone(InheritedfromCinemachineComposer.)
m_DeadZoneHeight Camerawillnotrotateverticallyifthetargetiswithinthisrangeoftheposition(Inheritedfrom
CinemachineComposer.)
m_DeadZoneWidth Camerawillnotrotatehorizontallyifthetargetiswithinthisrangeoftheposition(InheritedfromCinemachineComposer.)
m_FrameDamping Howaggressivelythecameratriestoframethegroup.Smallnumbersaremoreresponsive
m_FramingMode Whatscreendimensionstoconsiderwhenframing
m_GroupFramingSize Howmuchofthescreentofillwiththeboundingboxofthetargets.
m_HorizontalDamping Howaggressivelythecameratriestofollowthetargetinthescreen-horizontaldirection.Smallnumbersaremoreresponsive,rapidlyorientingthecameratokeepthetargetinthedeadzone.Largernumbersgiveamoreheavyslowlyrespondingcamera.Usingdifferentverticalandhorizontalsettingscanyieldawiderangeofcamerabehaviors.
(InheritedfromCinemachineComposer.)
m_LookaheadSmoothing Controlsthesmoothnessofthelookaheadalgorithm.Largervaluessmoothoutjitterypredictionsandalsoincreasepredictionlag(InheritedfromCinemachineComposer.)
m_LookaheadTime Thissettingwillinstructthecomposertoadjustitstargetoffsetbasedonthemotionofthetarget.Thecomposerwilllookatapointwhereitestimatesthetargetwillbethismanysecondsintothefuture.Notethatthissettingissensitivetonoisyanimation,andcanamplifythenoise,resultinginundesirablecamerajitter.Ifthecamerajittersunacceptablywhenthetargetisinmotion,turndownthissetting,oranimatethetargetmoresmoothly.(InheritedfromCinemachineComposer.)
m_MaxDollyIn Howmuchclosertothetargetcanthecamerago?
m_MaxDollyOut Howmuchfartherfromthetargetcanthecamerago?
m_MaximumDistance Setthistolimithowfarfromthetaregtthecameracanget
m_MaximumFOV IfadjustingFOV,willnotsettheFOVhigherthanthis
m_MaximumOrthoSize IfadjustingOrthographicSize,willnotsetithigherthanthis
m_MinimumDistance Setthistolimithowclosetothetargetthecameracanget
m_MinimumFOV IfadjustingFOV,willnotsettheFOVlowerthanthis
m_MinimumOrthoSize IfadjustingOrthographicSize,willnotsetitlowerthanthis
m_ScreenX Horizontalscreenpositionfortarget.Thecamerawillrotatetothepositionthetrackedobjecthere(InheritedfromCinemachineComposer.)
m_ScreenY Verticalscreenpositionfortarget,Thecamerawillrotatetotoposition
thetrackedobjecthere(InheritedfromCinemachineComposer.)
m_SoftZoneHeight Whentargetiswithinthisregion,camerawillgraduallymovetore-aligntowardsthedesiredposition,dependingonmthedampingspeed(InheritedfromCinemachineComposer.)
m_SoftZoneWidth Whentargetiswithinthisregion,camerawillgraduallymovetore-aligntowardsthedesiredposition,dependingonmthedampingspeed(InheritedfromCinemachineComposer.)
m_TrackedObjectOffset Targetoffsetfromtheobject'scenterinLOCALspacewhichtheComposertracks.Usethistofine-tunethetrackingtargetpositionwhenthedesiredareaisnotinthetrackedobject'scenter(InheritedfromCinemachineComposer.)
m_VerticalDamping Howaggressivelythecameratriestofollowthetargetinthescreen-
verticaldirection.Smallnumbersaremoreresponsive,rapidlyorientingthecameratokeepthetargetinthedeadzone.Largernumbersgiveamoreheavyslowlyrespondingcamera.Usingdifferentverticalandhorizontalsettingscanyieldawiderangeofcamerabehaviors.(InheritedfromCinemachineComposer.)
OnGUICallback UsedbytheInspectorEditortodisplayon-screenguides.(InheritedfromCinemachineComposer.)
Top
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineGroupComposerConstructor
[Missing<summary>documentationfor"M:Cinemachine.CinemachineGroupComposer.#ctor"]
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineGroupComposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicCinemachineGroupComposer()
CopyC# JavaScript
Cinemachine
CinemachineGroupComposerProperties
TheCinemachineGroupComposertypeexposesthefollowingmembers.
Properties Name Description
FollowTarget Returnstheownervcam'sFollowtarget.(InheritedfromCinemachineComponentBase.)
HardGuideRect InternalAPIfortheinspectoreditor(InheritedfromCinemachineComposer.)
IsValid TrueifcomponentisenabledandhasaLookAtdefined(InheritedfromCinemachineComposer.)
LookAtTarget Returnstheownervcam'sLookAttarget.(InheritedfromCinemachineComponentBase.)
m_LastBounds Foreditorvisulaizationofthecalculatedboundingboxofthegroup
m_lastBoundsMatrix Foreditorvisualizationofthe
calculatedboundingboxofthegroup
SoftGuideRect InternalAPIfortheinspectoreditor(InheritedfromCinemachineComposer.)
Stage GettheCinemachinePipelinestagethatthiscomponentimplements.AlwaysreturnstheAimstage(InheritedfromCinemachineComposer.)
TargetGroup GetLookAttargetasCinemachineTargetGroup,ornulliftargetisnotagroup
VcamState Returnstheownervcam'sCameraState.(InheritedfromCinemachineComponentBase.)
VirtualCamera GettheassociatedCinemachineVirtualCameraBase(InheritedfromCinemachineComponentBase.)
Top
SeeAlsoReferenceCinemachineGroupComposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineGroupComposerm_LastBoundsProperty
Foreditorvisulaizationofthecalculatedboundingboxofthegroup
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Bounds
SeeAlsoReferenceCinemachineGroupComposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicBoundsm_LastBounds{get;}
CopyC# JavaScript
Cinemachine
CinemachineGroupComposerm_lastBoundsMatrixProperty
Foreditorvisualizationofthecalculatedboundingboxofthegroup
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Matrix4x4
SeeAlsoReferenceCinemachineGroupComposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicMatrix4x4m_lastBoundsMatrix{get;}
CopyC# JavaScript
Cinemachine
CinemachineGroupComposerTargetGroupProperty
GetLookAttargetasCinemachineTargetGroup,ornulliftargetisnotagroup
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:CinemachineTargetGroup
SeeAlsoReferenceCinemachineGroupComposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicCinemachineTargetGroupTargetGroup{get;}
CopyC# JavaScript
Cinemachine
CinemachineGroupComposerMethods
TheCinemachineGroupComposertypeexposesthefollowingmembers.
Methods Name Description
GetTrackedPoint Applythetargetoffsetstothetargetlocation.(InheritedfromCinemachineComposer
MutateCameraState Appliesthecomposerrulesandorientsthecameraaccordingly(OverridesCinemachineComposerMutateCameraState(CameraStateSingle).)
OnPositionDragged APIfortheeditor,toprocessapositiondragfromtheuser.Baseclassimplementationdoesnothing.(InheritedfromCinemachineComponentBase
Top
SeeAlsoReferenceCinemachineGroupComposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineGroupComposerMutateCameraStateMethod
Appliesthecomposerrulesandorientsthecameraaccordingly
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
curStateType:CinemachineCameraState[Missing<paramname="curState"/>documentationfor"M:Cinemachine.CinemachineGroupComposer.MutateCameraState(Cinemachine.CameraState@,System.Single)"]
deltaTimeType:SystemSingleUsedforcalculatingdamping.Iflessthanzero,thentargetwillsnaptothecenterofthedeadzone.
SeeAlsoReferenceCinemachineGroupComposerClassCinemachineNamespace
publicoverridevoidMutateCameraState(
refCameraStatecurState,
floatdeltaTime
)
CopyC# JavaScript
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineGroupComposerFields
TheCinemachineGroupComposertypeexposesthefollowingmembers.
Fields Name Description
m_AdjustmentMode Howtoadjustthecameratogetthedesiredframing
m_BiasX Anon-zerobiaswillmovethetargtpositionawayfromthecenterofthesoftzone(InheritedfromCinemachineComposer.)
m_BiasY Anon-zerobiaswillmovethetargtpositionawayfromthecenterofthesoftzone(InheritedfromCinemachineComposer.)
m_DeadZoneHeight Camerawillnotrotateverticallyifthetargetiswithinthisrangeoftheposition(InheritedfromCinemachineComposer.)
m_DeadZoneWidth Camerawillnotrotatehorizontallyifthetargetiswithinthisrangeoftheposition(InheritedfromCinemachineComposer.)
m_FrameDamping Howaggressivelythecameratriestoframethegroup.Smallnumbersaremoreresponsive
m_FramingMode Whatscreendimensionstoconsiderwhenframing
m_GroupFramingSize Howmuchofthescreentofillwiththeboundingboxofthetargets.
m_HorizontalDamping Howaggressivelythecameratriestofollowthetargetinthescreen-horizontaldirection.Smallnumbersaremoreresponsive,rapidlyorientingthecameratokeepthetargetinthedeadzone.Largernumbersgiveamoreheavyslowlyrespondingcamera.Usingdifferentverticalandhorizontalsettingscanyieldawiderangeofcamerabehaviors.(InheritedfromCinemachineComposer.)
m_LookaheadSmoothing Controlsthesmoothnessofthelookaheadalgorithm.Largervaluessmoothoutjitterypredictionsandalsoincreasepredictionlag(InheritedfromCinemachineComposer.)
m_LookaheadTime Thissettingwillinstructthecomposertoadjustitstargetoffsetbasedonthemotionofthetarget.Thecomposerwilllookatapointwhereitestimatesthetargetwillbethismanysecondsintothefuture.Notethatthissettingissensitivetonoisyanimation,andcanamplifythenoise,resultinginundesirablecamerajitter.Ifthecamerajittersunacceptablywhenthetargetisinmotion,turndownthissetting,oranimatethetargetmoresmoothly.(InheritedfromCinemachineComposer.)
m_MaxDollyIn Howmuchclosertothetargetcanthecamerago?
m_MaxDollyOut Howmuchfartherfromthetargetcanthe
camerago?
m_MaximumDistance Setthistolimithowfarfromthetaregtthecameracanget
m_MaximumFOV IfadjustingFOV,willnotsettheFOVhigherthanthis
m_MaximumOrthoSize IfadjustingOrthographicSize,willnotsetithigherthanthis
m_MinimumDistance Setthistolimithowclosetothetargetthecameracanget
m_MinimumFOV IfadjustingFOV,willnotsettheFOVlowerthanthis
m_MinimumOrthoSize IfadjustingOrthographicSize,willnotsetitlowerthanthis
m_ScreenX Horizontalscreenpositionfortarget.Thecamerawillrotatetothepositionthetrackedobjecthere(InheritedfromCinemachineComposer.)
m_ScreenY Verticalscreenpositionfortarget,Thecamerawillrotatetotopositionthetrackedobjecthere(Inheritedfrom
CinemachineComposer.)
m_SoftZoneHeight Whentargetiswithinthisregion,camerawillgraduallymovetore-aligntowardsthedesiredposition,dependingonmthedampingspeed(InheritedfromCinemachineComposer.)
m_SoftZoneWidth Whentargetiswithinthisregion,camerawillgraduallymovetore-aligntowardsthedesiredposition,dependingonmthedampingspeed(InheritedfromCinemachineComposer.)
m_TrackedObjectOffset Targetoffsetfromtheobject'scenterinLOCALspacewhichtheComposertracks.Usethistofine-tunethetrackingtargetpositionwhenthedesiredareaisnotinthetrackedobject'scenter(InheritedfromCinemachineComposer.)
m_VerticalDamping Howaggressivelythecameratriestofollowthetargetinthescreen-verticaldirection.Smallnumbersaremore
responsive,rapidlyorientingthecameratokeepthetargetinthedeadzone.Largernumbersgiveamoreheavyslowlyrespondingcamera.Usingdifferentverticalandhorizontalsettingscanyieldawiderangeofcamerabehaviors.(InheritedfromCinemachineComposer.)
OnGUICallback UsedbytheInspectorEditortodisplayon-screenguides.(InheritedfromCinemachineComposer.)
Top
SeeAlsoReferenceCinemachineGroupComposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineGroupComposerm_AdjustmentModeField
Howtoadjustthecameratogetthedesiredframing
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachineGroupComposerAdjustmentMode
SeeAlsoReferenceCinemachineGroupComposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Howtoadjustthecameratogetthedesiredframing.Youcanzoom,dollyin/out,ordoboth.")]
publicCinemachineGroupComposerAdjustmentModem_AdjustmentMode
CopyC# JavaScript
Cinemachine
CinemachineGroupComposerm_FrameDampingField
Howaggressivelythecameratriestoframethegroup.Smallnumbersaremoreresponsive
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineGroupComposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[RangeAttribute(0f,20f)]
[TooltipAttribute("Howaggressivelythecameratriestoframethegroup.Smallnumbersaremoreresponsive,rapidlyadjustingthecameratokeepthegroupintheframe.Largernumbersgiveamoreheavyslowlyrespondingcamera.")]
publicfloatm_FrameDamping
CopyC# JavaScript
Cinemachine
CinemachineGroupComposerm_FramingModeField
Whatscreendimensionstoconsiderwhenframing
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachineGroupComposerFramingMode
SeeAlsoReferenceCinemachineGroupComposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Whatscreendimensionstoconsiderwhenframing.CanbeHorizontal,Vertical,orboth")]
publicCinemachineGroupComposerFramingModem_FramingMode
CopyC# JavaScript
Cinemachine
CinemachineGroupComposerm_GroupFramingSizeField
Howmuchofthescreentofillwiththeboundingboxofthetargets.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineGroupComposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[SpaceAttribute]
[TooltipAttribute("Theboundingboxofthetargetsshouldoccupythisamountofthescreenspace.1meansfillthewholescreen.0.5meansfillhalfthescreen,etc.")]
publicfloatm_GroupFramingSize
CopyC# JavaScript
Cinemachine
CinemachineGroupComposerm_MaxDollyInField
Howmuchclosertothetargetcanthecamerago?
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineGroupComposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Themaximumdistancetowardthetargetthatthisbehaviourisallowedtomovethecamera.")]
publicfloatm_MaxDollyIn
CopyC# JavaScript
Cinemachine
CinemachineGroupComposerm_MaxDollyOutField
Howmuchfartherfromthetargetcanthecamerago?
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineGroupComposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Themaximumdistanceawaythetargetthatthisbehaviourisallowedtomovethecamera.")]
publicfloatm_MaxDollyOut
CopyC# JavaScript
Cinemachine
CinemachineGroupComposerm_MaximumDistanceField
Setthistolimithowfarfromthetaregtthecameracanget
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineGroupComposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Setthistolimithowfarfromthetargetthecameracanget.")]
publicfloatm_MaximumDistance
CopyC# JavaScript
Cinemachine
CinemachineGroupComposerm_MaximumFOVField
IfadjustingFOV,willnotsettheFOVhigherthanthis
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineGroupComposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[RangeAttribute(1f,179f)]
[TooltipAttribute("IfadjustingFOV,willnotsettheFOVhigherthanthis.")]
publicfloatm_MaximumFOV
CopyC# JavaScript
Cinemachine
CinemachineGroupComposerm_MaximumOrthoSizeField
IfadjustingOrthographicSize,willnotsetithigherthanthis
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineGroupComposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("IfadjustingOrthographicSize,willnotsetithigherthanthis.")]
publicfloatm_MaximumOrthoSize
CopyC# JavaScript
Cinemachine
CinemachineGroupComposerm_MinimumDistanceField
Setthistolimithowclosetothetargetthecameracanget
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineGroupComposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Setthistolimithowclosetothetargetthecameracanget.")]
publicfloatm_MinimumDistance
CopyC# JavaScript
Cinemachine
CinemachineGroupComposerm_MinimumFOVField
IfadjustingFOV,willnotsettheFOVlowerthanthis
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineGroupComposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[RangeAttribute(1f,179f)]
[TooltipAttribute("IfadjustingFOV,willnotsettheFOVlowerthanthis.")]
publicfloatm_MinimumFOV
CopyC# JavaScript
Cinemachine
CinemachineGroupComposerm_MinimumOrthoSizeField
IfadjustingOrthographicSize,willnotsetitlowerthanthis
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineGroupComposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("IfadjustingOrthographicSize,willnotsetitlowerthanthis.")]
publicfloatm_MinimumOrthoSize
CopyC# JavaScript
Cinemachine
CinemachineGroupComposerAdjustmentModeEnumeration
Howtoadjustthecameratogetthedesiredframing
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Members Membername Value Description
ZoomOnly 0 Donotmovethecamera,onlyadjusttheFOV.
DollyOnly 1 Justmovethecamera,don'tchangetheFOV.
DollyThenZoom 2 Movethecameraasmuchaspermittedbytheranges,thenadjusttheFOVifnecessarytomaketheshot.
publicenumAdjustmentMode
CopyC# JavaScript
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineGroupComposerFramingModeEnumeration
Whatscreendimensionstoconsiderwhenframing
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Members Membername Value Description
Horizontal 0 Consideronlythehorizontaldimension.Verticalframingisignored.
Vertical 1 Consideronlytheverticaldimension.Horizontalframingisignored.
HorizontalAndVertical 2 Thelargerofthe
[DocumentationSortingAttribute(4.01f,DocumentationSortingAttribute
publicenumFramingMode
CopyC# JavaScript
horizontalandverticaldimensionswilldominate,togetthebestfit.
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineHardLockToTargetClass
ThisisaCinemachineComponentintheAimsectionofthecomponentpipeline.ItsjobistoplacethecameraontheFollowTarget.
InheritanceHierarchySystemObjectObjectComponentBehaviourMonoBehaviourCinemachineCinemachineComponentBaseCinemachineCinemachineHardLockToTarget
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheCinemachineHardLockToTargettypeexposesthefollowingmembers.
Constructors
[DocumentationSortingAttribute(23f,DocumentationSortingAttribute
[AddComponentMenu("")]
[RequireComponent(typeof(CinemachinePipeline))]
[SaveDuringPlayAttribute]
publicclassCinemachineHardLockToTarget:CinemachineComponentBase
CopyC# JavaScript
Name Description
CinemachineHardLockToTarget
Top
Properties Name Description
FollowTarget Returnstheownervcam'sFollowtarget.(InheritedfromCinemachineComponentBase.)
IsValid TrueifcomponentisenabledandhasaLookAtdefined(OverridesCinemachineComponentBaseIsValid.)
LookAtTarget Returnstheownervcam'sLookAttarget.(InheritedfromCinemachineComponentBase.)
Stage GettheCinemachinePipelinestagethatthiscomponentimplements.AlwaysreturnstheAimstage(OverridesCinemachineComponentBaseStage.)
VcamState Returnstheownervcam'sCameraState.(InheritedfromCinemachineComponentBase.)
VirtualCamera GettheassociatedCinemachineVirtualCameraBase(Inheritedfrom
CinemachineComponentBase.)
Top
Methods Name Description
MutateCameraState Appliesthecomposerrulesandorientsthecameraaccordingly(OverridesCinemachineComponentBaseMutateCameraState(CameraStateSingle).)
OnPositionDragged APIfortheeditor,toprocessapositiondragfromtheuser.classimplementationdoesnothing.(InheritedfromCinemachineComponentBase
Top
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineHardLockToTargetConstructor
[Missing<summary>documentationfor"M:Cinemachine.CinemachineHardLockToTarget.#ctor"]
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineHardLockToTargetClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicCinemachineHardLockToTarget()
CopyC# JavaScript
Cinemachine
CinemachineHardLockToTargetProperties
TheCinemachineHardLockToTargettypeexposesthefollowingmembers.
Properties Name Description
FollowTarget Returnstheownervcam'sFollowtarget.(InheritedfromCinemachineComponentBase.)
IsValid TrueifcomponentisenabledandhasaLookAtdefined(OverridesCinemachineComponentBaseIsValid.)
LookAtTarget Returnstheownervcam'sLookAttarget.(InheritedfromCinemachineComponentBase.)
Stage GettheCinemachinePipelinestagethatthiscomponentimplements.AlwaysreturnstheAimstage(OverridesCinemachineComponentBaseStage.)
VcamState Returnstheownervcam'sCameraState.(InheritedfromCinemachineComponentBase.)
VirtualCamera GettheassociatedCinemachineVirtualCameraBase(InheritedfromCinemachineComponentBase.)
Top
SeeAlsoReferenceCinemachineHardLockToTargetClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineHardLockToTargetIsValidProperty
TrueifcomponentisenabledandhasaLookAtdefined
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Boolean
SeeAlsoReferenceCinemachineHardLockToTargetClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverrideboolIsValid{get;}
CopyC# JavaScript
Cinemachine
CinemachineHardLockToTargetStageProperty
GettheCinemachinePipelinestagethatthiscomponentimplements.AlwaysreturnstheAimstage
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:CinemachineCoreStage
SeeAlsoReferenceCinemachineHardLockToTargetClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverrideCinemachineCoreStageStage{get;}
CopyC# JavaScript
Cinemachine
CinemachineHardLockToTargetMethods
TheCinemachineHardLockToTargettypeexposesthefollowingmembers.
Methods Name Description
MutateCameraState Appliesthecomposerrulesandorientsthecameraaccordingly(OverridesCinemachineComponentBaseMutateCameraState(CameraStateSingle).)
OnPositionDragged APIfortheeditor,toprocessapositiondragfromtheuser.classimplementationdoesnothing.(InheritedfromCinemachineComponentBase
Top
SeeAlsoReferenceCinemachineHardLockToTargetClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineHardLockToTargetMutateCameraStateMethod
Appliesthecomposerrulesandorientsthecameraaccordingly
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
curStateType:CinemachineCameraStateThecurrentcamerastate
deltaTimeType:SystemSingleUsedforcalculatingdamping.Iflessthanzero,thentargetwillsnaptothecenterofthedeadzone.
SeeAlsoReferenceCinemachineHardLockToTargetClassCinemachineNamespace
VisittheCinemachineForum
publicoverridevoidMutateCameraState(
refCameraStatecurState,
floatdeltaTime
)
CopyC# JavaScript
https://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineHardLookAtClass
ThisisaCinemachineComponentintheAimsectionofthecomponentpipeline.ItsjobistoaimthecamerahardattheLookAttarget.
InheritanceHierarchySystemObjectObjectComponentBehaviourMonoBehaviourCinemachineCinemachineComponentBaseCinemachineCinemachineHardLookAt
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheCinemachineHardLookAttypeexposesthefollowingmembers.
Constructors Name Description
CinemachineHardLookAt
[DocumentationSortingAttribute(23f,DocumentationSortingAttribute
[AddComponentMenu("")]
[RequireComponent(typeof(CinemachinePipeline))]
[SaveDuringPlayAttribute]
publicclassCinemachineHardLookAt:CinemachineComponentBase
CopyC# JavaScript
Top
Properties Name Description
FollowTarget Returnstheownervcam'sFollowtarget.(InheritedfromCinemachineComponentBase.)
IsValid TrueifcomponentisenabledandhasaLookAtdefined(OverridesCinemachineComponentBaseIsValid.)
LookAtTarget Returnstheownervcam'sLookAttarget.(InheritedfromCinemachineComponentBase.)
Stage GettheCinemachinePipelinestagethatthiscomponentimplements.AlwaysreturnstheAimstage(OverridesCinemachineComponentBaseStage.)
VcamState Returnstheownervcam'sCameraState.(InheritedfromCinemachineComponentBase.)
VirtualCamera GettheassociatedCinemachineVirtualCameraBase(InheritedfromCinemachineComponentBase.)
Top
Methods Name Description
MutateCameraState Appliesthecomposerrulesandorientsthecameraaccordingly(OverridesCinemachineComponentBaseMutateCameraState(CameraStateSingle).)
OnPositionDragged APIfortheeditor,toprocessapositiondragfromtheuser.classimplementationdoesnothing.(InheritedfromCinemachineComponentBase
Top
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineHardLookAtConstructor
[Missing<summary>documentationfor"M:Cinemachine.CinemachineHardLookAt.#ctor"]
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineHardLookAtClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicCinemachineHardLookAt()
CopyC# JavaScript
Cinemachine
CinemachineHardLookAtProperties
TheCinemachineHardLookAttypeexposesthefollowingmembers.
Properties Name Description
FollowTarget Returnstheownervcam'sFollowtarget.(InheritedfromCinemachineComponentBase.)
IsValid TrueifcomponentisenabledandhasaLookAtdefined(OverridesCinemachineComponentBaseIsValid.)
LookAtTarget Returnstheownervcam'sLookAttarget.(InheritedfromCinemachineComponentBase.)
Stage GettheCinemachinePipelinestagethatthiscomponentimplements.AlwaysreturnstheAimstage(OverridesCinemachineComponentBaseStage.)
VcamState Returnstheownervcam'sCameraState.(InheritedfromCinemachineComponentBase.)
VirtualCamera GettheassociatedCinemachineVirtualCameraBase(InheritedfromCinemachineComponentBase.)
Top
SeeAlsoReferenceCinemachineHardLookAtClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineHardLookAtIsValidProperty
TrueifcomponentisenabledandhasaLookAtdefined
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Boolean
SeeAlsoReferenceCinemachineHardLookAtClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverrideboolIsValid{get;}
CopyC# JavaScript
Cinemachine
CinemachineHardLookAtStageProperty
GettheCinemachinePipelinestagethatthiscomponentimplements.AlwaysreturnstheAimstage
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:CinemachineCoreStage
SeeAlsoReferenceCinemachineHardLookAtClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverrideCinemachineCoreStageStage{get;}
CopyC# JavaScript
Cinemachine
CinemachineHardLookAtMethods
TheCinemachineHardLookAttypeexposesthefollowingmembers.
Methods Name Description
MutateCameraState Appliesthecomposerrulesandorientsthecameraaccordingly(OverridesCinemachineComponentBaseMutateCameraState(CameraStateSingle).)
OnPositionDragged APIfortheeditor,toprocessapositiondragfromtheuser.classimplementationdoesnothing.(InheritedfromCinemachineComponentBase
Top
SeeAlsoReferenceCinemachineHardLookAtClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineHardLookAtMutateCameraStateMethod
Appliesthecomposerrulesandorientsthecameraaccordingly
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
curStateType:CinemachineCameraStateThecurrentcamerastate
deltaTimeType:SystemSingleUsedforcalculatingdamping.Iflessthanzero,thentargetwillsnaptothecenterofthedeadzone.
SeeAlsoReferenceCinemachineHardLookAtClassCinemachineNamespace
VisittheCinemachineForum
publicoverridevoidMutateCameraState(
refCameraStatecurState,
floatdeltaTime
)
CopyC# JavaScript
https://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineMixingCameraClass
CinemachineMixingCameraisa"managercamera"thattakesonthestateoftheweightedaverageofthestatesofitschildvirtualcameras.Afixednumberofslotsaremadeavailableforcameras,ratherthanadynamicarray.WedoitthiswayinordertosupportweightanimationfromtheTimeline.Timelinecannotanimatearrayelements.
InheritanceHierarchySystemObjectObjectComponentBehaviourMonoBehaviourCinemachineCinemachineVirtualCameraBaseCinemachineCinemachineMixingCamera
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheCinemachineMixingCameratypeexposesthefollowingmembers.
[DocumentationSortingAttribute(20f,DocumentationSortingAttribute
[ExecuteInEditMode]
[DisallowMultipleComponent]
[AddComponentMenu("Cinemachine/CinemachineMixingCamera")]
publicclassCinemachineMixingCamera:CinemachineVirtualCameraBase
CopyC# JavaScript
Constructors Name Description
CinemachineMixingCamera
Top
Properties Name Description
ChildCameras Getthecachedlistofchildcameras.justtheimmediatechildreninthehierarchy.onlythefirstentriesofthislistparticipateinthefinalblend,uptoMaxCameras
Description Getsabriefdebugdescriptionofthisvirtualcamera,forusewhendisplayiongdebuginfo(InheritedfromCinemachineVirtualCameraBase
Follow Notused(OverridesCinemachineVirtualCameraBase
LiveChildOrSelf Returnthelivechild.(OverridesCinemachineVirtualCameraBase
LookAt Notused(OverridesCinemachineVirtualCameraBase
Name GetthenameoftheVirtualCamera.implementationreturnstheownerGameObject'sname.(InheritedfromCinemachineVirtualCameraBase
ParentCamera Supportformeta-virtual-cameras.situationwhereavirtualcameraisinfactthepublicfaceofaprivatearmyofvirtualcameras,whichitmanagesonitsown.ThismethodgetstheVirtualCameraowner,ifany.areimplementedasTransformchildrenoftheparentvcam.(InheritedfromCinemachineVirtualCameraBase
PreviousStateIsValid SetthistoforcethenextupdatetoignoredeltaTimeandresetitself(InheritedfromCinemachineVirtualCameraBase
Priority GetthePriorityofthevirtualcamera.determinesitsplacementintheCinemachineCore'squeueofeligibleshots.(InheritedfromCinemachineVirtualCameraBase
State TheblendedCameraState(OverridesCinemachineVirtualCameraBase
ValidatingStreamVersion Versionthatwaslaststreamed,forupgradinglegacy(InheritedfromCinemachineVirtualCameraBase
VirtualCameraGameObject TheGameObjectowneroftheVirtualCamerabehaviour.(InheritedfromCinemachineVirtualCameraBase
Top
Methods Name Description
AddPostPipelineStageHook Adelegatetohookintothestatecalculationpipeline.pipeline.SeeCinemachineCore.Stage.(Inheritedfrom
GetWeight(Int32) Gettheweightofthechildatanindex.
GetWeight(CinemachineVirtualCameraBase) GettheweightofthechildCinemachineVirtualCameraBase.
InvalidateListOfChildren Invalidatethecachedlistofchildcameras.
InvokePostPipelineStageCallback InvokesthePostPipelineStageDelegateforthiscamera,andupthehierarchyforall(Inheritedfrom
IsLiveChild Checkwhetherthevcamalivechildofthiscamera.(OverridesCinemachineVirtualCameraBase
MoveToTopOfPrioritySubqueue Whenmultiplevirtualcamerashavethehighestpriority,thereisLivecameraifthemostrecentonegoestothetopoftheprioritysubqueue.anditspeerssharethehighestpriority,thenthisvcamwillbecomeLive.(Inheritedfrom
OnDestroy Baseclassimplementationremovesthevirtualcamerafromthepriorityqueue.(Inheritedfrom
OnDisable Baseclassimplementationmakessurethepriorityqueueremainsup-to-date.(Inheritedfrom
OnEnable Makessuretheinternalchildcacheisuptodate(OverridesCinemachineVirtualCameraBase
OnTransformChildrenChanged Makessuretheinternalchildcacheisuptodate
OnTransformParentChanged Baseclassimplementationmakessurethepriorityqueueremainsup-to-date.(Inheritedfrom
OnTransitionFromCamera Notificationthatthisvirtualcameraisgoinglive.(Inheritedfrom
OnValidate Makessuretheweightsarenon-negative(OverridesCinemachineVirtualCameraBase
PreUpdateChildCameras Thisiscalledpriortotheupdatingofthevcam'schildcameras,
areupdatingonFixedUpdate,thenthiswillnotnecessarilybecalledLateUpdateinstead.(Inheritedfrom
RemovePostPipelineStageHook RemoveaPipelinestagehookcallback.(OverridesCinemachineVirtualCameraBase
ResolveFollow Returnsthisvcam'sFollowtarget,orifthatisnull,willretrun(Inheritedfrom
ResolveLookAt Returnsthisvcam'sLookAttarget,orifthatisnull,willretrun(Inheritedfrom
SetWeight(Int32,Single) Settheweightofthechildatanindex.
SetWeight(CinemachineVirtualCameraBase,Single)
SettheweightofthechildCinemachineVirtualCameraBase.
Start Baseclassimplementationdoesnothing.(Inheritedfrom
Update Baseclassimplementationmakessurethepriorityqueueremainsup-to-date.(Inheritedfrom
UpdateCameraState CalledbyCinemachineCoreatdesignatedupdatetimecomputesandcachestheweightedblendofthetrackedcameras.(OverridesCinemachineVirtualCameraBase
ValidateListOfChildren Rebuildthecachedlistofchildcameras.
Top
Fields Name Description
CinemachineGUIDebuggerCallback Thisisdeprecated.Itisheretosupportthesoon-to-be-removed
CinemachineDebuggerintheEditor.(InheritedfromCinemachineVirtualCameraBase
m_ExcludedPropertiesInInspector Inspectorcontrol-UseforhidingsectionsoftheInspectorUI.(InheritedfromCinemachineVirtualCameraBase
m_LockStageInInspector Inspectorcontrol-UseforenablingsectionsoftheInspectorUI.(InheritedfromCinemachineVirtualCameraBase
m_Priority Theprioritywilldeterminewhichcamerabecomesactivebasedonthestateofothercamerasandthiscamera.Highernumbershavegreaterpriority.(InheritedfromCinemachineVirtualCameraBase
m_Weight0 Weightofthefirsttrackedcamera
m_Weight1 Weightofthesecondtrackedcamera
m_Weight2 Weightofthethirdtrackedcamera
m_Weight3 Weightofthefourthtrackedcamera
m_Weight4 Weightofthefifthtrackedcamera
m_Weight5 Weightofthesixthtrackedcamera
m_Weight6 Weightoftheseventhtrackedcamera
m_Weight7 Weightoftheeighthtrackedcamera
MaxCameras Themaximumnumberoftrackedcameras.Ifyouwanttoaddcameras,doithereinthesourcecode,andbesuretoaddtheextramembervariablesandtomaketheappropriatechangesinGetWeight()andSetWeight().Theinspectorwillfigureitselfoutbasedonthisvalue.
OnPostPipelineStage Adelegatetohookintothestatecalculationpipeline.Implementaionmustbesuretocallthisaftereachpipelinestage,toallowotherservicestohookintothepipeline.SeeCinemachineCore.Stage.(InheritedfromCinemachineVirtualCameraBase
Top
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineMixingCameraConstructor
[Missing<summary>documentationfor"M:Cinemachine.CinemachineMixingCamera.#ctor"]
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineMixingCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicCinemachineMixingCamera()
CopyC# JavaScript
Cinemachine
CinemachineMixingCameraProperties
TheCinemachineMixingCameratypeexposesthefollowingmembers.
Properties Name Description
ChildCameras Getthecachedlistofchildcameras.justtheimmediatechildreninthehierarchy.onlythefirstentriesofthislistparticipateinthefinalblend,uptoMaxCameras
Description Getsabriefdebugdescriptionofthisvirtualcamera,forusewhendisplayiongdebuginfo(InheritedfromCinemachineVirtualCameraBase
Follow Notused(OverridesCinemachineVirtualCameraBase
LiveChildOrSelf Returnthelivechild.(OverridesCinemachineVirtualCameraBase
LookAt Notused(OverridesCinemachineVirtualCameraBase
Name GetthenameoftheVirtualCamera.implementationreturnstheownerGameObject'sname.(InheritedfromCinemachineVirtualCameraBase
ParentCamera Supportformeta-virtual-cameras.situationwhereavirtualcameraisinfactthepublicfaceofaprivatearmyofvirtualcameras,whichitmanagesonitsown.ThismethodgetstheVirtualCameraowner,ifany.areimplementedasTransformchildrenoftheparentvcam.(InheritedfromCinemachineVirtualCameraBase
PreviousStateIsValid SetthistoforcethenextupdatetoignoredeltaTimeandresetitself(InheritedfromCinemachineVirtualCameraBase
Priority GetthePriorityofthevirtualcamera.determinesitsplacementintheCinemachineCore'squeueofeligibleshots.(InheritedfromCinemachineVirtualCameraBase
State TheblendedCameraState(OverridesCinemachineVirtualCameraBase
ValidatingStreamVersion Versionthatwaslaststreamed,forupgradinglegacy(InheritedfromCinemachineVirtualCameraBase
VirtualCameraGameObject TheGameObjectowneroftheVirtualCamerabehaviour.(InheritedfromCinemachineVirtualCameraBase
Top
SeeAlsoReferenceCinemachineMixingCameraClassCinemachineNamespace
VisittheCinemachineForum
https://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineMixingCameraChildCamerasProperty
Getthecachedlistofchildcameras.Thesearejusttheimmediatechildreninthehierarchy.Note:onlythefirstentriesofthislistparticipateinthefinalblend,uptoMaxCameras
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:CinemachineVirtualCameraBase
SeeAlsoReferenceCinemachineMixingCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicCinemachineVirtualCameraBase[]ChildCameras{
CopyC# JavaScript
Cinemachine
CinemachineMixingCameraFollowProperty
Notused
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:TransformImplementsICinemachineCameraFollow
SeeAlsoReferenceCinemachineMixingCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverrideTransformFollow{get;set;}
CopyC# JavaScript
Cinemachine
CinemachineMixingCameraLiveChildOrSelfProperty
Returnthelivechild.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:ICinemachineCameraImplementsICinemachineCameraLiveChildOrSelf
SeeAlsoReferenceCinemachineMixingCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverrideICinemachineCameraLiveChildOrSelf{
CopyC# JavaScript
Cinemachine
CinemachineMixingCameraLookAtProperty
Notused
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:TransformImplementsICinemachineCameraLookAt
SeeAlsoReferenceCinemachineMixingCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverrideTransformLookAt{get;set;}
CopyC# JavaScript
Cinemachine
CinemachineMixingCameraStateProperty
TheblendedCameraState
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:CameraStateImplementsICinemachineCameraState
SeeAlsoReferenceCinemachineMixingCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverrideCameraStateState{get;}
CopyC# JavaScript
Cinemachine
CinemachineMixingCameraMethods
TheCinemachineMixingCameratypeexposesthefollowingmembers.
Methods Name Description
AddPostPipelineStageHook Adelegatetohookintothestatecalculationpipeline.pipeline.SeeCinemachineCore.Stage.(Inheritedfrom
GetWeight(Int32) Gettheweightofthechildatanindex.
GetWeight(CinemachineVirtualCameraBase) GettheweightofthechildCinemachineVirtualCameraBase.
InvalidateListOfChildren Invalidatethecachedlistofchildcameras.
InvokePostPipelineStageCallback InvokesthePostPipelineStageDelegateforthiscamera,andupthehierarchyforall(Inheritedfrom
IsLiveChild Checkwhetherthevcamalivechildofthiscamera.(OverridesCinemachineVirtualCameraBase
MoveToTopOfPrioritySubqueue Whenmultiplevirtualcamerashavethehighestpriority,thereisLivecameraifthemostrecentonegoestothetopoftheprioritysubqueue.anditspeerssharethehighestpriority,thenthisvcamwillbecomeLive.(Inheritedfrom
OnDestroy Baseclassimplementationremovesthevirtualcamerafromthepriorityqueue.(Inheritedfrom
OnDisable Baseclassimplementationmakessurethepriorityqueueremainsup-to-date.
(Inheritedfrom
OnEnable Makessuretheinternalchildcacheisuptodate(OverridesCinemachineVirtualCameraBase
OnTransformChildrenChanged Makessuretheinternalchildcacheisuptodate
OnTransformParentChanged Baseclassimplementationmakessurethepriorityqueueremainsup-to-date.(Inheritedfrom
OnTransitionFromCamera Notificationthatthisvirtualcameraisgoinglive.(Inheritedfrom
OnValidate Makessuretheweightsarenon-negative(OverridesCinemachineVirtualCameraBase
PreUpdateChildCameras Thisiscalledpriortotheupdatingofthevcam'schildcameras,areupdatingonFixedUpdate,thenthiswillnotnecessarilybecalledLateUpdateinstead.(Inheritedfrom
RemovePostPipelineStageHook RemoveaPipelinestagehookcallback.(OverridesCinemachineVirtualCameraBase
ResolveFollow Returnsthisvcam'sFollowtarget,orifthatisnull,willretrun(Inheritedfrom
ResolveLookAt Returnsthisvcam'sLookAttarget,orifthatisnull,willretrun(Inheritedfrom
SetWeight(Int32,Single) Settheweightofthechildatanindex.
SetWeight(CinemachineVirtualCameraBase,Single)
SettheweightofthechildCinemachineVirtualCameraBase.
Start Baseclassimplementationdoesnothing.(Inheritedfrom
Update Baseclassimplementationmakessurethepriorityqueueremainsup-to-date.
(Inheritedfrom
UpdateCameraState CalledbyCinemachineCoreatdesignatedupdatetimecomputesandcachestheweightedblendofthetrackedcameras.(OverridesCinemachineVirtualCameraBase
ValidateListOfChildren Rebuildthecachedlistofchildcameras.
Top
SeeAlsoReferenceCinemachineMixingCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineMixingCameraGetWeightMethod
OverloadList Name Description
GetWeight(Int32) Gettheweightofthechildatanindex.
GetWeight(CinemachineVirtualCameraBase) GettheweightofthechildCinemachineVirtualCameraBase.
Top
SeeAlsoReferenceCinemachineMixingCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineMixingCameraGetWeightMethod(Int32)
Gettheweightofthechildatanindex.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
indexType:SystemInt32Thechildindex.OnlyimmediateCinemachineVirtualCameraBasechildrenarecounted.
ReturnValueType:SingleTheweightofthecamera.Validonlyifcameraisactiveandenabled.
SeeAlsoReferenceCinemachineMixingCameraClassGetWeightOverloadCinemachineNamespace
publicfloatGetWeight(
intindex
)
CopyC# JavaScript
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineMixingCameraGetWeightMethod(CinemachineVirtualCameraBase)
GettheweightofthechildCinemachineVirtualCameraBase.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
vcamType:CinemachineCinemachineVirtualCameraBaseThechildcamera.
ReturnValueType:SingleTheweightofthecamera.Validonlyifcameraisactiveandenabled.
SeeAlsoReferenceCinemachineMixingCameraClassGetWeightOverloadCinemachineNamespace
publicfloatGetWeight(
CinemachineVirtualCameraBasevcam
)
CopyC# JavaScript
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineMixingCameraInvalidateListOfChildrenMethod
Invalidatethecachedlistofchildcameras.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineMixingCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
protectedvoidInvalidateListOfChildren()
CopyC# JavaScript
Cinemachine
CinemachineMixingCameraIsLiveChildMethod
Checkwhetherthevcamalivechildofthiscamera.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
vcamType:CinemachineICinemachineCameraTheVirtualCameratocheck
ReturnValueType:BooleanTrueifthevcamiscurrentlyactivelyinfluencingthestateofthisvcamImplementsICinemachineCameraIsLiveChild(ICinemachineCamera)
SeeAlsoReferenceCinemachineMixingCameraClassCinemachineNamespace
publicoverrideboolIsLiveChild(
ICinemachineCameravcam
)
CopyC# JavaScript
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineMixingCameraOnEnableMethod
Makessuretheinternalchildcacheisuptodate
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineMixingCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
protectedoverridevoidOnEnable()
CopyC# JavaScript
Cinemachine
CinemachineMixingCameraOnTransformChildrenChangedMethod
Makessuretheinternalchildcacheisuptodate
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineMixingCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicvoidOnTransformChildrenChanged()
CopyC# JavaScript
Cinemachine
CinemachineMixingCameraOnValidateMethod
Makessuretheweightsarenon-negative
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineMixingCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
protectedoverridevoidOnValidate()
CopyC# JavaScript
Cinemachine
CinemachineMixingCameraRemovePostPipelineStageHookMethod
RemoveaPipelinestagehookcallback.Makesureitisremovedfromallthechildren.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
dType:CinemachineCinemachineVirtualCameraBaseOnPostPipelineStageDelegateThedelegatetoremove.
SeeAlsoReferenceCinemachineMixingCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverridevoidRemovePostPipelineStageHook(
CinemachineVirtualCameraBaseOnPostPipelineStageDelegate
)
CopyC# JavaScript
Cinemachine
CinemachineMixingCameraSetWeightMethod
OverloadList Name Description
SetWeight(Int32,Single) Settheweightofthechildatanindex.
SetWeight(CinemachineVirtualCameraBase,Single)
SettheweightofthechildCinemachineVirtualCameraBase.
Top
SeeAlsoReferenceCinemachineMixingCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineMixingCameraSetWeightMethod(Int32,Single)
Settheweightofthechildatanindex.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
indexType:SystemInt32Thechildindex.OnlyimmediateCinemachineVirtualCameraBasechildrenarecounted.
wType:SystemSingleTheweighttoset.Canbeanynon-negativenumber.
SeeAlsoReferenceCinemachineMixingCameraClassSetWeightOverloadCinemachineNamespace
publicvoidSetWeight(
intindex,
floatw
)
CopyC# JavaScript
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineMixingCameraSetWeightMethod(CinemachineVirtualCameraBase,Single)
SettheweightofthechildCinemachineVirtualCameraBase.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
vcamType:CinemachineCinemachineVirtualCameraBaseThechildcamera.
wType:SystemSingleTheweighttoset.Canbeanynon-negativenumber.
SeeAlsoReferenceCinemachineMixingCameraClass
publicvoidSetWeight(
CinemachineVirtualCameraBasevcam,
floatw
)
CopyC# JavaScript
SetWeightOverloadCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineMixingCameraUpdateCameraStateMethod
CalledbyCinemachineCoreatdesignatedupdatetimesothevcamcanpositionitselfandtrackitstargets.Thisimplementationcomputesandcachestheweightedblendofthetrackedcameras.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
worldUpType:Vector3DefaultworldUp,setbytheCinemachineBrain
deltaTimeType:SystemSingleDeltatimefortime-basedeffects(ignoreiflessthan0)
ImplementsICinemachineCameraUpdateCameraState(Vector3,Single)
SeeAlsoReference
publicoverridevoidUpdateCameraState(
Vector3worldUp,
floatdeltaTime
)
CopyC# JavaScript
CinemachineMixingCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineMixingCameraValidateListOfChildrenMethod
Rebuildthecachedlistofchildcameras.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineMixingCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
protectedvoidValidateListOfChildren()
CopyC# JavaScript
Cinemachine
CinemachineMixingCameraFields
TheCinemachineMixingCameratypeexposesthefollowingmembers.
Fields Name Description
CinemachineGUIDebuggerCallback Thisisdeprecated.Itisheretosupportthesoon-to-be-removedCinemachineDebuggerintheEditor.(InheritedfromCinemachineVirtualCameraBase
m_ExcludedPropertiesInInspector Inspectorcontrol-UseforhidingsectionsoftheInspectorUI.(InheritedfromCinemachineVirtualCameraBase
m_LockStageInInspector Inspectorcontrol-UseforenablingsectionsoftheInspectorUI.(InheritedfromCinemachineVirtualCameraBase
m_Priority Theprioritywilldeterminewhichcamerabecomesactivebasedonthestateofothercamerasandthiscamera.Highernumbershavegreaterpriority.(InheritedfromCinemachineVirtualCameraBase
m_Weight0 Weightofthefirsttrackedcamera
m_Weight1 Weightofthesecondtrackedcamera
m_Weight2 Weightofthethirdtrackedcamera
m_Weight3 Weightofthefourthtrackedcamera
m_Weight4 Weightofthefifthtrackedcamera
m_Weight5 Weightofthesixthtrackedcamera
m_Weight6 Weightoftheseventhtrackedcamera
m_Weight7 Weightoftheeighthtrackedcamera
MaxCameras Themaximumnumberoftrackedcameras.Ifyouwanttoaddcameras,doithereinthesourcecode,andbesuretoaddtheextramembervariablesandtomaketheappropriatechangesinGetWeight()andSetWeight().Theinspectorwillfigureitselfoutbasedonthisvalue.
OnPostPipelineStage Adelegatetohookintothestatecalculationpipeline.Implementaionmustbesuretocallthisaftereachpipelinestage,toallowotherservicestohookintothepipeline.SeeCinemachineCore.Stage.
(InheritedfromCinemachineVirtualCameraBase
Top
SeeAlsoReferenceCinemachineMixingCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineMixingCameram_Weight0Field
Weightofthefirsttrackedcamera
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineMixingCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Theweightofthefirsttrackedcamera")]
publicfloatm_Weight0
CopyC# JavaScript
Cinemachine
CinemachineMixingCameram_Weight1Field
Weightofthesecondtrackedcamera
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineMixingCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Theweightofthesecondtrackedcamera")]
publicfloatm_Weight1
CopyC# JavaScript
Cinemachine
CinemachineMixingCameram_Weight2Field
Weightofthethirdtrackedcamera
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineMixingCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Theweightofthethirdtrackedcamera")]
publicfloatm_Weight2
CopyC# JavaScript
Cinemachine
CinemachineMixingCameram_Weight3Field
Weightofthefourthtrackedcamera
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineMixingCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Theweightofthefourthtrackedcamera")]
publicfloatm_Weight3
CopyC# JavaScript
Cinemachine
CinemachineMixingCameram_Weight4Field
Weightofthefifthtrackedcamera
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineMixingCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Theweightofthefifthtrackedcamera")]
publicfloatm_Weight4
CopyC# JavaScript
Cinemachine
CinemachineMixingCameram_Weight5Field
Weightofthesixthtrackedcamera
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineMixingCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Theweightofthesixthtrackedcamera")]
publicfloatm_Weight5
CopyC# JavaScript
Cinemachine
CinemachineMixingCameram_Weight6Field
Weightoftheseventhtrackedcamera
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineMixingCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Theweightoftheseventhtrackedcamera")]
publicfloatm_Weight6
CopyC# JavaScript
Cinemachine
CinemachineMixingCameram_Weight7Field
Weightoftheeighthtrackedcamera
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineMixingCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Theweightoftheeighthtrackedcamera")]
publicfloatm_Weight7
CopyC# JavaScript
Cinemachine
CinemachineMixingCameraMaxCamerasField
Themaximumnumberoftrackedcameras.Ifyouwanttoaddmorecameras,doithereinthesourcecode,andbesuretoaddtheextramembervariablesandtomaketheappropriatechangesinGetWeight()andSetWeight().Theinspectorwillfigureitselfoutbasedonthisvalue.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Int32
SeeAlsoReferenceCinemachineMixingCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicconstintMaxCameras=8
CopyC# JavaScript
Cinemachine
CinemachineOrbitalTransposerClass
ThisisaCinemachineComponentinthetheBodysectionofthecomponentpipeline.Itsjobistopositionthecamerainavariablerelationshiptoathevcam'sFollowtargetobject,withoffsetsanddamping.Thiscomponentistypicallyusedtoimplementacamerathatfollowsitstarget.Itcanacceptplayerinputfromaninputdevice,whichallowstheplayertodynamicallycontroltherelationshipbetweenthecameraandthetarget,forexamplewithajoystick.TheOrbitalTransposerintroducestheconceptof__Heading__,whichisthedirectioninwhichthetargetismoving,andtheOrbitalTransposerwillattempttopositionthecamerainrelationshiptotheheading,whichisbydefaultdirectlybehindthetarget.YoucancontrolthedefaultrelationshipbyadjustingtheHeadingBiassetting.IfyouattachaninputcontrollertotheOrbitalTransposer,thentheplayercanalsocontrolthewaythecamerapositionsitselfinrelationtothetargetheading.Thisallowsthecameratomovetoanyspotonanorbitaroundthetarget.
InheritanceHierarchySystemObjectObjectComponentBehaviourMonoBehaviourCinemachineCinemachineComponentBaseCinemachineCinemachineTransposerCinemachineCinemachineOrbitalTransposer
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheCinemachineOrbitalTransposertypeexposesthefollowingmembers.
Properties Name Description
AngularDamping Dampingspeedsforeachofthe3axesofthetarget'srotation(InheritedfromCinemachineTransposer.)
Damping Dampingspeedsforeachofthe3axesoftheoffsetfromtarget(InheritedfromCinemachineTransposer.)
EffectiveOffset Getthetargetoffset,withsanitization(InheritedfromCinemachineTransposer.)
FollowTarget Returnstheownervcam'sFollowtarget.(InheritedfromCinemachineComponentBase.)
IsValid TrueifcomponentisenabledandhasavalidFollowtarget(Inheritedfrom
[DocumentationSortingAttribute(6f,DocumentationSortingAttribute
[AddComponentMenu("")]
[RequireComponent(typeof(CinemachinePipeline))]
[SaveDuringPlayAttribute]
publicclassCinemachineOrbitalTransposer:CinemachineTransposer
CopyC# JavaScript
CinemachineTransposer.)
LookAtTarget Returnstheownervcam'sLookAttarget.(InheritedfromCinemachineComponentBase.)
Stage GettheCinemachinePipelinestagethatthiscomponentimplements.AlwaysreturnstheBodystage(InheritedfromCinemachineTransposer.)
VcamState Returnstheownervcam'sCameraState.(InheritedfromCinemachineComponentBase.)
VirtualCamera GettheassociatedCinemachineVirtualCameraBase(InheritedfromCinemachineComponentBase.)
Top
Methods Name Description
GeTargetCameraPosition InternalAPIfortheInspectorEditor,soitcandrawamarkeratthetarget(InheritedfromCinemachineTransposer
GetReferenceOrientation InternalAPIfortheInspectorEditor,soitcandrawamarkeratthetarget(InheritedfromCinemachineTransposer
InitPrevFrameStateInfo Initializesthestateforpreviousframeifappropriate.
(InheritedfromCinemachineTransposer
MutateCameraState Positionsthevirtualcameraaccordingtothetransposerrules.(OverridesCinemachineTransposerMutateCameraState(CameraStateSingle).)
OnPositionDragged APIfortheeditor,toprocessapositiondragfromtheuser.Thisimplementationaddsthedeltatothefollowoffset,afterzeroingoutlocalx.(OverridesCinemachineTransposerOnPositionDragged(Vector3)
OnValidate (OverridesCinemachineTransposer
TrackTarget Positionsthevirtualcameraaccordingtothetransposerrules.(InheritedfromCinemachineTransposer
UpdateHeading Wheninslavemode,thisshouldbecalledonceandonlyonceeveryhrametoupdatetheheading.slavemode,thisiscalledautomatically.
Top
Fields Name Description
m_BindingMode Thecoordinatespacetousewheninterpretingtheoffsetfromthetarget(InheritedfromCinemachineTransposer.)
m_FollowOffset Thedistancewhichthetransposerwillattempttomaintainfromthe
transposersubject(InheritedfromCinemachineTransposer.)
m_Heading ThedefinitionofForward.Camerawillfollowbehind.
m_HeadingIsSlave Drivethex-axissettingprogrammatically.Automaticheadingupdatingwillbedisabled.
m_PitchDamping Howaggressivelythecameratriestotrackthetargetrotation'sXangle.Smallnumbersaremoreresponsive.Largernumbersgiveamoreheavyslowlyrespondingcamera.(InheritedfromCinemachineTransposer.)
m_RecenterToTargetHeading ParametersthatcontrolAutomatingHeadingRecentering
m_RollDamping Howaggressivelythecameratriestotrackthetargetrotation'sZangle.Smallnumbersaremoreresponsive.Largernumbersgiveamoreheavyslowlyrespondingcamera.(InheritedfromCinemachineTransposer.)
m_XAxis Axisrepresentingthecurrentheading.Valueisindegreesandrepresentsarotationabouttheupvector
m_XDamping HowaggressivelythecameratriestomaintaintheoffsetintheX-axis.Smallnumbersaremoreresponsive,rapidlytranslatingthecameratokeepthetarget'sx-axisoffset.Largernumbersgiveamoreheavyslowlyrespondingcamera.Usingdifferentsettingsperaxiscanyieldawiderangeofcamerabehaviors(InheritedfromCinemachineTransposer.)
m_YawDamping Howaggressivelythecameratriestotrackthetargetrotation'sYangle.Smallnumbersaremoreresponsive.Largernumbersgiveamoreheavyslowlyrespondingcamera.(InheritedfromCinemachineTransposer.)
m_YDamping HowaggressivelythecameratriestomaintaintheoffsetintheY-axis.Smallnumbersaremoreresponsive,rapidly
translatingthecameratokeepthetarget'sy-axisoffset.Largernumbersgiveamoreheavyslowlyrespondingcamera.Usingdifferentsettingsperaxiscanyieldawiderangeofcamerabehaviors(InheritedfromCinemachineTransposer.)
m_ZDamping HowaggressivelythecameratriestomaintaintheoffsetintheZ-axis.Smallnumbersaremoreresponsive,rapidlytranslatingthecameratokeepthetarget'sz-axisoffset.Largernumbersgiveamoreheavyslowlyrespondingcamera.Usingdifferentsettingsperaxiscanyieldawiderangeofcamerabehaviors(InheritedfromCinemachineTransposer.)
Top
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineOrbitalTransposerProperties
TheCinemachineOrbitalTransposertypeexposesthefollowingmembers.
Properties Name Description
AngularDamping Dampingspeedsforeachofthe3axesofthetarget'srotation(InheritedfromCinemachineTransposer.)
Damping Dampingspeedsforeachofthe3axesoftheoffsetfromtarget(InheritedfromCinemachineTransposer.)
EffectiveOffset Getthetargetoffset,withsanitization(InheritedfromCinemachineTransposer.)
FollowTarget Returnstheownervcam'sFollowtarget.(InheritedfromCinemachineComponentBase.)
IsValid TrueifcomponentisenabledandhasavalidFollowtarget(InheritedfromCinemachineTransposer.)
LookAtTarget Returnstheownervcam'sLookAttarget.(InheritedfromCinemachineComponentBase.)
Stage GettheCinemachinePipelinestagethatthiscomponentimplements.AlwaysreturnstheBodystage(InheritedfromCinemachineTransposer.)
VcamState Returnstheownervcam'sCameraState.(InheritedfromCinemachineComponentBase.)
VirtualCamera GettheassociatedCinemachineVirtualCameraBase(InheritedfromCinemachineComponentBase.)
Top
SeeAlsoReferenceCinemachineOrbitalTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineOrbitalTransposerMethods
TheCinemachineOrbitalTransposertypeexposesthefollowingmembers.
Methods Name Description
GeTargetCameraPosition InternalAPIfortheInspectorEditor,soitcandrawamarkeratthetarget(InheritedfromCinemachineTransposer
GetReferenceOrientation InternalAPIfortheInspectorEditor,soitcandrawamarkeratthetarget(InheritedfromCinemachineTransposer
InitPrevFrameStateInfo Initializesthestateforpreviousframeifappropriate.(InheritedfromCinemachineTransposer
MutateCameraState Positionsthevirtualcameraaccordingtothetransposerrules.(OverridesCinemachineTransposerMutateCameraState(CameraStateSingle).)
OnPositionDragged APIfortheeditor,toprocessapositiondragfromtheuser.Thisimplementationaddsthedeltatothefollowoffset,afterzeroingoutlocalx.(OverridesCinemachineTransposerOnPositionDragged(Vector3)
OnValidate (OverridesCinemachineTransposer
TrackTarget Positionsthevirtualcameraaccordingtothetransposerrules.(InheritedfromCinemachineTransposer
UpdateHeading Wheninslavemode,thisshouldbecalledonceandonlyonceeveryhrametoupdatetheheading.slavemode,thisiscalledautomatically.
Top
SeeAlsoReferenceCinemachineOrbitalTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineOrbitalTransposerMutateCameraStateMethod
Positionsthevirtualcameraaccordingtothetransposerrules.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
curStateType:CinemachineCameraStateThecurrentcamerastate
deltaTimeType:SystemSingleUsedfordamping.Iflessthan0,nodampingisdone.
SeeAlsoReferenceCinemachineOrbitalTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverridevoidMutateCameraState(
refCameraStatecurState,
floatdeltaTime
)
CopyC# JavaScript
Cinemachine
CinemachineOrbitalTransposerOnPositionDraggedMethod
APIfortheeditor,toprocessapositiondragfromtheuser.Thisimplementationaddsthedeltatothefollowoffset,afterzeroingoutlocalx.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
deltaType:Vector3Theamountdraggedthisframe
SeeAlsoReferenceCinemachineOrbitalTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverridevoidOnPositionDragged(
Vector3delta
)
CopyC# JavaScript
Cinemachine
CinemachineOrbitalTransposerOnValidateMethod
[Missing<summary>documentationfor"M:Cinemachine.CinemachineOrbitalTransposer.OnValidate"]
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineOrbitalTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
protectedoverridevoidOnValidate()
CopyC# JavaScript
Cinemachine
CinemachineOrbitalTransposerUpdateHeadingMethod
Wheninslavemode,thisshouldbecalledonceandonlyonceeveryhrametoupdatetheheading.Whennotinslavemode,thisiscalledautomatically.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
deltaTimeType:SystemSingle[Missing<paramname="deltaTime"/>documentationfor"M:Cinemachine.CinemachineOrbitalTransposer.UpdateHeading(System.Single,UnityEngine.Vector3)"]
upType:Vector3[Missing<paramname="up"/>documentationfor"M:Cinemachine.CinemachineOrbitalTransposer.UpdateHeading(System.Single,UnityEngine.Vector3)"]
SeeAlsoReference
publicvoidUpdateHeading(
floatdeltaTime,
Vector3up
)
CopyC# JavaScript
CinemachineOrbitalTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineOrbitalTransposerFields
TheCinemachineOrbitalTransposertypeexposesthefollowingmembers.
Fields Name Description
m_BindingMode Thecoordinatespacetousewheninterpretingtheoffsetfromthetarget(InheritedfromCinemachineTransposer.)
m_FollowOffset Thedistancewhichthetransposerwillattempttomaintainfromthetransposersubject(InheritedfromCinemachineTransposer.)
m_Heading ThedefinitionofForward.Camerawillfollowbehind.
m_HeadingIsSlave Drivethex-axissettingprogrammatically.Automaticheadingupdatingwillbedisabled.
m_PitchDamping Howaggressivelythecameratriestotrackthetargetrotation'sXangle.
Smallnumbersaremoreresponsive.Largernumbersgiveamoreheavyslowlyrespondingcamera.(InheritedfromCinemachineTransposer.)
m_RecenterToTargetHeading ParametersthatcontrolAutomatingHeadingRecentering
m_RollDamping Howaggressivelythecameratriestotrackthetargetrotation'sZangle.Smallnumbersaremoreresponsive.Largernumbersgiveamoreheavyslowlyrespondingcamera.(InheritedfromCinemachineTransposer.)
m_XAxis Axisrepresentingthecurrentheading.Valueisindegreesandrepresentsarotationabouttheupvector
m_XDamping HowaggressivelythecameratriestomaintaintheoffsetintheX-axis.Smallnumbersaremoreresponsive,rapidlytranslatingthecameratokeepthetarget'sx-axisoffset.Largernumbersgiveamoreheavyslowlyrespondingcamera.
Usingdifferentsettingsperaxiscanyieldawiderangeofcamerabehaviors(InheritedfromCinemachineTransposer.)
m_YawDamping Howaggressivelythecameratriestotrackthetargetrotation'sYangle.Smallnumbersaremoreresponsive.Largernumbersgiveamoreheavyslowlyrespondingcamera.(InheritedfromCinemachineTransposer.)
m_YDamping HowaggressivelythecameratriestomaintaintheoffsetintheY-axis.Smallnumbersaremoreresponsive,rapidlytranslatingthecameratokeepthetarget'sy-axisoffset.Largernumbersgiveamoreheavyslowlyrespondingcamera.Usingdifferentsettingsperaxiscanyieldawiderangeofcamerabehaviors(InheritedfromCinemachineTransposer.)
m_ZDamping HowaggressivelythecameratriestomaintaintheoffsetintheZ-axis.Smallnumbersaremore
responsive,rapidlytranslatingthecameratokeepthetarget'sz-axisoffset.Largernumbersgiveamoreheavyslowlyrespondingcamera.Usingdifferentsettingsperaxiscanyieldawiderangeofcamerabehaviors(InheritedfromCinemachineTransposer.)
Top
SeeAlsoReferenceCinemachineOrbitalTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineOrbitalTransposerm_HeadingField
ThedefinitionofForward.Camerawillfollowbehind.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachineOrbitalTransposerHeading
SeeAlsoReferenceCinemachineOrbitalTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[SpaceAttribute]
[TooltipAttribute("ThedefinitionofForward.Camerawillfollowbehind.")]
publicCinemachineOrbitalTransposerHeadingm_Heading
CopyC# JavaScript
Cinemachine
CinemachineOrbitalTransposerm_HeadingIsSlaveField
Drivethex-axissettingprogrammatically.Automaticheadingupdatingwillbedisabled.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Boolean
SeeAlsoReferenceCinemachineOrbitalTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[HideInInspector]
[NoSaveDuringPlayAttribute]
publicboolm_HeadingIsSlave
CopyC# JavaScript
Cinemachine
CinemachineOrbitalTransposerm_RecenterToTargetHeadingField
ParametersthatcontrolAutomatingHeadingRecentering
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachineOrbitalTransposerRecentering
SeeAlsoReferenceCinemachineOrbitalTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Automaticheadingrecentering.Thesettingsheredefineshowthecamerawillrepositionitselfintheabsenceofplayerinput.")]
publicCinemachineOrbitalTransposerRecenteringm_RecenterToTargetHeading
CopyC# JavaScript
Cinemachine
CinemachineOrbitalTransposerm_XAxisField
Axisrepresentingthecurrentheading.Valueisindegreesandrepresentsarotationabouttheupvector
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:AxisState
SeeAlsoReferenceCinemachineOrbitalTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("HeadingControl.Thesettingsherecontrolthebehaviourofthecamerainresponsetotheplayer'sinput.")]
publicAxisStatem_XAxis
CopyC# JavaScript
Cinemachine
CinemachineOrbitalTransposerHeadingStructure
Howthe"forward"directionisdefined.Orbitaloffsetisinrelationtotheforwarddirection.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheCinemachineOrbitalTransposerHeadingtypeexposesthefollowingmembers.
Constructors Name Description
CinemachineOrbitalTransposerHeading Constructor
Top
Fields Name Description
m_HeadingBias AdditionalYrotation
[SerializableAttribute]
[DocumentationSortingAttribute(6.2f,DocumentationSortingAttribute
publicstructHeading
CopyC# JavaScript
appliedtothetargetheading.Whenthisvalueis0,thecamerawillbeplacedbehindthetarget
m_HeadingDefinition Themethodbywhichthe'defaultheading'iscalculatedifrecenteringtotargetheadingisenabled
m_VelocityFilterStrength Sizeofthevelocitysamplingwindowfortargetheadingfilter.Usedonlyifderivingheadingfromtarget'smovement
Top
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineOrbitalTransposerHeadingConstructor
Constructor
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
defType:CinemachineCinemachineOrbitalTransposerHeadingHeadingDefinition[Missing<paramname="def"/>documentationfor"M:Cinemachine.CinemachineOrbitalTransposer.Heading.#ctor(Cinemachine.CinemachineOrbitalTransposer.Heading.HeadingDefinition,System.Int32,System.Single)"]
filterStrengthType:SystemInt32[Missing<paramname="filterStrength"/>documentationfor"M:Cinemachine.CinemachineOrbitalTransposer.Heading.#ctor(Cinemachine.CinemachineOrbitalTransposer.Heading.HeadingDefinition,System.Int32,System.Single)"]
biasType:SystemSingle[Missing<paramname="bias"/>documentationfor"M:Cinemachine.CinemachineOrbitalTransposer.Heading.#ctor(Cinemachine.CinemachineOrbitalTransposer.Heading.HeadingDefinition,System.Int32,System.Single)"]
publicHeading(
CinemachineOrbitalTransposerHeadingHeadingDefinition
intfilterStrength,
floatbias
)
CopyC# JavaScript
SeeAlsoReferenceCinemachineOrbitalTransposerHeadingStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
HeadingFields
TheCinemachineOrbitalTransposerHeadingtypeexposesthefollowingmembers.
Fields Name Description
m_HeadingBias AdditionalYrotationappliedtothetargetheading.Whenthisvalueis0,thecamerawillbeplacedbehindthetarget
m_HeadingDefinition Themethodbywhichthe'defaultheading'iscalculatedifrecenteringtotargetheadingisenabled
m_VelocityFilterStrength Sizeofthevelocitysamplingwindowfortargetheadingfilter.Usedonlyifderivingheadingfromtarget'smovement
Top
SeeAlsoReferenceCinemachineOrbitalTransposerHeadingStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineOrbitalTransposerHeadingField
AdditionalYrotationappliedtothetargetheading.Whenthisvalueis0,thecamerawillbeplacedbehindthetarget
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineOrbitalTransposerHeadingStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[RangeAttribute(-180f,180f)]
[TooltipAttribute("WherethecameraisplacedwhentheX-axisvalueiszero.ThisisarotationindegreesaroundtheYaxis.Whenthisvalueis0,thecamerawillbeplacedbehindthetarget.Nonzerooffsetswillrotatethezeropositionaroundthetarget.")]
publicfloatm_HeadingBias
CopyC# JavaScript
Cinemachine
CinemachineOrbitalTransposerHeadingField
Themethodbywhichthe'defaultheading'iscalculatedifrecenteringtotargetheadingisenabled
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachineOrbitalTransposerHeadingHeadingDefinition
SeeAlsoReferenceCinemachineOrbitalTransposerHeadingStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("How'forward'isdefined.Thecamerawillbeplacedbydefaultbehindthetarget.PositionDeltawillconsider'forward'tobethedirectioninwhichthetargetismoving.")]
publicCinemachineOrbitalTransposerHeadingHeadingDefinition
CopyC# JavaScript
Cinemachine
CinemachineOrbitalTransposerHeadingField
Sizeofthevelocitysamplingwindowfortargetheadingfilter.Usedonlyifderivingheadingfromtarget'smovement
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Int32
SeeAlsoReferenceCinemachineOrbitalTransposerHeadingStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[RangeAttribute(0f,10f)]
[TooltipAttribute("Sizeofthevelocitysamplingwindowfortargetheadingfilter.Thisfiltersoutirregularitiesinthetarget'smovement.Usedonlyifderivingheadingfromtarget'smovement(PositionDeltaorVelocity)")]
publicintm_VelocityFilterStrength
CopyC# JavaScript
Cinemachine
CinemachineOrbitalTransposerHeadingEnumeration
Setsthealgorithmfordeterminingthetarget'sheadingforpurposesofre-centeringthecamera
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Members
Membername Value Description
PositionDelta 0 Targetheadingcalculatedfromthedifferencebetweenitspositiononlastupdateandcurrentframe.
Velocity 1 TargetheadingcalculatedfromitsRigidbody'svelocity.IfnoRigidbodyexists,itwillfallbacktoHeadingDerivationMode.PositionDelta
TargetForward 2 TargetheadingcalculatedfromtheTargetTransform'seulerYangle
[DocumentationSortingAttribute(6.21f,DocumentationSortingAttribute
publicenumHeadingDefinition
CopyC# JavaScript
WorldForward 3 Defaultheadingisaconstantworldspaceheading.
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineOrbitalTransposerRecenteringStructure
Controlshowautomaticorbitrecenteringoccurs
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheCinemachineOrbitalTransposerRecenteringtypeexposesthefollowingmembers.
Methods Name Description
Validate CallthisfromOnValidate()
Top
Fields Name Description
m_enabled Ifchecked,willenableautomaticrecenteringof
[SerializableAttribute]
[DocumentationSortingAttribute(6.5f,DocumentationSortingAttribute
publicstructRecentering
CopyC# JavaScript
thecamerabasedontheheadingcalculationmode.IfFALSE,recentingisdisabled.
m_RecenteringTime Maximumangularspeedofrecentering.Willaccelerateintoanddecelerateoutofthis
m_RecenterWaitTime Ifnoinputhasbeendetected,thecamerawillwaitthislonginsecondsbeforemovingitsheadingtothedefaultheading.
Top
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
RecenteringMethods
TheCinemachineOrbitalTransposerRecenteringtypeexposesthefollowingmembers.
Methods Name Description
Validate CallthisfromOnValidate()
Top
SeeAlsoReferenceCinemachineOrbitalTransposerRecenteringStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineOrbitalTransposerRecenteringMethod
CallthisfromOnValidate()
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineOrbitalTransposerRecenteringStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicvoidValidate()
CopyC# JavaScript
Cinemachine
RecenteringFields
TheCinemachineOrbitalTransposerRecenteringtypeexposesthefollowingmembers.
Fields Name Description
m_enabled Ifchecked,willenableautomaticrecenteringofthecamerabasedontheheadingcalculationmode.IfFALSE,recentingisdisabled.
m_RecenteringTime Maximumangularspeedofrecentering.Willaccelerateintoanddecelerateoutofthis
m_RecenterWaitTime Ifnoinputhasbeendetected,thecamerawillwaitthislonginsecondsbeforemovingitsheadingtothedefaultheading.
Top
SeeAlsoReferenceCinemachineOrbitalTransposerRecenteringStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineOrbitalTransposerRecenteringField
Ifchecked,willenableautomaticrecenteringofthecamerabasedontheheadingcalculationmode.IfFALSE,recentingisdisabled.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Boolean
SeeAlsoReferenceCinemachineOrbitalTransposerRecenteringStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Ifchecked,willenableautomaticrecenteringofthecamerabasedontheheadingdefinition.Ifunchecked,recentingisdisabled.")]
publicboolm_enabled
CopyC# JavaScript
Cinemachine
CinemachineOrbitalTransposerRecenteringField
Maximumangularspeedofrecentering.Willaccelerateintoanddecelerateoutofthis
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineOrbitalTransposerRecenteringStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Maximumangularspeedofrecentering.Willaccelerateintoanddecelerateoutofthis.")]
publicfloatm_RecenteringTime
CopyC# JavaScript
Cinemachine
CinemachineOrbitalTransposerRecenteringField
Ifnoinputhasbeendetected,thecamerawillwaitthislonginsecondsbeforemovingitsheadingtothedefaultheading.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineOrbitalTransposerRecenteringStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Ifnoinputhasbeendetected,thecamerawillwaitthislonginsecondsbeforemovingitsheadingtothezeroposition.")]
publicfloatm_RecenterWaitTime
CopyC# JavaScript
Cinemachine
CinemachinePathClass
Definesaworld-spacepath,consistingofanarrayofwaypoints,eachofwhichhasposition,tangent,androllsettings.Bezierinterpolationisperformedbetweenthewaypoints,togetasmoothandcontinuouspath.
InheritanceHierarchySystemObjectObjectComponentBehaviourMonoBehaviourCinemachineCinemachinePathBaseCinemachineCinemachinePath
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheCinemachinePathtypeexposesthefollowingmembers.
Constructors Name Description
[DocumentationSortingAttribute(18f,DocumentationSortingAttribute
[AddComponentMenu("Cinemachine/CinemachinePath")]
[SaveDuringPlayAttribute]
publicclassCinemachinePath:CinemachinePathBase
CopyC# JavaScript
CinemachinePath
Top
Properties Name Description
DistanceCacheSampleStepsPerSegment Whencalculatingthedistancecache,samplethepaththismanytimesbetweenpoints(OverridesCinemachinePathBase
Looped Trueifthepathendsarejoinedtoformacontinuousloop(OverridesCinemachinePathBase
MaxPos Themaximumvalueforthepathposition(OverridesCinemachinePathBase
MinPos Theminimumvalueforthepathposition(OverridesCinemachinePathBase
PathLength Getthelengthofthepathindistanceunits.isnotvalid,thencallingthiswillregenerationofthepathdistancecache(InheritedfromCinemachinePathBase
Top
Methods Name Description
DistanceCacheIsValid Seewhetherthedistancecacheisvalid.valid,thenanycalltoGetPathLength()orGetPathPositionFromDistance()willpotentiallycostlyregenerationofthepathdistancecache(InheritedfromCinemachinePathBase
EvaluateOrientation Gettheorientationthecurveatapointalongthepath.(OverridesCinemachinePathBaseEvaluateOrientation(Single)
EvaluateOrientationAtUnit Gettheorientationthecurveatapointalongthepath.(InheritedfromCinemachinePathBase
EvaluatePosition Getaworldspacepositionofapointalongthepath(OverridesCinemachinePathBaseEvaluatePosition(Single)
EvaluatePositionAtUnit Getaworldspacepositionofapointalongthepath(InheritedfromCinemachinePathBase
EvaluateTangent Getthetangentofthecurveatapointalongthepath.(OverridesCinemachinePathBaseEvaluateTangent(Single)
EvaluateTangentAtUnit Getthetangentofthecurveatapointalongthepath.(InheritedfromCinemachinePathBase
FindClosestPoint Findtheclosestpointonthepathtoagivenworldspacetargetpoint.(InheritedfromCinemachinePathBase
GetPathDistanceFromPosition Getthepathposition(inpathunits)correspondingtothisdistancealongthepath.isnotvalid,thencallingthiswillcostlyregenerationofthepathdistancecache(InheritedfromCinemachinePathBase
GetPathPositionFromDistance Getthepathposition(inpathunits)correspondingtothisdistancealongthepath.isnotvalid,thencallingthiswillcostlyregenerationofthepathdistancecache
(InheritedfromCinemachinePathBase
InvalidateDistanceCache Callthisifthepathchangesinsuchawayastoaffectdistancesorothercachedpathelements(InheritedfromCinemachinePathBase
MaxUnit Getthemaximumvalue,forthegivenunitytype(InheritedfromCinemachinePathBase
MinUnit Gettheminimumvalue,forthegivenunitytype(InheritedfromCinemachinePathBase
NormalizePathDistance Normalizeadistancealongthepathbasedonthepathlength.Ifthedistancecacheisnotvalid,thencallingthiswilltriggerapotentiallycostlyregenerationofthepathdistancecache(InheritedfromCinemachinePathBase
NormalizePos Getanormalizedpathposition,takingspinsintoaccountiflooped(InheritedfromCinemachinePathBase
NormalizeUnit Normalizetheunit,sothatitliesbetweenMinUmitandMaxUnit(InheritedfromCinemachinePathBase
Top
Fields Name Description
m_Appearance Thesettingsthatcontrolhowthepathwillappearintheeditorsceneview.(InheritedfromCinemachinePathBase.)
m_Looped Ifchecked,thenthepathends
arejoinedtoformacontinuousloop
m_Resolution Pathsamplesperwaypoint(InheritedfromCinemachinePathBase.)
m_Waypoints Thewaypointsthatdefinethepath.Theywillbeinterpolatedusingabeziercurve
Top
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachinePathConstructor
[Missing<summary>documentationfor"M:Cinemachine.CinemachinePath.#ctor"]
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachinePathClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicCinemachinePath()
CopyC# JavaScript
Cinemachine
CinemachinePathProperties
TheCinemachinePathtypeexposesthefollowingmembers.
Properties Name Description
DistanceCacheSampleStepsPerSegment Whencalculatingthedistancecache,samplethepaththismanytimesbetweenpoints(OverridesCinemachinePathBase
Looped Trueifthepathendsarejoinedtoformacontinuousloop(OverridesCinemachinePathBase
MaxPos Themaximumvalueforthepathposition(OverridesCinemachinePathBase
MinPos Theminimumvalueforthepathposition(OverridesCinemachinePathBase
PathLength Getthelengthofthepathindistanceunits.isnotvalid,thencallingthiswillregenerationofthepathdistancecache(InheritedfromCinemachinePathBase
Top
SeeAlsoReferenceCinemachinePathClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachinePathDistanceCacheSampleStepsPerSegmentProperty
Whencalculatingthedistancecache,samplethepaththismanytimesbetweenpoints
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Int32
SeeAlsoReferenceCinemachinePathClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverrideintDistanceCacheSampleStepsPerSegment
CopyC# JavaScript
Cinemachine
CinemachinePathLoopedProperty
Trueifthepathendsarejoinedtoformacontinuousloop
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Boolean
SeeAlsoReferenceCinemachinePathClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverrideboolLooped{get;}
CopyC# JavaScript
Cinemachine
CinemachinePathMaxPosProperty
Themaximumvalueforthepathposition
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Single
SeeAlsoReferenceCinemachinePathClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverridefloatMaxPos{get;}
CopyC# JavaScript
Cinemachine
CinemachinePathMinPosProperty
Theminimumvalueforthepathposition
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Single
SeeAlsoReferenceCinemachinePathClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverridefloatMinPos{get;}
CopyC# JavaScript
Cinemachine
CinemachinePathMethods
TheCinemachinePathtypeexposesthefollowingmembers.
Methods Name Description
DistanceCacheIsValid Seewhetherthedistancecacheisvalid.valid,thenanycalltoGetPathLength()orGetPathPositionFromDistance()willpotentiallycostlyregenerationofthepathdistancecache(InheritedfromCinemachinePathBase
EvaluateOrientation Gettheorientationthecurveatapointalongthepath.(OverridesCinemachinePathBaseEvaluateOrientation(Single)
EvaluateOrientationAtUnit Gettheorientationthecurveatapointalongthepath.(InheritedfromCinemachinePathBase
EvaluatePosition Getaworldspacepositionofapointalongthepath(OverridesCinemachinePathBaseEvaluatePosition(Single)
EvaluatePositionAtUnit Getaworldspacepositionofapointalongthepath(InheritedfromCinemachinePathBase
EvaluateTangent Getthetangentofthecurveatapointalongthepath.(OverridesCinemachinePathBaseEvaluateTangent(Single)
EvaluateTangentAtUnit Getthetangentofthecurveatapointalongthepath.(InheritedfromCinemachinePathBase
FindClosestPoint Findtheclosestpointonthepathtoagivenworldspacetargetpoint.(InheritedfromCinemachinePathBase
GetPathDistanceFromPosition Getthepathposition(inpathunits)correspondingtothisdistancealongthepath.isnotvalid,thencallingthiswillcostlyregenerationofthepathdistancecache(InheritedfromCinemachinePathBase
GetPathPositionFromDistance Getthepathposition(inpathunits)correspondingtothisdistancealongthepath.isnotvalid,thencallingthiswillcostlyregenerationofthepathdistancecache(InheritedfromCinemachinePathBase
InvalidateDistanceCache Callthisifthepathchangesinsuchawayastoaffectdistancesorothercachedpathelements(InheritedfromCinemachinePathBase
MaxUnit Getthemaximumvalue,forthegivenunitytype(InheritedfromCinemachinePathBase
MinUnit Gettheminimumvalue,forthegivenunitytype(InheritedfromCinemachinePathBase
NormalizePathDistance Normalizeadistancealongthepathbasedonthepathlength.Ifthedistancecacheisnotvalid,thencallingthiswilltriggerapotentiallycostlyregenerationofthepathdistancecache(InheritedfromCinemachinePathBase
NormalizePos Getanormalizedpathposition,takingspinsintoaccountiflooped(InheritedfromCinemachinePathBase
NormalizeUnit Normalizetheunit,sothatitliesbetweenMinUmitandMaxUnit(InheritedfromCinemachinePathBase
Top
SeeAlsoReferenceCinemachinePathClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachinePathEvaluateOrientationMethod
Gettheorientationthecurveatapointalongthepath.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
posType:SystemSinglePostionalongthepath.Neednotbenormalized.
ReturnValueType:QuaternionWorld-spaceorientationofthepath,asdefinedbytangent,up,androll.
SeeAlsoReferenceCinemachinePathClassCinemachineNamespace
VisittheCinemachineForum
publicoverrideQuaternionEvaluateOrientation(
floatpos
)
CopyC# JavaScript
https://unity3d.com/legal/terms-of-service
Cinemachine
CinemachinePathEvaluatePositionMethod
Getaworldspacepositionofapointalongthepath
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
posType:SystemSinglePostionalongthepath.Neednotbenormalized.
ReturnValueType:Vector3World-spacepositionofthepointalongatpathatpos
SeeAlsoReferenceCinemachinePathClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverrideVector3EvaluatePosition(
floatpos
)
CopyC# JavaScript
Cinemachine
CinemachinePathEvaluateTangentMethod
Getthetangentofthecurveatapointalongthepath.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
posType:SystemSinglePostionalongthepath.Neednotbenormalized.
ReturnValueType:Vector3World-spacedirectionofthepathtangent.Lengthofthevectorrepresentsthetangentstrength
SeeAlsoReferenceCinemachinePathClassCinemachineNamespace
VisittheCinemachineForum
publicoverrideVector3EvaluateTangent(
floatpos
)
CopyC# JavaScript
https://unity3d.com/legal/terms-of-service
Cinemachine
CinemachinePathFields
TheCinemachinePathtypeexposesthefollowingmembers.
Fields Name Description
m_Appearance Thesettingsthatcontrolhowthepathwillappearintheeditorsceneview.(InheritedfromCinemachinePathBase.)
m_Looped Ifchecked,thenthepathendsarejoinedtoformacontinuousloop
m_Resolution Pathsamplesperwaypoint(InheritedfromCinemachinePathBase.)
m_Waypoints Thewaypointsthatdefinethepath.Theywillbeinterpolatedusingabeziercurve
Top
SeeAlsoReferenceCinemachinePathClassCinemachineNamespace
VisittheCinemachineForum
https://unity3d.com/legal/terms-of-service
Cinemachine
CinemachinePathm_LoopedField
Ifchecked,thenthepathendsarejoinedtoformacontinuousloop
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Boolean
SeeAlsoReferenceCinemachinePathClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Ifchecked,thenthepathendsarejoinedtoformacontinuousloop.")]
publicboolm_Looped
CopyC# JavaScript
Cinemachine
CinemachinePathm_WaypointsField
Thewaypointsthatdefinethepath.Theywillbeinterpolatedusingabeziercurve
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachinePathWaypoint
SeeAlsoReferenceCinemachinePathClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Thewaypointsthatdefinethepath.Theywillbeinterpolatedusingabeziercurve.")]
publicCinemachinePathWaypoint[]m_Waypoints
CopyC# JavaScript
Cinemachine
CinemachinePathWaypointStructure
Awaypointalongthepath
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheCinemachinePathWaypointtypeexposesthefollowingmembers.
Fields Name Description
position Positioninpath-localspace
roll Definestherollofthepathatthiswaypoint.Theotherorientationaxesareinferredfromthetangentandworldup.
tangent Offsetfromtheposition,whichdefinesthetangentofthecurveatthewaypoint.Thelengthofthetangentencodesthestrengthofthebezierhandle.Thesamehandleisusedsymmetricallyonboth
[SerializableAttribute]
[DocumentationSortingAttribute(18.2f,DocumentationSortingAttribute
publicstructWaypoint
CopyC# JavaScript
sidesofthewaypoint,toensuresmoothness.
Top
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
WaypointFields
TheCinemachinePathWaypointtypeexposesthefollowingmembers.
Fields Name Description
position Positioninpath-localspace
roll Definestherollofthepathatthiswaypoint.Theotherorientationaxesareinferredfromthetangentandworldup.
tangent Offsetfromtheposition,whichdefinesthetangentofthecurveatthewaypoint.Thelengthofthetangentencodesthestrengthofthebezierhandle.Thesamehandleisusedsymmetricallyonbothsidesofthewaypoint,toensuresmoothness.
Top
SeeAlsoReferenceCinemachinePathWaypointStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachinePathWaypointpositionField
Positioninpath-localspace
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Vector3
SeeAlsoReferenceCinemachinePathWaypointStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Positioninpath-localspace")]
publicVector3position
CopyC# JavaScript
Cinemachine
CinemachinePathWaypointrollField
Definestherollofthepathatthiswaypoint.Theotherorientationaxesareinferredfromthetangentandworldup.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachinePathWaypointStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Definestherollofthepathatthiswaypoint.Theotherorientationaxesareinferredfromthetangentandworldup.")]
publicfloatroll
CopyC# JavaScript
Cinemachine
CinemachinePathWaypointtangentField
Offsetfromtheposition,whichdefinesthetangentofthecurveatthewaypoint.Thelengthofthetangentencodesthestrengthofthebezierhandle.Thesamehandleisusedsymmetricallyonbothsidesofthewaypoint,toensuresmoothness.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Vector3
SeeAlsoReferenceCinemachinePathWaypointStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Offsetfromtheposition,whichdefinesthetangentofthecurveatthewaypoint.Thelengthofthetangentencodesthestrengthofthebezierhandle.Thesamehandleisusedsymmetricallyonbothsidesofthewaypoint,toensuresmoothness.")]
publicVector3tangent
CopyC# JavaScript
Cinemachine
CinemachinePathBaseClass
Abstractbaseclassforaworld-spacepath,suitableforacameradollytrack.
InheritanceHierarchySystemObjectObjectComponentBehaviourMonoBehaviourCinemachineCinemachinePathBaseCinemachineCinemachinePathCinemachineCinemachineSmoothPath
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheCinemachinePathBasetypeexposesthefollowingmembers.
Constructors Name Description
CinemachinePathBase
Top
publicabstractclassCinemachinePathBase:MonoBehaviour
CopyC# JavaScript
Properties Name Description
DistanceCacheSampleStepsPerSegment Whencalculatingthedistancecache,samplethepaththismanytimesbetweenpoints
Looped Trueifthepathendsarejoinedtoformacontinuousloop
MaxPos Themaximumvalueforthepathposition
MinPos Theminimumvalueforthepathposition
PathLength Getthelengthofthepathindistanceunits.Ifthe
distancecacheisnotvalid,thencallingthiswilltriggerapotentiallycostlyregenerationofthepathdistancecache
Top
Methods Name Description
DistanceCacheIsValid Seewhetherthedistancecacheisvalid.Ifit'snotvalid,thenanycalltoGetPathLength()orGetPathPositionFromDistance()willtriggerapotentiallycostlyregenerationofthepathdistancecache
EvaluateOrientation Gettheorientationthecurveatapointalongthepath.
EvaluateOrientationAtUnit Gettheorientationthecurveatapointalongthepath.
EvaluatePosition Getaworldspacepositionofapointalongthepath
EvaluatePositionAtUnit Getaworldspacepositionofapointalongthepath
EvaluateTangent Getthetangentofthecurveatapointalongthepath.
EvaluateTangentAtUnit Getthetangentofthecurveatapointalongthepath.
FindClosestPoint Findtheclosestpointonthepathtoagivenworldspacetargetpoint.
GetPathDistanceFromPosition Getthepathposition(inpathunits)correspondingtothisdistancealongthepath.Ifthedistancecacheisnotvalid,thencallingthiswilltriggerapotentiallycostlyregenerationofthepathdistancecache
GetPathPositionFromDistance Getthepathposition(inpathunits)correspondingtothisdistancealongthepath.Ifthedistancecacheisnotvalid,thencallingthiswilltriggerapotentiallycostlyregenerationofthepathdistancecache
InvalidateDistanceCache Callthisifthepathchangesinsuchawayastoaffectdistancesorothercachedpathelements
MaxUnit Getthemaximumvalue,forthegivenunitytype
MinUnit Gettheminimumvalue,forthegivenunitytype
NormalizePathDistance Normalizeadistancealongthepathbasedonthepathlength.
Ifthedistancecacheisnotvalid,thencallingthiswilltriggerapotentiallycostlyregenerationofthepathdistancecache
NormalizePos Getanormalizedpathposition,takingspinsintoaccountiflooped
NormalizeUnit Normalizetheunit,sothatitliesbetweenMinUmitandMaxUnit
Top
Fields Name Description
m_Appearance Thesettingsthatcontrolhowthepathwillappearintheeditorsceneview.
m_Resolution Pathsamplesperwaypoint
Top
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachinePathBaseConstructor
[Missing<summary>documentationfor"M:Cinemachine.CinemachinePathBase.#ctor"]
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachinePathBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
protectedCinemachinePathBase()
CopyC# JavaScript
Cinemachine
CinemachinePathBaseProperties
TheCinemachinePathBasetypeexposesthefollowingmembers.
Properties Name Description
DistanceCacheSampleStepsPerSegment Whencalculatingthedistancecache,samplethepaththismanytimesbetweenpoints
Looped Trueifthepathendsarejoinedtoformacontinuousloop
MaxPos Themaximumvalueforthepathposition
MinPos Theminimumvalueforthe
pathposition
PathLength Getthelengthofthepathindistanceunits.Ifthedistancecacheisnotvalid,thencallingthiswilltriggerapotentiallycostlyregenerationofthepathdistancecache
Top
SeeAlsoReferenceCinemachinePathBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachinePathBaseDistanceCacheSampleStepsPerSegmentProperty
Whencalculatingthedistancecache,samplethepaththismanytimesbetweenpoints
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Int32
SeeAlsoReferenceCinemachinePathBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicabstractintDistanceCacheSampleStepsPerSegment
CopyC# JavaScript
Cinemachine
CinemachinePathBaseLoopedProperty
Trueifthepathendsarejoinedtoformacontinuousloop
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Boolean
SeeAlsoReferenceCinemachinePathBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicabstractboolLooped{get;}
CopyC# JavaScript
Cinemachine
CinemachinePathBaseMaxPosProperty
Themaximumvalueforthepathposition
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Single
SeeAlsoReferenceCinemachinePathBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicabstractfloatMaxPos{get;}
CopyC# JavaScript
Cinemachine
CinemachinePathBaseMinPosProperty
Theminimumvalueforthepathposition
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Single
SeeAlsoReferenceCinemachinePathBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicabstractfloatMinPos{get;}
CopyC# JavaScript
Cinemachine
CinemachinePathBasePathLengthProperty
Getthelengthofthepathindistanceunits.Ifthedistancecacheisnotvalid,thencallingthiswilltriggerapotentiallycostlyregenerationofthepathdistancecache
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
ReturnValueType:SingleThelengthofthepathindistanceunits,whensampledatthisrate
SeeAlsoReferenceCinemachinePathBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicfloatPathLength{get;}
CopyC# JavaScript
Cinemachine
CinemachinePathBaseMethods
TheCinemachinePathBasetypeexposesthefollowingmembers.
Methods Name Description
DistanceCacheIsValid Seewhetherthedistancecacheisvalid.Ifit'snotvalid,thenanycalltoGetPathLength()orGetPathPositionFromDistance()willtriggerapotentiallycostlyregenerationofthepathdistancecache
EvaluateOrientation Gettheorientationthecurveatapointalongthepath.
EvaluateOrientationAtUnit Gettheorientationthecurveatapointalongthepath.
EvaluatePosition Getaworldspacepositionofapointalongthepath
EvaluatePositionAtUnit Getaworldspacepositionofapointalongthepath
EvaluateTangent Getthetangentofthecurveatapointalongthepath.
EvaluateTangentAtUnit Getthetangentofthecurveatapointalongthepath.
FindClosestPoint Findtheclosestpointonthe
pathtoagivenworldspacetargetpoint.
GetPathDistanceFromPosition Getthepathposition(inpathunits)correspondingtothisdistancealongthepath.Ifthedistancecacheisnotvalid,thencallingthiswilltriggerapotentiallycostlyregenerationofthepathdistancecache
GetPathPositionFromDistance Getthepathposition(inpathunits)correspondingtothisdistancealongthepath.Ifthedistancecacheisnotvalid,thencallingthiswilltriggerapotentiallycostlyregenerationofthepathdistancecache
InvalidateDistanceCache Callthisifthepathchangesinsuchawayastoaffectdistancesorothercachedpathelements
MaxUnit Getthemaximumvalue,forthegivenunitytype
MinUnit Gettheminimumvalue,forthegivenunitytype
NormalizePathDistance Normalizeadistancealongthepathbasedonthepathlength.Ifthedistancecacheisnotvalid,thencallingthiswilltriggerapotentiallycostlyregenerationofthepathdistancecache
NormalizePos Getanormalizedpathposition,
takingspinsintoaccountiflooped
NormalizeUnit Normalizetheunit,sothatitliesbetweenMinUmitandMaxUnit
Top
SeeAlsoReferenceCinemachinePathBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachinePathBaseDistanceCacheIsValidMethod
Seewhetherthedistancecacheisvalid.Ifit'snotvalid,thenanycalltoGetPathLength()orGetPathPositionFromDistance()willtriggerapotentiallycostlyregenerationofthepathdistancecache
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
ReturnValueType:BooleanWhetherthecacheisvalidforthissamplingrate
SeeAlsoReferenceCinemachinePathBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicboolDistanceCacheIsValid()
CopyC# JavaScript
Cinemachine
CinemachinePathBaseEvaluateOrientationMethod
Gettheorientationthecurveatapointalongthepath.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
posType:SystemSinglePostionalongthepath.Neednotbenormalized.
ReturnValueType:QuaternionWorld-spaceorientationofthepath
SeeAlsoReferenceCinemachinePathBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicabstractQuaternionEvaluateOrientation(
floatpos
)
CopyC# JavaScript
Cinemachine
CinemachinePathBaseEvaluateOrientationAtUnitMethod
Gettheorientationthecurveatapointalongthepath.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
posType:SystemSinglePostionalongthepath.Neednotbenormalized.
unitsType:CinemachineCinemachinePathBasePositionUnitsTheunittousewheninterpretingthevalueofpos.
ReturnValueType:QuaternionWorld-spaceorientationofthepath
SeeAlsoReferenceCinemachinePathBaseClass
publicQuaternionEvaluateOrientationAtUnit(
floatpos,
CinemachinePathBasePositionUnitsunits
)
CopyC# JavaScript
CinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachinePathBaseEvaluatePositionMethod
Getaworldspacepositionofapointalongthepath
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
posType:SystemSinglePostionalongthepath.Neednotbenormalized.
ReturnValueType:Vector3World-spacepositionofthepointalongatpathatpos
SeeAlsoReferenceCinemachinePathBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicabstractVector3EvaluatePosition(
floatpos
)
CopyC# JavaScript
Cinemachine
CinemachinePathBaseEvaluatePositionAtUnitMethod
Getaworldspacepositionofapointalongthepath
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
posType:SystemSinglePostionalongthepath.Neednotbenormalized.
unitsType:CinemachineCinemachinePathBasePositionUnitsTheunittousewheninterpretingthevalueofpos.
ReturnValueType:Vector3World-spacepositionofthepointalongatpathatpos
SeeAlsoReferenceCinemachinePathBaseClass
publicVector3EvaluatePositionAtUnit(
floatpos,
CinemachinePathBasePositionUnitsunits
)
CopyC# JavaScript
CinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachinePathBaseEvaluateTangentMethod
Getthetangentofthecurveatapointalongthepath.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
posType:SystemSinglePostionalongthepath.Neednotbenormalized.
ReturnValueType:Vector3World-spacedirectionofthepathtangent.Lengthofthevectorrepresentsthetangentstrength
SeeAlsoReferenceCinemachinePathBaseClassCinemachineNamespace
VisittheCinemachineForum
publicabstractVector3EvaluateTangent(
floatpos
)
CopyC# JavaScript
https://unity3d.com/legal/terms-of-service
Cinemachine
CinemachinePathBaseEvaluateTangentAtUnitMethod
Getthetangentofthecurveatapointalongthepath.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
posType:SystemSinglePostionalongthepath.Neednotbenormalized.
unitsType:CinemachineCinemachinePathBasePositionUnitsTheunittousewheninterpretingthevalueofpos.
ReturnValueType:Vector3World-spacedirectionofthepathtangent.Lengthofthevectorrepresentsthetangentstrength
SeeAlsoReference
publicVector3EvaluateTangentAtUnit(
floatpos,
CinemachinePathBasePositionUnitsunits
)
CopyC# JavaScript
CinemachinePathBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachinePathBaseFindClosestPointMethod
Findtheclosestpointonthepathtoagivenworldspacetargetpoint.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
pType:Vector3Worldspacetargetthatwewanttoapproach
startSegmentType:SystemInt32Inwhatsegmentofthepathtostartthesearch.ASegmentisasectionofpathbetween2waypoints.
searchRadiusType:SystemInt32HowmanysegmentsoneithersideofthestartSegmenttosearch.-1meansnolimit,i.e.searchtheentirepath
stepsPerSegmentType:SystemInt32
publicvirtualfloatFindClosestPoint(
Vector3p,
intstartSegment,
intsearchRadius,
intstepsPerSegment
)
CopyC# JavaScript
Wesearchasegmentbydividingitintothismanystraightpieces.Thehigherthenumber,themoreaccuratetheresult,butperformanceisproportionallyslowerforhighernumbers
ReturnValueType:SingleThepositionalongthepaththatisclosesttothetargetpoint.ThevalueisinPathUnits,notDistanceunits.
RemarksPerformancecouldbeimprovedbycheckingtheboundingpolygonofeachsegment,andonlyenteringthebestsegment(s)
SeeAlsoReferenceCinemachinePathBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachinePathBaseGetPathDistanceFromPositionMethod
Getthepathposition(inpathunits)correspondingtothisdistancealongthepath.Ifthedistancecacheisnotvalid,thencallingthiswilltriggerapotentiallycostlyregenerationofthepathdistancecache
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
posType:SystemSingle[Missing<paramname="pos"/>documentationfor"M:Cinemachine.CinemachinePathBase.GetPathDistanceFromPosition(System.Single)"]
ReturnValueType:SingleThelengthofthepathindistanceunits,whensampledatthisrate
SeeAlsoReferenceCinemachinePathBaseClassCinemachineNamespace
publicfloatGetPathDistanceFromPosition(
floatpos
)
CopyC# JavaScript
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachinePathBaseGetPathPositionFromDistanceMethod
Getthepathposition(inpathunits)correspondingtothisdistancealongthepath.Ifthedistancecacheisnotvalid,thencallingthiswilltriggerapotentiallycostlyregenerationofthepathdistancecache
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
distanceType:SystemSingle[Missing<paramname="distance"/>documentationfor"M:Cinemachine.CinemachinePathBase.GetPathPositionFromDistance(System.Single)"]
ReturnValueType:SingleThelengthofthepathindistanceunits,whensampledatthisrate
SeeAlsoReferenceCinemachinePathBaseClassCinemachineNamespace
publicfloatGetPathPositionFromDistance(
floatdistance
)
CopyC# JavaScript
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachinePathBaseInvalidateDistanceCacheMethod
Callthisifthepathchangesinsuchawayastoaffectdistancesorothercachedpathelements
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachinePathBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicvirtualvoidInvalidateDistanceCache()
CopyC# JavaScript
Cinemachine
CinemachinePathBaseMaxUnitMethod
Getthemaximumvalue,forthegivenunitytype
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
unitsType:CinemachineCinemachinePathBasePositionUnitsTheuniottype
ReturnValueType:SingleThemaximumallowablevalueforthispath
SeeAlsoReferenceCinemachinePathBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicfloatMaxUnit(
CinemachinePathBasePositionUnitsunits
)
CopyC# JavaScript
Cinemachine
CinemachinePathBaseMinUnitMethod
Gettheminimumvalue,forthegivenunitytype
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
unitsType:CinemachineCinemachinePathBasePositionUnitsTheuniottype
ReturnValueType:SingleTheminimumallowablevalueforthispath
SeeAlsoReferenceCinemachinePathBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicfloatMinUnit(
CinemachinePathBasePositionUnitsunits
)
CopyC# JavaScript
Cinemachine
CinemachinePathBaseNormalizePathDistanceMethod
Normalizeadistancealongthepathbasedonthepathlength.Ifthedistancecacheisnotvalid,thencallingthiswilltriggerapotentiallycostlyregenerationofthepathdistancecache
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
distanceType:SystemSingleThedistancetonormalize
ReturnValueType:SingleThenormalizeddistance,rangingfrom0topathlength
SeeAlsoReferenceCinemachinePathBaseClassCinemachineNamespace
publicfloatNormalizePathDistance(
floatdistance
)
CopyC# JavaScript
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachinePathBaseNormalizePosMethod
Getanormalizedpathposition,takingspinsintoaccountiflooped
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
posType:SystemSinglePositionalongthepath
ReturnValueType:SingleNormalizedposition,betweenMinPosandMaxPos
SeeAlsoReferenceCinemachinePathBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicvirtualfloatNormalizePos(
floatpos
)
CopyC# JavaScript
Cinemachine
CinemachinePathBaseNormalizeUnitMethod
Normalizetheunit,sothatitliesbetweenMinUmitandMaxUnit
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
posType:SystemSingleThevaluetobenormalized
unitsType:CinemachineCinemachinePathBasePositionUnitsTheunittype
ReturnValueType:SingleThenormalizedvalueofpos,betweenMinUnitandMaxUnit
SeeAlsoReferenceCinemachinePathBaseClass
publicvirtualfloatNormalizeUnit(
floatpos,
CinemachinePathBasePositionUnitsunits
)
CopyC# JavaScript
CinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachinePathBaseFields
TheCinemachinePathBasetypeexposesthefollowingmembers.
Fields Name Description
m_Appearance Thesettingsthatcontrolhowthepathwillappearintheeditorsceneview.
m_Resolution Pathsamplesperwaypoint
Top
SeeAlsoReferenceCinemachinePathBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachinePathBasem_AppearanceField
Thesettingsthatcontrolhowthepathwillappearintheeditorsceneview.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachinePathBaseAppearance
SeeAlsoReferenceCinemachinePathBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Thesettingsthatcontrolhowthepathwillappearintheeditorsceneview.")]
publicCinemachinePathBaseAppearancem_Appearance
CopyC# JavaScript
Cinemachine
CinemachinePathBasem_ResolutionField
Pathsamplesperwaypoint
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Int32
SeeAlsoReferenceCinemachinePathBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Pathsamplesperwaypoint.Thisisusedforcalculatingpathdistances.")]
[RangeAttribute(1f,100f)]
publicintm_Resolution
CopyC# JavaScript
Cinemachine
CinemachinePathBaseAppearanceClass
Thisclassholdsthesettingsthatcontrolhowthepathwillappearintheeditorsceneview.Thepathisnotvisibleinthegameview
InheritanceHierarchySystemObjectCinemachineCinemachinePathBaseAppearance
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheCinemachinePathBaseAppearancetypeexposesthefollowingmembers.
Constructors Name Description
CinemachinePathBaseAppearance
Top
Fields
[SerializableAttribute]
[DocumentationSortingAttribute(18.1f,DocumentationSortingAttribute
publicclassAppearance
CopyC# JavaScript
Name Description
inactivePathColor
pathColor
width
Top
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachinePathBaseAppearanceConstructor
[Missing<summary>documentationfor"M:Cinemachine.CinemachinePathBase.Appearance.#ctor"]
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachinePathBaseAppearanceClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicAppearance()
CopyC# JavaScript
Cinemachine
AppearanceFields
TheCinemachinePathBaseAppearancetypeexposesthefollowingmembers.
Fields Name Description
inactivePathColor
pathColor
width
Top
SeeAlsoReferenceCinemachinePathBaseAppearanceClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachinePathBaseAppearanceinactivePathColorField
[Missing<summary>documentationfor"F:Cinemachine.CinemachinePathBase.Appearance.inactivePathColor"]
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Color
SeeAlsoReferenceCinemachinePathBaseAppearanceClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Thecolorofthepathitselfwhenitisinactiveintheeditor")]
publicColorinactivePathColor
CopyC# JavaScript
Cinemachine
CinemachinePathBaseAppearancepathColorField
[Missing<summary>documentationfor"F:Cinemachine.CinemachinePathBase.Appearance.pathColor"]
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Color
SeeAlsoReferenceCinemachinePathBaseAppearanceClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Thecolorofthepathitselfwhenitisactiveintheeditor")]
publicColorpathColor
CopyC# JavaScript
Cinemachine
CinemachinePathBaseAppearancewidthField
[Missing<summary>documentationfor"F:Cinemachine.CinemachinePathBase.Appearance.width"]
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachinePathBaseAppearanceClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Thewidthoftherailroad-tracksthataredrawntorepresentthepath")]
[RangeAttribute(0f,10f)]
publicfloatwidth
CopyC# JavaScript
Cinemachine
CinemachinePathBasePositionUnitsEnumeration
HowtointerpretthePathPosition
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Members
Membername Value Description
PathUnits 0 UsePathPositionunits,where0isfirstwaypoint,1issecondwaypoint,etc
Distance 1 UseDistanceAlongPath.PathwillbesampledaccordingtoitsResolutionsetting,andadistancelookuptablewillbecachedinternally
SeeAlsoReference
publicenumPositionUnits
CopyC# JavaScript
CinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachinePipelineClass
InternalcontainerforCinemachineComponentBase.Doesnothingbutcontain.
InheritanceHierarchySystemObjectObjectComponentBehaviourMonoBehaviourCinemachineCinemachinePipeline
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheCinemachinePipelinetypeexposesthefollowingmembers.
Constructors Name Description
CinemachinePipeline
Top
SeeAlso
[AddComponentMenu("")]
publicsealedclassCinemachinePipeline:MonoBehaviour
CopyC# JavaScript
ReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachinePipelineConstructor
[Missing<summary>documentationfor"M:Cinemachine.CinemachinePipeline.#ctor"]
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachinePipelineClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicCinemachinePipeline()
CopyC# JavaScript
Cinemachine
CinemachinePOVClass
ThisisaCinemachineComponentintheAimsectionofthecomponentpipeline.Itsjobistoaimthecamerainresponsetotheuser'smouseorjoystickinput.Thecomposerdoesnotchangethecamera'sposition.Itwillonlypanandtiltthecamerawhereitis,inordertogetthedesiredframing.Tomovethecamera,youhavetousethevirtualcamera'sBodysection.
InheritanceHierarchySystemObjectObjectComponentBehaviourMonoBehaviourCinemachineCinemachineComponentBaseCinemachineCinemachinePOV
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheCinemachinePOVtypeexposesthefollowingmembers.
Constructors
[DocumentationSortingAttribute(23f,DocumentationSortingAttribute
[AddComponentMenu("")]
[RequireComponent(typeof(CinemachinePipeline))]
[SaveDuringPlayAttribute]
publicclassCinemachinePOV:CinemachineComponentBase
CopyC# JavaScript
Name Description
CinemachinePOV
Top
Properties Name Description
FollowTarget Returnstheownervcam'sFollowtarget.(InheritedfromCinemachineComponentBase.)
IsValid TrueifcomponentisenabledandhasaLookAtdefined(OverridesCinemachineComponentBaseIsValid.)
LookAtTarget Returnstheownervcam'sLookAttarget.(InheritedfromCinemachineComponentBase.)
Stage GettheCinemachinePipelinestagethatthiscomponentimplements.AlwaysreturnstheAimstage(OverridesCinemachineComponentBaseStage.)
VcamState Returnstheownervcam'sCameraState.(InheritedfromCinemachineComponentBase.)
VirtualCamera GettheassociatedCinemachineVirtualCameraBase(Inheritedfrom
CinemachineComponentBase.)
Top
Methods Name Description
MutateCameraState Appliestheaxisvaluesandorientsthecameraaccordingly(OverridesCinemachineComponentBaseMutateCameraState(CameraStateSingle).)
OnPositionDragged APIfortheeditor,toprocessapositiondragfromtheuser.classimplementationdoesnothing.(InheritedfromCinemachineComponentBase
Top
Fields Name Description
m_HorizontalAxis TheHorizontalaxis.Valueis-180..180.Controlsthehorizontalorientation
m_VerticalAxis TheVerticalaxis.Valueis-90..90.Controlstheverticalorientation
Top
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachinePOVConstructor
[Missing<summary>documentationfor"M:Cinemachine.CinemachinePOV.#ctor"]
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachinePOVClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicCinemachinePOV()
CopyC# JavaScript
Cinemachine
CinemachinePOVProperties
TheCinemachinePOVtypeexposesthefollowingmembers.
Properties Name Description
FollowTarget Returnstheownervcam'sFollowtarget.(InheritedfromCinemachineComponentBase.)
IsValid TrueifcomponentisenabledandhasaLookAtdefined(OverridesCinemachineComponentBaseIsValid.)
LookAtTarget Returnstheownervcam'sLookAttarget.(InheritedfromCinemachineComponentBase.)
Stage GettheCinemachinePipelinestagethatthiscomponentimplements.AlwaysreturnstheAimstage(OverridesCinemachineComponentBaseStage.)
VcamState Returnstheownervcam'sCameraState.(InheritedfromCinemachineComponentBase.)
VirtualCamera GettheassociatedCinemachineVirtualCameraBase
(InheritedfromCinemachineComponentBase.)
Top
SeeAlsoReferenceCinemachinePOVClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachinePOVIsValidProperty
TrueifcomponentisenabledandhasaLookAtdefined
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Boolean
SeeAlsoReferenceCinemachinePOVClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverrideboolIsValid{get;}
CopyC# JavaScript
Cinemachine
CinemachinePOVStageProperty
GettheCinemachinePipelinestagethatthiscomponentimplements.AlwaysreturnstheAimstage
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:CinemachineCoreStage
SeeAlsoReferenceCinemachinePOVClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverrideCinemachineCoreStageStage{get;}
CopyC# JavaScript
Cinemachine
CinemachinePOVMethods
TheCinemachinePOVtypeexposesthefollowingmembers.
Methods Name Description
MutateCameraState Appliestheaxisvaluesandorientsthecameraaccordingly(OverridesCinemachineComponentBaseMutateCameraState(CameraStateSingle).)
OnPositionDragged APIfortheeditor,toprocessapositiondragfromtheuser.classimplementationdoesnothing.(InheritedfromCinemachineComponentBase
Top
SeeAlsoReferenceCinemachinePOVClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachinePOVMutateCameraStateMethod
Appliestheaxisvaluesandorientsthecameraaccordingly
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
curStateType:CinemachineCameraStateThecurrentcamerastate
deltaTimeType:SystemSingleUsedforcalculatingdamping.Notused.
SeeAlsoReferenceCinemachinePOVClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverridevoidMutateCameraState(
refCameraStatecurState,
floatdeltaTime
)
CopyC# JavaScript
Cinemachine
CinemachinePOVFields
TheCinemachinePOVtypeexposesthefollowingmembers.
Fields Name Description
m_HorizontalAxis TheHorizontalaxis.Valueis-180..180.Controlsthehorizontalorientation
m_VerticalAxis TheVerticalaxis.Valueis-90..90.Controlstheverticalorientation
Top
SeeAlsoReferenceCinemachinePOVClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachinePOVm_HorizontalAxisField
TheHorizontalaxis.Valueis-180..180.Controlsthehorizontalorientation
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:AxisState
SeeAlsoReferenceCinemachinePOVClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("TheHorizontalaxis.Valueis-180..180.Controlsthehorizontalorientation")]
publicAxisStatem_HorizontalAxis
CopyC# JavaScript
Cinemachine
CinemachinePOVm_VerticalAxisField
TheVerticalaxis.Valueis-90..90.Controlstheverticalorientation
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:AxisState
SeeAlsoReferenceCinemachinePOVClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("TheVerticalaxis.Valueis-90..90.Controlstheverticalorientation")]
publicAxisStatem_VerticalAxis
CopyC# JavaScript
Cinemachine
CinemachineSmoothPathClass
Definesaworld-spacepath,consistingofanarrayofwaypoints,eachofwhichhaspositionandrollsettings.Bezierinterpolationisperformedbetweenthewaypoints,togetasmoothandcontinuouspath.Thepathwillpassthroughallwaypoints,and(unlikeCinemachinePath)firstandsecondordercontinuityisguaranteed
InheritanceHierarchySystemObjectObjectComponentBehaviourMonoBehaviourCinemachineCinemachinePathBaseCinemachineCinemachineSmoothPath
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheCinemachineSmoothPathtypeexposesthefollowingmembers.
Constructors Name Description
[DocumentationSortingAttribute(18.5f,DocumentationSortingAttribute
[AddComponentMenu("Cinemachine/CinemachineSmoothPath")]
[SaveDuringPlayAttribute]
publicclassCinemachineSmoothPath:CinemachinePathBase
CopyC# JavaScript
CinemachineSmoothPath
Top
Properties Name Description
DistanceCacheSampleStepsPerSegment Whencalculatingthedistancecache,samplethepaththismanytimesbetweenpoints(OverridesCinemachinePathBase
Looped Trueifthepathendsarejoinedtoformacontinuousloop(OverridesCinemachinePathBase
MaxPos Themaximumvalueforthepathposition(OverridesCinemachinePathBase
MinPos Theminimumvalueforthepathposition(OverridesCinemachinePathBase
PathLength Getthelengthofthepathindistanceunits.isnotvalid,thencallingthiswillregenerationofthepathdistancecache(InheritedfromCinemachinePathBase
Top
Methods Name Description
DistanceCacheIsValid Seewhetherthedistancecacheisvalid.valid,thenanycalltoGetPathLength()orGetPathPositionFromDistance()willpotentiallycostlyregenerationofthepathdistancecache(InheritedfromCinemachinePathBase
EvaluateOrientation Gettheorientationthecurveatapointalongthepath.(OverridesCinemachinePathBaseEvaluateOrientation(Single)
EvaluateOrientationAtUnit Gettheorientationthecurveatapointalongthepath.(InheritedfromCinemachinePathBase
EvaluatePosition Getaworldspacepositionofapointalongthepath(OverridesCinemachinePathBaseEvaluatePosition(Single)
EvaluatePositionAtUnit Getaworldspacepositionofapointalongthepath(InheritedfromCinemachinePathBase
EvaluateTangent Getthetangentofthecurveatapointalongthepath.(OverridesCinemachinePathBaseEvaluateTangent(Single)
EvaluateTangentAtUnit Getthetangentofthecurveatapointalongthepath.(InheritedfromCinemachinePathBase
FindClosestPoint Findtheclosestpointonthepathtoagivenworldspacetargetpoint.(InheritedfromCinemachinePathBase
GetPathDistanceFromPosition Getthepathposition(inpathunits)correspondingtothisdistancealongthepath.isnotvalid,thencallingthiswillcostlyregenerationofthepathdistancecache(InheritedfromCinemachinePathBase
GetPathPositionFromDistance Getthepathposition(inpathunits)correspondingtothisdistancealongthepath.isnotvalid,thencallingthiswillcostlyregenerationofthepathdistancecache
(InheritedfromCinemachinePathBase
InvalidateDistanceCache Callthisifthepathchangesinsuchawayastoaffectdistancesorothercachedpathelements(OverridesCinemachinePathBaseInvalidateDistanceCache
MaxUnit Getthemaximumvalue,forthegivenunitytype(InheritedfromCinemachinePathBase
MinUnit Gettheminimumvalue,forthegivenunitytype(InheritedfromCinemachinePathBase
NormalizePathDistance Normalizeadistancealongthepathbasedonthepathlength.Ifthedistancecacheisnotvalid,thencallingthiswilltriggerapotentiallycostlyregenerationofthepathdistancecache(InheritedfromCinemachinePathBase
NormalizePos Getanormalizedpathposition,takingspinsintoaccountiflooped(InheritedfromCinemachinePathBase
NormalizeUnit Normalizetheunit,sothatitliesbetweenMinUmitandMaxUnit(InheritedfromCinemachinePathBase
Top
Fields Name Description
m_Appearance Thesettingsthatcontrolhowthepathwillappearintheeditorsceneview.(InheritedfromCinemachinePathBase.)
m_Looped Ifchecked,thenthepathendsarejoinedtoformacontinuousloop
m_Resolution Pathsamplesperwaypoint(InheritedfromCinemachinePathBase.)
m_Waypoints Thewaypointsthatdefinethepath.Theywillbeinterpolatedusingabeziercurve
Top
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineSmoothPathConstructor
[Missing<summary>documentationfor"M:Cinemachine.CinemachineSmoothPath.#ctor"]
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineSmoothPathClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicCinemachineSmoothPath()
CopyC# JavaScript
Cinemachine
CinemachineSmoothPathProperties
TheCinemachineSmoothPathtypeexposesthefollowingmembers.
Properties Name Description
DistanceCacheSampleStepsPerSegment Whencalculatingthedistancecache,samplethepaththismanytimesbetweenpoints(OverridesCinemachinePathBase
Looped Trueifthepathendsarejoinedtoformacontinuousloop(OverridesCinemachinePathBase
MaxPos Themaximumvalueforthepathposition(OverridesCinemachinePathBase
MinPos Theminimumvalueforthepathposition(OverridesCinemachinePathBase
PathLength Getthelengthofthepathindistanceunits.isnotvalid,thencallingthiswillregenerationofthepathdistancecache(InheritedfromCinemachinePathBase
Top
SeeAlsoReferenceCinemachineSmoothPathClass
CinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineSmoothPathDistanceCacheSampleStepsPerSegmentProperty
Whencalculatingthedistancecache,samplethepaththismanytimesbetweenpoints
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Int32
SeeAlsoReferenceCinemachineSmoothPathClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverrideintDistanceCacheSampleStepsPerSegment
CopyC# JavaScript
Cinemachine
CinemachineSmoothPathLoopedProperty
Trueifthepathendsarejoinedtoformacontinuousloop
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Boolean
SeeAlsoReferenceCinemachineSmoothPathClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverrideboolLooped{get;}
CopyC# JavaScript
Cinemachine
CinemachineSmoothPathMaxPosProperty
Themaximumvalueforthepathposition
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Single
SeeAlsoReferenceCinemachineSmoothPathClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverridefloatMaxPos{get;}
CopyC# JavaScript
Cinemachine
CinemachineSmoothPathMinPosProperty
Theminimumvalueforthepathposition
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Single
SeeAlsoReferenceCinemachineSmoothPathClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverridefloatMinPos{get;}
CopyC# JavaScript
Cinemachine
CinemachineSmoothPathMethods
TheCinemachineSmoothPathtypeexposesthefollowingmembers.
Methods Name Description
DistanceCacheIsValid Seewhetherthedistancecacheisvalid.valid,thenanycalltoGetPathLength()orGetPathPositionFromDistance()willpotentiallycostlyregenerationofthepathdistancecache(InheritedfromCinemachinePathBase
EvaluateOrientation Gettheorientationthecurveatapointalongthepath.(OverridesCinemachinePathBaseEvaluateOrientation(Single)
EvaluateOrientationAtUnit Gettheorientationthecurveatapointalongthepath.(InheritedfromCinemachinePathBase
EvaluatePosition Getaworldspacepositionofapointalongthepath(OverridesCinemachinePathBaseEvaluatePosition(Single)
EvaluatePositionAtUnit Getaworldspacepositionofapointalongthepath(InheritedfromCinemachinePathBase
EvaluateTangent Getthetangentofthecurveatapointalongthepath.(Overrides
CinemachinePathBaseEvaluateTangent(Single)
EvaluateTangentAtUnit Getthetangentofthecurveatapointalongthepath.(InheritedfromCinemachinePathBase
FindClosestPoint Findtheclosestpointonthepathtoagivenworldspacetargetpoint.(InheritedfromCinemachinePathBase
GetPathDistanceFromPosition Getthepathposition(inpathunits)correspondingtothisdistancealongthepath.isnotvalid,thencallingthiswillcostlyregenerationofthepathdistancecache(InheritedfromCinemachinePathBase
GetPathPositionFromDistance Getthepathposition(inpathunits)correspondingtothisdistancealongthepath.isnotvalid,thencallingthiswillcostlyregenerationofthepathdistancecache(InheritedfromCinemachinePathBase
InvalidateDistanceCache Callthisifthepathchangesinsuchawayastoaffectdistancesorothercachedpathelements(OverridesCinemachinePathBaseInvalidateDistanceCache
MaxUnit Getthemaximumvalue,forthegivenunitytype(InheritedfromCinemachinePathBase
MinUnit Gettheminimumvalue,forthegivenunitytype(InheritedfromCinemachinePathBase
NormalizePathDistance Normalizeadistancealongthepathbasedonthepathlength.Ifthedistancecacheisnotvalid,thencallingthiswilltriggerapotentiallycostlyregenerationofthepathdistancecache(InheritedfromCinemachinePathBase
NormalizePos Getanormalizedpathposition,takingspinsintoaccountiflooped(InheritedfromCinemachinePathBase
NormalizeUnit Normalizetheunit,sothatitliesbetweenMinUmitandMaxUnit(InheritedfromCinemachinePathBase
Top
SeeAlsoReferenceCinemachineSmoothPathClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineSmoothPathEvaluateOrientationMethod
Gettheorientationthecurveatapointalongthepath.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
posType:SystemSinglePostionalongthepath.Neednotbenormalized.
ReturnValueType:QuaternionWorld-spaceorientationofthepath,asdefinedbytangent,up,androll.
SeeAlsoReferenceCinemachineSmoothPathClassCinemachineNamespace
VisittheCinemachineForum
publicoverrideQuaternionEvaluateOrientation(
floatpos
)
CopyC# JavaScript
https://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineSmoothPathEvaluatePositionMethod
Getaworldspacepositionofapointalongthepath
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
posType:SystemSinglePostionalongthepath.Neednotbenormalized.
ReturnValueType:Vector3World-spacepositionofthepointalongatpathatpos
SeeAlsoReferenceCinemachineSmoothPathClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverrideVector3EvaluatePosition(
floatpos
)
CopyC# JavaScript
Cinemachine
CinemachineSmoothPathEvaluateTangentMethod
Getthetangentofthecurveatapointalongthepath.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
posType:SystemSinglePostionalongthepath.Neednotbenormalized.
ReturnValueType:Vector3World-spacedirectionofthepathtangent.Lengthofthevectorrepresentsthetangentstrength
SeeAlsoReferenceCinemachineSmoothPathClassCinemachineNamespace
VisittheCinemachineForum
publicoverrideVector3EvaluateTangent(
floatpos
)
CopyC# JavaScript
https://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineSmoothPathInvalidateDistanceCacheMethod
Callthisifthepathchangesinsuchawayastoaffectdistancesorothercachedpathelements
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineSmoothPathClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverridevoidInvalidateDistanceCache()
CopyC# JavaScript
Cinemachine
CinemachineSmoothPathFields
TheCinemachineSmoothPathtypeexposesthefollowingmembers.
Fields Name Description
m_Appearance Thesettingsthatcontrolhowthepathwillappearintheeditorsceneview.(InheritedfromCinemachinePathBase.)
m_Looped Ifchecked,thenthepathendsarejoinedtoformacontinuousloop
m_Resolution Pathsamplesperwaypoint(InheritedfromCinemachinePathBase.)
m_Waypoints Thewaypointsthatdefinethepath.Theywillbeinterpolatedusingabeziercurve
Top
SeeAlsoReferenceCinemachineSmoothPathClassCinemachineNamespace
VisittheCinemachineForum
https://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineSmoothPathm_LoopedField
Ifchecked,thenthepathendsarejoinedtoformacontinuousloop
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Boolean
SeeAlsoReferenceCinemachineSmoothPathClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Ifchecked,thenthepathendsarejoinedtoformacontinuousloop.")]
publicboolm_Looped
CopyC# JavaScript
Cinemachine
CinemachineSmoothPathm_WaypointsField
Thewaypointsthatdefinethepath.Theywillbeinterpolatedusingabeziercurve
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachineSmoothPathWaypoint
SeeAlsoReferenceCinemachineSmoothPathClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Thewaypointsthatdefinethepath.Theywillbeinterpolatedusingabeziercurve.")]
publicCinemachineSmoothPathWaypoint[]m_Waypoints
CopyC# JavaScript
Cinemachine
CinemachineSmoothPathWaypointStructure
Awaypointalongthepath
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheCinemachineSmoothPathWaypointtypeexposesthefollowingmembers.
Fields Name Description
position Positioninpath-localspace
roll Definestherollofthepathatthiswaypoint.Theotherorientationaxesareinferredfromthetangentandworldup.
Top
SeeAlso
[SerializableAttribute]
[DocumentationSortingAttribute(18.7f,DocumentationSortingAttribute
publicstructWaypoint
CopyC# JavaScript
ReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
WaypointFields
TheCinemachineSmoothPathWaypointtypeexposesthefollowingmembers.
Fields Name Description
position Positioninpath-localspace
roll Definestherollofthepathatthiswaypoint.Theotherorientationaxesareinferredfromthetangentandworldup.
Top
SeeAlsoReferenceCinemachineSmoothPathWaypointStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineSmoothPathWaypointpositionField
Positioninpath-localspace
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Vector3
SeeAlsoReferenceCinemachineSmoothPathWaypointStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Positioninpath-localspace")]
publicVector3position
CopyC# JavaScript
Cinemachine
CinemachineSmoothPathWaypointrollField
Definestherollofthepathatthiswaypoint.Theotherorientationaxesareinferredfromthetangentandworldup.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineSmoothPathWaypointStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Definestherollofthepathatthiswaypoint.Theotherorientationaxesareinferredfromthetangentandworldup.")]
publicfloatroll
CopyC# JavaScript
Cinemachine
CinemachineStateDrivenCameraClass
Thisisavirtualcamera"manager"thatownsandmanagesacollectionofchildVirtualCameras.Thesechildvcamsaremappedtoindividualstatesinananimationstatemachine,allowingyoutoassociatespecificvcamstospecificanimationstates.Whenthatstateisactiveinthestatemachine,thentheassociatedcamerawillbeactivated.Youcandefinecustomblendsandtransitionsbetweenchildcameras.Inordertousethisbehaviour,youmusthaveananimatedtarget(i.e.anobjectanimatedwithastatemachine)todrivethebehaviour.
InheritanceHierarchySystemObjectObjectComponentBehaviourMonoBehaviourCinemachineCinemachineVirtualCameraBaseCinemachineCinemachineStateDrivenCamera
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
[DocumentationSortingAttribute(13f,DocumentationSortingAttribute
[ExecuteInEditMode]
[DisallowMultipleComponent]
[AddComponentMenu("Cinemachine/CinemachineStateDrivenCamera")]
publicclassCinemachineStateDrivenCamera:CinemachineVirtualCameraBase
CopyC# JavaScript
TheCinemachineStateDrivenCameratypeexposesthefollowingmembers.
Properties Name Description
ChildCameras Thelistofchildcameras.Thesearejusttheimmediatechildreninthehierarchy.
Description Getsabriefdebugdescriptionofthisvirtualcamera,forusewhendisplayiongdebuginfo(OverridesCinemachineVirtualCameraBase
Follow GetthecurrentFollowtarget.Returnsparent'sFollowifparentisnon-nullandnospecificFollowdefinedforthiscamera(OverridesCinemachineVirtualCameraBase
IsBlending Isthereablendinprogress?
LiveChild Getthecurrent"best"childvirtualcamera,thatwouldbechoseniftheStateDrivenCamerawereactive.
LiveChildOrSelf Returnthelivechild.(OverridesCinemachineVirtualCameraBase
LookAt GetthecurrentLookAttarget.LookAtifparentisnon-nullandnospecificLookAtdefinedforthiscamera(OverridesCinemachineVirtualCameraBase
Name GetthenameoftheVirtualCamera.implementationreturnstheownerGameObject's
name.(InheritedfromCinemachineVirtualCameraBase
ParentCamera Supportformeta-virtual-cameras.situationwhereavirtualcameraisinfactthepublicfaceofaprivatearmyofvirtualcameras,whichitmanagesonitsown.ThismethodgetstheVirtualCameraowner,ifany.areimplementedasTransformchildrenoftheparentvcam.(InheritedfromCinemachineVirtualCameraBase
PreviousStateIsValid SetthistoforcethenextupdatetoignoredeltaTimeandresetitself(InheritedfromCinemachineVirtualCameraBase
Priority GetthePriorityofthevirtualcamera.determinesitsplacementintheCinemachineCore'squeueofeligibleshots.(InheritedfromCinemachineVirtualCameraBase
State TheStateofthecurrentlivechild(OverridesCinemachineVirtualCameraBase
ValidatingStreamVersion Versionthatwaslaststreamed,forupgradinglegacy(InheritedfromCinemachineVirtualCameraBase
VirtualCameraGameObject TheGameObjectowneroftheVirtualCamerabehaviour.(InheritedfromCinemachineVirtualCameraBase
Top
Methods Name Description
AddPostPipelineStageHook Adelegatetohookintothestatecalculationpipeline.pipeline.SeeCinemachineCore.Stage.(InheritedfromCinemachineVirtualCameraBase
CreateFakeHashName APIfortheinspectoreditor.implementnestedstate
InvokePostPipelineStageCallback InvokesthePostPipelineStageDelegateforthiscamera,andupthehierarchyforall(InheritedfromCinemachineVirtualCameraBase
IsLiveChild Checkwhetherthevcamalivechildofthiscamera.(OverridesCinemachineVirtualCameraBase
MoveToTopOfPrioritySubqueue Whenmultiplevirtualcamerashavethehighestpriority,thereisLivecameraifitsharesthehighestpriorityinthequeuewithitspeers.themostrecentonegoestothetopoftheprioritysubqueue.anditspeerssharethehighestpriority,thenthisvcamwillbecomeLive.(InheritedfromCinemachineVirtualCameraBase
OnDestroy Baseclassimplementationremovesthevirtualcamerafromthepriorityqueue.(InheritedfromCinemachineVirtualCameraBase
OnDisable Baseclassimplementationmakessurethepriorityqueueremainsup-to-date.(InheritedfromCinemachineVirtualCameraBase
OnEnable Makessuretheinternalchildcacheisuptodate(OverridesCinemachineVirtualCameraBase
OnTransformChildrenChanged Makessuretheinternalchildcacheisuptodate
OnTransformParentChanged Baseclassimplementationmakessurethepriorityqueueremainsup-to-date.(InheritedfromCinemachineVirtualCameraBase
OnTransitionFromCamera Notificationthatthisvirtualcameraisgoinglive.(InheritedfromCinemachineVirtualCameraBase
OnValidate Enforceboundsforfields,whenchangedininspector.basemethodiscalled,ValidatingStreamVersionwillbevalid.(InheritedfromCinemachineVirtualCameraBase
PreUpdateChildCameras Thisiscalledpriortotheupdatingofthevcam'schildcameras,areupdatingonFixedUpdate,thenthiswillnotnecessarilybecalledLateUpdateinstead.Baseclassimplementationdoesnothing.(InheritedfromCinemachineVirtualCameraBase
RemovePostPipelineStageHook RemoveaPipelinestagehookcallback.(OverridesCinemachineVirtualCameraBase
ResolveFollow Returnsthisvcam'sFollowtarget,orifthatisnull,willretrun(InheritedfromCinemachineVirtualCameraBase
ResolveLookAt Returnsthisvcam'sLookAttarget,orifthatisnull,willretrun(InheritedfromCinemachineVirtualCameraBase
Start Baseclassimplementationdoesnothing.(InheritedfromCinemachineVirtualCameraBase
Update Baseclassimplementationmakessurethepriorityqueueremainsup-to-date.(InheritedfromCinemachineVirtualCameraBase
UpdateCameraState CalledbyCinemachineCoreatdesignatedupdatetimeupdatesallthechildren,choosesthebestone,andimplementsanyrequiredblending.(OverridesCinemachineVirtualCameraBase
ValidateInstructions InternalAPIfortheinspectoreditor.
Top
Fields Name Description
CinemachineGUIDebuggerCallback Thisisdeprecated.Itisheretosupportthesoon-to-be-removedCinemachineDebuggerintheEditor.(InheritedfromCinemachineVirtualCameraBase
m_AnimatedTarget Thestatemachinewhosestatechangeswilldrivethiscamera'schoiceofactivechild
m_CustomBlends Thisistheassetwhichcontainscustomsettingsforspecificchildblends.
m_DefaultBlend Theblendwhichisusedifyoudon'texplicitlydefineablendbetweentwoVirtualCamerachildren.
m_EnableAllChildCameras Forceallchildcamerastobeenabled.ThisisusefulifanimatingtheminTimeline,butconsumesextraresources.
m_ExcludedPropertiesInInspector Inspectorcontrol-UseforhidingsectionsoftheInspectorUI.(InheritedfromCinemachineVirtualCameraBase
m_Follow Defaultobjectforthecamerachildrenwantstomovewith(thebodytarget),ifnotspecifiedinachildrig.Maybeempty
m_Instructions Thesetofinstructionsassociatingvirtualcameraswithstates.Theseinstructionsareusedtochoosethelivechildatanygivenmoment
m_LayerIndex WhichlayerinthetargetFSMtoobserve
m_LockStageInInspector Inspectorcontrol-UseforenablingsectionsoftheInspector
UI.(InheritedfromCinemachineVirtualCameraBase
m_LookAt Defaultobjectforthecamerachildrentolookat(theaimtarget),ifnotspecifiedinachildrig.Maybeempty
m_Priority Theprioritywilldeterminewhichcamerabecomesactivebasedonthestateofothercamerasandthiscamera.Highernumbershavegreaterpriority.(InheritedfromCinemachineVirtualCameraBase
m_ShowDebugText Whenenabled,thecurrentcameraandblendwillbeindicatedinthegamewindow,fordebugging
OnPostPipelineStage Adelegatetohookintothestatecalculationpipeline.Implementaionmustbesuretocallthisaftereachpipelinestage,toallowotherservicestohookintothepipeline.SeeCinemachineCore.Stage.(InheritedfromCinemachineVirtualCameraBase
Top
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineStateDrivenCameraProperties
TheCinemachineStateDrivenCameratypeexposesthefollowingmembers.
Properties Name Description
ChildCameras Thelistofchildcameras.Thesearejusttheimmediatechildreninthehierarchy.
Description Getsabriefdebugdescriptionofthisvirtualcamera,forusewhendisplayiongdebuginfo(OverridesCinemachineVirtualCameraBase
Follow GetthecurrentFollowtarget.Returnsparent'sFollowifparentisnon-nullandnospecificFollowdefinedforthiscamera(OverridesCinemachineVirtualCameraBase
IsBlending Isthereablendinprogress?
LiveChild Getthecurrent"best"childvirtualcamera,thatwouldbechoseniftheStateDrivenCamerawereactive.
LiveChildOrSelf Returnthelivechild.(OverridesCinemachineVirtualCameraBase
LookAt GetthecurrentLookAttarget.
LookAtifparentisnon-nullandnospecificLookAtdefinedforthiscamera(OverridesCinemachineVirtualCameraBase
Name GetthenameoftheVirtualCamera.implementationreturnstheownerGameObject'sname.(InheritedfromCinemachineVirtualCameraBase
ParentCamera Supportformeta-virtual-cameras.situationwhereavirtualcameraisinfactthepublicfaceofaprivatearmyofvirtualcameras,whichitmanagesonitsown.ThismethodgetstheVirtualCameraowner,ifany.areimplementedasTransformchildrenoftheparentvcam.(InheritedfromCinemachineVirtualCameraBase
PreviousStateIsValid SetthistoforcethenextupdatetoignoredeltaTimeandresetitself(InheritedfromCinemachineVirtualCameraBase
Priority GetthePriorityofthevirtualcamera.determinesitsplacementintheCinemachineCore'squeueofeligibleshots.(InheritedfromCinemachineVirtualCameraBase
State TheStateofthecurrentlivechild(OverridesCinemachineVirtualCameraBase
ValidatingStreamVersion Versionthatwaslaststreamed,forupgradinglegacy(InheritedfromCinemachineVirtualCameraBase
VirtualCameraGameObject TheGameObjectowneroftheVirtualCamerabehaviour.(InheritedfromCinemachineVirtualCameraBase
Top
SeeAlsoReferenceCinemachineStateDrivenCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineStateDrivenCameraChildCamerasProperty
Thelistofchildcameras.Thesearejusttheimmediatechildreninthehierarchy.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:CinemachineVirtualCameraBase
SeeAlsoReferenceCinemachineStateDrivenCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicCinemachineVirtualCameraBase[]ChildCameras{
CopyC# JavaScript
Cinemachine
CinemachineStateDrivenCameraDescriptionProperty
Getsabriefdebugdescriptionofthisvirtualcamera,forusewhendisplayiongdebuginfo
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:StringImplementsICinemachineCameraDescription
SeeAlsoReferenceCinemachineStateDrivenCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverridestringDescription{get;}
CopyC# JavaScript
Cinemachine
CinemachineStateDrivenCameraFollowProperty
GetthecurrentFollowtarget.Returnsparent'sFollowifparentisnon-nullandnospecificFollowdefinedforthiscamera
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:TransformImplementsICinemachineCameraFollow
SeeAlsoReferenceCinemachineStateDrivenCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverrideTransformFollow{get;set;}
CopyC# JavaScript
Cinemachine
CinemachineStateDrivenCameraIsBlendingProperty
Isthereablendinprogress?
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Boolean
SeeAlsoReferenceCinemachineStateDrivenCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicboolIsBlending{get;}
CopyC# JavaScript
Cinemachine
CinemachineStateDrivenCameraLiveChildProperty
Getthecurrent"best"childvirtualcamera,thatwouldbechoseniftheStateDrivenCamerawereactive.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:ICinemachineCamera
SeeAlsoReferenceCinemachineStateDrivenCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicICinemachineCameraLiveChild{get;set;}
CopyC# JavaScript
Cinemachine
CinemachineStateDrivenCameraLiveChildOrSelfProperty
Returnthelivechild.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:ICinemachineCameraImplementsICinemachineCameraLiveChildOrSelf
SeeAlsoReferenceCinemachineStateDrivenCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverrideICinemachineCameraLiveChildOrSelf{
CopyC# JavaScript
Cinemachine
CinemachineStateDrivenCameraLookAtProperty
GetthecurrentLookAttarget.Returnsparent'sLookAtifparentisnon-nullandnospecificLookAtdefinedforthiscamera
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:TransformImplementsICinemachineCameraLookAt
SeeAlsoReferenceCinemachineStateDrivenCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverrideTransformLookAt{get;set;}
CopyC# JavaScript
Cinemachine
CinemachineStateDrivenCameraStateProperty
TheStateofthecurrentlivechild
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:CameraStateImplementsICinemachineCameraState
SeeAlsoReferenceCinemachineStateDrivenCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverrideCameraStateState{get;}
CopyC# JavaScript
Cinemachine
CinemachineStateDrivenCameraMethods
TheCinemachineStateDrivenCameratypeexposesthefollowingmembers.
Methods Name Description
AddPostPipelineStageHook Adelegatetohookintothestatecalculationpipeline.pipeline.SeeCinemachineCore.Stage.(InheritedfromCinemachineVirtualCameraBase
CreateFakeHashName APIfortheinspectoreditor.implementnestedstate
InvokePostPipelineStageCallback InvokesthePostPipelineStageDelegateforthiscamera,andupthehierarchyforall(InheritedfromCinemachineVirtualCameraBase
IsLiveChild Checkwhetherthevcamalivechildofthiscamera.(OverridesCinemachineVirtualCameraBase
MoveToTopOfPrioritySubqueue Whenmultiplevirtualcamerashavethehighestpriority,thereisLivecameraifitsharesthehighestpriorityinthequeuewithitspeers.themostrecentonegoestothetopoftheprioritysubqueue.anditspeerssharethehighestpriority,thenthisvcamwillbecomeLive.(InheritedfromCinemachineVirtualCameraBase
OnDestroy Baseclassimplementationremovesthevirtualcamerafromthepriorityqueue.(InheritedfromCinemachineVirtualCameraBase
OnDisable Baseclassimplementationmakessurethepriorityqueueremainsup-to-date.(InheritedfromCinemachineVirtualCameraBase
OnEnable Makessuretheinternalchildcacheisuptodate(OverridesCinemachineVirtualCameraBase
OnTransformChildrenChanged Makessuretheinternalchildcacheisuptodate
OnTransformParentChanged Baseclassimplementationmakessurethepriorityqueueremainsup-to-date.(InheritedfromCinemachineVirtualCameraBase
OnTransitionFromCamera Notificationthatthisvirtualcameraisgoinglive.(InheritedfromCinemachineVirtualCameraBase
OnValidate Enforceboundsforfields,whenchangedininspector.basemethodiscalled,ValidatingStreamVersionwillbevalid.(InheritedfromCinemachineVirtualCameraBase
PreUpdateChildCameras Thisiscalledpriortotheupdatingofthevcam'schildcameras,areupdatingonFixedUpdate,thenthiswillnotnecessarilybecalledLateUpdateinstead.Baseclassimplementationdoesnothing.(InheritedfromCinemachineVirtualCameraBase
RemovePostPipelineStageHook RemoveaPipelinestagehookcallback.(OverridesCinemachineVirtualCameraBase
ResolveFollow Returnsthisvcam'sFollowtarget,orifthatisnull,willretrun(InheritedfromCinemachineVirtualCameraBase
ResolveLookAt Returnsthisvcam'sLookAttarget,orifthatisnull,willretrun(InheritedfromCinemachineVirtualCameraBase
Start Baseclassimplementationdoesnothing.(InheritedfromCinemachineVirtualCameraBase
Update Baseclassimplementationmakessurethepriorityqueueremainsup-to-date.(InheritedfromCinemachineVirtualCameraBase
UpdateCameraState CalledbyCinemachineCoreatdesignatedupdatetimeupdatesallthechildren,choosesthebestone,andimplementsanyrequiredblending.(OverridesCinemachineVirtualCameraBase
ValidateInstructions InternalAPIfortheinspectoreditor.
Top
SeeAlsoReferenceCinemachineStateDrivenCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineStateDrivenCameraCreateFakeHashNameMethod
APIfortheinspectoreditor.Animationmoduledoesnothavehashesforstateparents,sowehavetoinventtheminordertoimplementnestedstatehandling
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
parentHashType:SystemInt32[Missing<paramname="parentHash"/>documentationfor"M:Cinemachine.CinemachineStateDrivenCamera.CreateFakeHashName(System.Int32,System.String)"]
stateNameType:SystemString[Missing<paramname="stateName"/>documentationfor"M:Cinemachine.CinemachineStateDrivenCamera.CreateFakeHashName(System.Int32,System.String)"]
ReturnValueType:String[Missing<returns>documentationfor"M:Cinemachine.CinemachineStateDrivenCamera.CreateFakeHashName(System.Int32,System.String)"]
publicstaticstringCreateFakeHashName(
intparentHash,
stringstateName
)
CopyC# JavaScript
SeeAlsoReferenceCinemachineStateDrivenCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineStateDrivenCameraIsLiveChildMethod
Checkwhetherthevcamalivechildofthiscamera.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
vcamType:CinemachineICinemachineCameraTheVirtualCameratocheck
ReturnValueType:BooleanTrueifthevcamiscurrentlyactivelyinfluencingthestateofthisvcamImplementsICinemachineCameraIsLiveChild(ICinemachineCamera)
SeeAlsoReferenceCinemachineStateDrivenCameraClassCinemachineNamespace
publicoverrideboolIsLiveChild(
ICinemachineCameravcam
)
CopyC# JavaScript
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineStateDrivenCameraOnEnableMethod
Makessuretheinternalchildcacheisuptodate
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineStateDrivenCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
protectedoverridevoidOnEnable()
CopyC# JavaScript
Cinemachine
CinemachineStateDrivenCameraOnTransformChildrenChangedMethod
Makessuretheinternalchildcacheisuptodate
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineStateDrivenCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicvoidOnTransformChildrenChanged()
CopyC# JavaScript
Cinemachine
CinemachineStateDrivenCameraRemovePostPipelineStageHookMethod
RemoveaPipelinestagehookcallback.Makesureitisremovedfromallthechildren.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
dType:CinemachineCinemachineVirtualCameraBaseOnPostPipelineStageDelegateThedelegatetoremove.
SeeAlsoReferenceCinemachineStateDrivenCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverridevoidRemovePostPipelineStageHook(
CinemachineVirtualCameraBaseOnPostPipelineStageDelegate
)
CopyC# JavaScript
Cinemachine
CinemachineStateDrivenCameraUpdateCameraStateMethod
CalledbyCinemachineCoreatdesignatedupdatetimesothevcamcanpositionitselfandtrackitstargets.Thisimplementationupdatesallthechildren,choosesthebestone,andimplementsanyrequiredblending.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
worldUpType:Vector3DefaultworldUp,setbytheCinemachineBrain
deltaTimeType:SystemSingleDeltatimefortime-basedeffects(ignoreiflessthanorequalto0)
ImplementsICinemachineCameraUpdateCameraState(Vector3,Single)
SeeAlso
publicoverridevoidUpdateCameraState(
Vector3worldUp,
floatdeltaTime
)
CopyC# JavaScript
ReferenceCinemachineStateDrivenCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineStateDrivenCameraValidateInstructionsMethod
InternalAPIfortheinspectoreditor.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineStateDrivenCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicvoidValidateInstructions()
CopyC# JavaScript
Cinemachine
CinemachineStateDrivenCameraFields
TheCinemachineStateDrivenCameratypeexposesthefollowingmembers.
Fields Name Description
CinemachineGUIDebuggerCallback Thisisdeprecated.Itisheretosupportthesoon-to-be-removedCinemachineDebuggerintheEditor.(InheritedfromCinemachineVirtualCameraBase
m_AnimatedTarget Thestatemachinewhosestatechangeswilldrivethiscamera'schoiceofactivechild
m_CustomBlends Thisistheassetwhichcontainscustomsettingsforspecificchildblends.
m_DefaultBlend Theblendwhichisusedifyoudon'texplicitlydefineablendbetweentwoVirtualCamerachildren.
m_EnableAllChildCameras Forceallchildcamerastobeenabled.ThisisusefulifanimatingtheminTimeline,butconsumesextraresources.
m_ExcludedPropertiesInInspector Inspectorcontrol-UseforhidingsectionsoftheInspectorUI.(InheritedfromCinemachineVirtualCameraBase
m_Follow Defaultobjectforthecamerachildrenwantstomovewith(thebodytarget),ifnotspecifiedinachildrig.Maybeempty
m_Instructions Thesetofinstructionsassociatingvirtualcameraswithstates.Theseinstructionsareusedtochoosethelivechildatanygivenmoment
m_LayerIndex WhichlayerinthetargetFSMtoobserve
m_LockStageInInspector Inspectorcontrol-UseforenablingsectionsoftheInspectorUI.(InheritedfromCinemachineVirtualCameraBase
m_LookAt Defaultobjectforthecamerachildrentolookat(theaimtarget),ifnotspecifiedinachildrig.Maybeempty
m_Priority Theprioritywilldeterminewhichcamerabecomesactivebasedonthestateofothercamerasandthiscamera.Highernumbershavegreaterpriority.(InheritedfromCinemachineVirtualCameraBase
m_ShowDebugText Whenenabled,thecurrent
cameraandblendwillbeindicatedinthegamewindow,fordebugging
OnPostPipelineStage Adelegatetohookintothestatecalculationpipeline.Implementaionmustbesuretocallthisaftereachpipelinestage,toallowotherservicestohookintothepipeline.SeeCinemachineCore.Stage.(InheritedfromCinemachineVirtualCameraBase
Top
SeeAlsoReferenceCinemachineStateDrivenCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineStateDrivenCameram_AnimatedTargetField
Thestatemachinewhosestatechangeswilldrivethiscamera'schoiceofactivechild
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Animator
SeeAlsoReferenceCinemachineStateDrivenCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[SpaceAttribute]
[TooltipAttribute("Thestatemachinewhosestatechangeswilldrivethiscamera'schoiceofactivechild")]
publicAnimatorm_AnimatedTarget
CopyC# JavaScript
Cinemachine
CinemachineStateDrivenCameram_CustomBlendsField
Thisistheassetwhichcontainscustomsettingsforspecificchildblends.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachineBlenderSettings
SeeAlsoReferenceCinemachineStateDrivenCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Thisistheassetwhichcontainscustomsettingsforspecificchildblends")]
publicCinemachineBlenderSettingsm_CustomBlends
CopyC# JavaScript
Cinemachine
CinemachineStateDrivenCameram_DefaultBlendField
Theblendwhichisusedifyoudon'texplicitlydefineablendbetweentwoVirtualCamerachildren.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachineBlendDefinition
SeeAlsoReferenceCinemachineStateDrivenCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[CinemachineBlendDefinitionPropertyAttribute]
[TooltipAttribute("Theblendwhichisusedifyoudon'texplicitlydefineablendbetweentwoVirtualCamerachildren")]
publicCinemachineBlendDefinitionm_DefaultBlend
CopyC# JavaScript
Cinemachine
CinemachineStateDrivenCameram_EnableAllChildCamerasField
Forceallchildcamerastobeenabled.ThisisusefulifanimatingtheminTimeline,butconsumesextraresources.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Boolean
SeeAlsoReferenceCinemachineStateDrivenCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Forceallchildcamerastobeenabled.ThisisusefulifanimatingtheminTimeline,butconsumesextraresources")]
publicboolm_EnableAllChildCameras
CopyC# JavaScript
Cinemachine
CinemachineStateDrivenCameram_FollowField
Defaultobjectforthecamerachildrenwantstomovewith(thebodytarget),ifnotspecifiedinachildrig.Maybeempty
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Transform
SeeAlsoReferenceCinemachineStateDrivenCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Defaultobjectforthecamerachildrenwantstomovewith(thebodytarget),ifnotspecifiedinachildcamera.Maybeemptyifallofthechildrendefinetargetsoftheirown.")]
[NoSaveDuringPlayAttribute]
publicTransformm_Follow
CopyC# JavaScript
Cinemachine
CinemachineStateDrivenCameram_InstructionsField
Thesetofinstructionsassociatingvirtualcameraswithstates.Theseinstructionsareusedtochoosethelivechildatanygivenmoment
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachineStateDrivenCameraInstruction
SeeAlsoReferenceCinemachineStateDrivenCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Thesetofinstructionsassociatingvirtualcameraswithstates.Theseinstructionsareusedtochoosethelivechildatanygivenmoment")]
publicCinemachineStateDrivenCameraInstruction[]m_Instructions
CopyC# JavaScript
Cinemachine
CinemachineStateDrivenCameram_LayerIndexField
WhichlayerinthetargetFSMtoobserve
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Int32
SeeAlsoReferenceCinemachineStateDrivenCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Whichlayerinthetargetstatemachinetoobserve")]
publicintm_LayerIndex
CopyC# JavaScript
Cinemachine
CinemachineStateDrivenCameram_LookAtField
Defaultobjectforthecamerachildrentolookat(theaimtarget),ifnotspecifiedinachildrig.Maybeempty
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Transform
SeeAlsoReferenceCinemachineStateDrivenCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Defaultobjectforthecamerachildrentolookat(theaimtarget),ifnotspecifiedinachildcamera.Maybeemptyifallofthechildrendefinetargetsoftheirown.")]
[NoSaveDuringPlayAttribute]
publicTransformm_LookAt
CopyC# JavaScript
Cinemachine
CinemachineStateDrivenCameram_ShowDebugTextField
Whenenabled,thecurrentcameraandblendwillbeindicatedinthegamewindow,fordebugging
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Boolean
SeeAlsoReferenceCinemachineStateDrivenCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Whenenabled,thecurrentchildcameraandblendwillbeindicatedinthegamewindow,fordebugging")]
publicboolm_ShowDebugText
CopyC# JavaScript
Cinemachine
CinemachineStateDrivenCameraInstructionStructure
ThisrepresentsasingleinstrunctiontotheStateDrivenCamera.ItassociatesanstatefromthestatemachinewithachildVirtualCamera,andalsoholdsactivationtuningparameters.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheCinemachineStateDrivenCameraInstructiontypeexposesthefollowingmembers.
Fields Name Description
m_ActivateAfter Howlongtowait(inseconds)beforeactivatingthevirtualcamera.Thisfiltersoutveryshortstatedurations
m_FullHash Thefullhashoftheanimationstate
m_MinDuration Theminimumlengthoftime(inseconds)tokeepavirtual
[SerializableAttribute]
publicstructInstruction
CopyC# JavaScript
cameraactive
m_VirtualCamera Thevirtualcameratoactivatewhrntheanimationstatebecomesactive
Top
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
InstructionFields
TheCinemachineStateDrivenCameraInstructiontypeexposesthefollowingmembers.
Fields Name Description
m_ActivateAfter Howlongtowait(inseconds)beforeactivatingthevirtualcamera.Thisfiltersoutveryshortstatedurations
m_FullHash Thefullhashoftheanimationstate
m_MinDuration Theminimumlengthoftime(inseconds)tokeepavirtualcameraactive
m_VirtualCamera Thevirtualcameratoactivatewhrntheanimationstatebecomesactive
Top
SeeAlsoReferenceCinemachineStateDrivenCameraInstructionStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineStateDrivenCameraInstructionField
Howlongtowait(inseconds)beforeactivatingthevirtualcamera.Thisfiltersoutveryshortstatedurations
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineStateDrivenCameraInstructionStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Howlongtowait(inseconds)beforeactivatingthevirtualcamera.Thisfiltersoutveryshortstatedurations")]
publicfloatm_ActivateAfter
CopyC# JavaScript
Cinemachine
CinemachineStateDrivenCameraInstructionField
Thefullhashoftheanimationstate
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Int32
SeeAlsoReferenceCinemachineStateDrivenCameraInstructionStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Thefullhashoftheanimationstate")]
publicintm_FullHash
CopyC# JavaScript
Cinemachine
CinemachineStateDrivenCameraInstructionField
Theminimumlengthoftime(inseconds)tokeepavirtualcameraactive
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineStateDrivenCameraInstructionStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Theminimumlengthoftime(inseconds)tokeepavirtualcameraactive")]
publicfloatm_MinDuration
CopyC# JavaScript
Cinemachine
CinemachineStateDrivenCameraInstructionField
Thevirtualcameratoactivatewhrntheanimationstatebecomesactive
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachineVirtualCameraBase
SeeAlsoReferenceCinemachineStateDrivenCameraInstructionStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Thevirtualcameratoactivatewhrntheanimationstatebecomesactive")]
publicCinemachineVirtualCameraBasem_VirtualCamera
CopyC# JavaScript
Cinemachine
CinemachineTargetGroupClass
Definesagroupoftargetobjects,eachwitharadiusandaweight.Theweightisusedwhencalculatingtheaveragepositionofthetargetgroup.Higher-weightedmembersofthegroupwillcountmore.Theboundingboxiscalculatedbytakingthememberpositions,weight,andradiiintoaccount.
InheritanceHierarchySystemObjectObjectComponentBehaviourMonoBehaviourCinemachineCinemachineTargetGroup
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheCinemachineTargetGrouptypeexposesthefollowingmembers.
Constructors Name Description
[DocumentationSortingAttribute(19f,DocumentationSortingAttribute
[AddComponentMenu("Cinemachine/CinemachineTargetGroup")]
[SaveDuringPlayAttribute]
[ExecuteInEditMode]
publicclassCinemachineTargetGroup:MonoBehaviour
CopyC# JavaScript
CinemachineTargetGroup
Top
Properties Name Description
BoundingBox Theaxis-alignedboundingboxofthegroup,computedusingthetargetspositionsandradii
IsEmpty Returntrueiftherearenomemberswithweight>0
Top
Methods Name Description
GetViewSpaceBoundingBox Theaxis-alignedboundingboxofthegroup,inaspecificreferenceframe
Top
Fields Name Description
m_PositionMode Howthegroup'spositioniscalculated
m_RotationMode Howthegroup'sorientationiscalculated
m_Targets Thetargetobjects,together
withtheirweightsandradii,thatwillcontributetothegroup'saverageposition,orientation,andsize
m_UpdateMethod Whentoupdatethegroup'stransformbasedonthepositionofthegroupmembers
Top
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineTargetGroupConstructor
[Missing<summary>documentationfor"M:Cinemachine.CinemachineTargetGroup.#ctor"]
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineTargetGroupClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicCinemachineTargetGroup()
CopyC# JavaScript
Cinemachine
CinemachineTargetGroupProperties
TheCinemachineTargetGrouptypeexposesthefollowingmembers.
Properties Name Description
BoundingBox Theaxis-alignedboundingboxofthegroup,computedusingthetargetspositionsandradii
IsEmpty Returntrueiftherearenomemberswithweight>0
Top
SeeAlsoReferenceCinemachineTargetGroupClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineTargetGroupBoundingBoxProperty
Theaxis-alignedboundingboxofthegroup,computedusingthetargetspositionsandradii
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Bounds
SeeAlsoReferenceCinemachineTargetGroupClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicBoundsBoundingBox{get;}
CopyC# JavaScript
Cinemachine
CinemachineTargetGroupIsEmptyProperty
Returntrueiftherearenomemberswithweight>0
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Boolean
SeeAlsoReferenceCinemachineTargetGroupClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicboolIsEmpty{get;}
CopyC# JavaScript
Cinemachine
CinemachineTargetGroupMethods
TheCinemachineTargetGrouptypeexposesthefollowingmembers.
Methods Name Description
GetViewSpaceBoundingBox Theaxis-alignedboundingboxofthegroup,inaspecificreferenceframe
Top
SeeAlsoReferenceCinemachineTargetGroupClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineTargetGroupGetViewSpaceBoundingBoxMethod
Theaxis-alignedboundingboxofthegroup,inaspecificreferenceframe
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
mViewType:Matrix4x4Theframeofreferenceinwhichtocomputetheboundingbox
ReturnValueType:BoundsTheaxis-alignedboundingboxofthegroup,inthedesiredframeofreference
SeeAlsoReferenceCinemachineTargetGroupClassCinemachineNamespace
publicBoundsGetViewSpaceBoundingBox(
Matrix4x4mView
)
CopyC# JavaScript
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineTargetGroupFields
TheCinemachineTargetGrouptypeexposesthefollowingmembers.
Fields Name Description
m_PositionMode Howthegroup'spositioniscalculated
m_RotationMode Howthegroup'sorientationiscalculated
m_Targets Thetargetobjects,togetherwiththeirweightsandradii,thatwillcontributetothegroup'saverageposition,orientation,andsize
m_UpdateMethod Whentoupdatethegroup'stransformbasedonthepositionofthegroupmembers
Top
SeeAlsoReferenceCinemachineTargetGroupClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineTargetGroupm_PositionModeField
Howthegroup'spositioniscalculated
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachineTargetGroupPositionMode
SeeAlsoReferenceCinemachineTargetGroupClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Howthegroup'spositioniscalculated.SelectGroupCenterforthecenteroftheboundingbox,andGroupAverageforaweightedaverageofthepositionsofthemembers.")]
publicCinemachineTargetGroupPositionModem_PositionMode
CopyC# JavaScript
Cinemachine
CinemachineTargetGroupm_RotationModeField
Howthegroup'sorientationiscalculated
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachineTargetGroupRotationMode
SeeAlsoReferenceCinemachineTargetGroupClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Howthegroup'srotationiscalculated.SelectManualtousethevalueinthegroup'stransform,andGroupAverageforaweightedaverageoftheorientationsofthemembers.")]
publicCinemachineTargetGroupRotationModem_RotationMode
CopyC# JavaScript
Cinemachine
CinemachineTargetGroupm_TargetsField
Thetargetobjects,togetherwiththeirweightsandradii,thatwillcontributetothegroup'saverageposition,orientation,andsize
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachineTargetGroupTarget
SeeAlsoReferenceCinemachineTargetGroupClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[NoSaveDuringPlayAttribute]
[TooltipAttribute("Thetargetobjects,togetherwiththeirweightsandradii,thatwillcontributetothegroup'saverageposition,orientation,andsize.")]
publicCinemachineTargetGroupTarget[]m_Targets
CopyC# JavaScript
Cinemachine
CinemachineTargetGroupm_UpdateMethodField
Whentoupdatethegroup'stransformbasedonthepositionofthegroupmembers
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachineTargetGroupUpdateMethod
SeeAlsoReferenceCinemachineTargetGroupClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Whentoupdatethegroup'stransformbasedonthepositionofthegroupmembers")]
publicCinemachineTargetGroupUpdateMethodm_UpdateMethod
CopyC# JavaScript
Cinemachine
CinemachineTargetGroupPositionModeEnumeration
Howthegroup'spositioniscalculated
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Members
Membername Value Description
GroupCenter 0 Grouppositionwillbethecenterofthegroup'saxis-alignedboundingbox
GroupAverage 1 Grouppositionwillbetheweightedaverageofthepositionsofthemembers
SeeAlsoReference
[DocumentationSortingAttribute(19.2f,DocumentationSortingAttribute
publicenumPositionMode
CopyC# JavaScript
CinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineTargetGroupRotationModeEnumeration
Howthegroup'sorientationiscalculated
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Members
Membername Value Description
Manual 0 Manuallysetinthegroup'stransform
GroupAverage 1 Weightedaverageoftheorientationofitsmembers.
SeeAlsoReferenceCinemachineNamespace
[DocumentationSortingAttribute(19.3f,DocumentationSortingAttribute
publicenumRotationMode
CopyC# JavaScript
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineTargetGroupTargetStructure
Holdstheinformationthatrepresentsamemberofthegroup
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheCinemachineTargetGroupTargettypeexposesthefollowingmembers.
Fields Name Description
radius Theradiusofthetarget,usedforcalculatingtheboundingbox.Cannotbenegative
target Thetargetobjects.Thisobject'spositionandorientationwillcontributetothegroup'saveragepositionandorientation,inaccordancewithitsweight
weight Howmuchweighttogivethetarget
[SerializableAttribute]
[DocumentationSortingAttribute(19.1f,DocumentationSortingAttribute
publicstructTarget
CopyC# JavaScript
whenaveraging.Cannotbenegative
Top
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
TargetFields
TheCinemachineTargetGroupTargettypeexposesthefollowingmembers.
Fields Name Description
radius Theradiusofthetarget,usedforcalculatingtheboundingbox.Cannotbenegative
target Thetargetobjects.Thisobject'spositionandorientationwillcontributetothegroup'saveragepositionandorientation,inaccordancewithitsweight
weight Howmuchweighttogivethetargetwhenaveraging.Cannotbenegative
Top
SeeAlsoReferenceCinemachineTargetGroupTargetStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineTargetGroupTargetradiusField
Theradiusofthetarget,usedforcalculatingtheboundingbox.Cannotbenegative
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineTargetGroupTargetStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Theradiusofthetarget,usedforcalculatingtheboundingbox.Cannotbenegative")]
publicfloatradius
CopyC# JavaScript
Cinemachine
CinemachineTargetGroupTargettargetField
Thetargetobjects.Thisobject'spositionandorientationwillcontributetothegroup'saveragepositionandorientation,inaccordancewithitsweight
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Transform
SeeAlsoReferenceCinemachineTargetGroupTargetStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Thetargetobjects.Thisobject'spositionandorientationwillcontributetothegroup'saveragepositionandorientation,inaccordancewithitsweight")]
publicTransformtarget
CopyC# JavaScript
Cinemachine
CinemachineTargetGroupTargetweightField
Howmuchweighttogivethetargetwhenaveraging.Cannotbenegative
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineTargetGroupTargetStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Howmuchweighttogivethetargetwhenaveraging.Cannotbenegative")]
publicfloatweight
CopyC# JavaScript
Cinemachine
CinemachineTargetGroupUpdateMethodEnumeration
Thisenumdefinestheoptionsavailablefortheupdatemethod.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Members
Membername Value Description
Update 0 UpdatedinnormalMonoBehaviourUpdate.
FixedUpdate 1 UpdatedinsyncwiththePhysicsmodule,inFixedUpdate
LateUpdate 2 UpdatedinMonoBehaviourLateUpdate.
SeeAlsoReference
publicenumUpdateMethod
CopyC# JavaScript
CinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineTrackedDollyClass
ACinemachineVirtualCameraBodycomponentthatconstrainscameramotiontoaCinemachinePath.Thecameracanmovealongthepath.Thisbehaviourcanoperateintwomodes:manualpositioning,andAuto-Dollypositioning.InManualmode,thecamera'spositionisspecifiedbyanimatingthePathPositionfield.InAuto-Dollymode,thePathPositionfieldisanimatedautomaticallyeveryframebyfindingthepositiononthepaththat'sclosesttothevirtualcamera'sFollowtarget.
InheritanceHierarchySystemObjectObjectComponentBehaviourMonoBehaviourCinemachineCinemachineComponentBaseCinemachineCinemachineTrackedDolly
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheCinemachineTrackedDollytypeexposesthefollowingmembers.
[DocumentationSortingAttribute(7f,DocumentationSortingAttribute
[AddComponentMenu("")]
[RequireComponent(typeof(CinemachinePipeline))]
[SaveDuringPlayAttribute]
publicclassCinemachineTrackedDolly:CinemachineComponentBase
CopyC# JavaScript
Constructors Name Description
CinemachineTrackedDolly
Top
Properties Name Description
FollowTarget Returnstheownervcam'sFollowtarget.(InheritedfromCinemachineComponentBase.)
IsValid Trueifcomponentisenabledandhasapath(OverridesCinemachineComponentBaseIsValid.)
LookAtTarget Returnstheownervcam'sLookAttarget.(InheritedfromCinemachineComponentBase.)
Stage GettheCinemachinePipelinestagethatthiscomponentimplements.AlwaysreturnstheBodystage(OverridesCinemachineComponentBaseStage.)
VcamState Returnstheownervcam'sCameraState.(InheritedfromCinemachineComponentBase.)
VirtualCamera GettheassociatedCinemachineVirtualCameraBase(InheritedfromCinemachineComponentBase.)
Top
Methods Name Description
MutateCameraState Positionsthevirtualcameraaccordingtothetransposerrules.(OverridesCinemachineComponentBaseMutateCameraState(CameraStateSingle).)
OnPositionDragged APIfortheeditor,toprocessapositiondragfromtheuser.implementationaddsthedeltatothefollowoffset.(OverridesCinemachineComponentBaseOnPositionDragged(Vector3)
Top
Fields Name Description
m_AutoDolly Controlshowautomaticdollyingoccurs
m_CameraUp Howtosetthevirtualcamera'sUpvector.Thiswillaffectthescreencomposition.
m_Path Thepathtowhichthecamerawillbeconstrained.Thismustbenon-null.
m_PathOffset Wheretoputthecamera
realtivetothepathpostion.Xisperpendiculartothepath,Yisup,andZisparalleltothepath.
m_PathPosition Thepositionalongthepathatwhichthecamerawillbeplaced.Thiscanbeanimateddirectly,orsetautomaticallybytheAuto-DollyfeaturetogetascloseaspossibletotheFollowtarget.
m_PitchDamping "Howaggressivelythecameratriestotrackthetargetrotation'sXangle.Smallnumbersaremoreresponsive.Largernumbersgiveamoreheavyslowlyrespondingcamera.
m_PositionUnits HowtointerpretthePathPosition
m_RollDamping Howaggressivelythecameratriestotrackthetargetrotation'sZangle.Smallnumbersaremoreresponsive.Largernumbersgiveamoreheavyslowlyrespondingcamera.
m_XDamping Howaggressivelythecameratriestomaintaintheoffsetperpendiculartothepath.Smallnumbersaremoreresponsive,rapidlytranslatingthecameratokeepthetarget'sx-axisoffset.Largernumbers
giveamoreheavyslowlyrespondingcamera.Usingdifferentsettingsperaxiscanyieldawiderangeofcamerabehaviors
m_YawDamping Howaggressivelythecameratriestotrackthetargetrotation'sYangle.Smallnumbersaremoreresponsive.Largernumbersgiveamoreheavyslowlyrespondingcamera.
m_YDamping Howaggressivelythecameratriestomaintaintheoffsetinthepath-localupdirection.Smallnumbersaremoreresponsive,rapidlytranslatingthecameratokeepthetarget'sy-axisoffset.Largernumbersgiveamoreheavyslowlyrespondingcamera.Usingdifferentsettingsperaxiscanyieldawiderangeofcamerabehaviors
m_ZDamping Howaggressivelythecameratriestomaintaintheoffsetparalleltothepath.Smallnumbersaremoreresponsive,rapidlytranslatingthecameratokeepthetarget'sz-axisoffset.Largernumbersgiveamoreheavyslowlyrespondingcamera.Usingdifferentsettingsperaxiscanyieldawiderangeofcamerabehaviors
Top
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineTrackedDollyConstructor
[Missing<summary>documentationfor"M:Cinemachine.CinemachineTrackedDolly.#ctor"]
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineTrackedDollyClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicCinemachineTrackedDolly()
CopyC# JavaScript
Cinemachine
CinemachineTrackedDollyProperties
TheCinemachineTrackedDollytypeexposesthefollowingmembers.
Properties Name Description
FollowTarget Returnstheownervcam'sFollowtarget.(InheritedfromCinemachineComponentBase.)
IsValid Trueifcomponentisenabledandhasapath(OverridesCinemachineComponentBaseIsValid.)
LookAtTarget Returnstheownervcam'sLookAttarget.(InheritedfromCinemachineComponentBase.)
Stage GettheCinemachinePipelinestagethatthiscomponentimplements.AlwaysreturnstheBodystage(OverridesCinemachineComponentBaseStage.)
VcamState Returnstheownervcam'sCameraState.(InheritedfromCinemachineComponentBase.)
VirtualCamera GettheassociatedCinemachineVirtualCameraBase(InheritedfromCinemachineComponentBase.)
Top
SeeAlsoReferenceCinemachineTrackedDollyClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineTrackedDollyIsValidProperty
Trueifcomponentisenabledandhasapath
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Boolean
SeeAlsoReferenceCinemachineTrackedDollyClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverrideboolIsValid{get;}
CopyC# JavaScript
Cinemachine
CinemachineTrackedDollyStageProperty
GettheCinemachinePipelinestagethatthiscomponentimplements.AlwaysreturnstheBodystage
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:CinemachineCoreStage
SeeAlsoReferenceCinemachineTrackedDollyClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverrideCinemachineCoreStageStage{get;}
CopyC# JavaScript
Cinemachine
CinemachineTrackedDollyMethods
TheCinemachineTrackedDollytypeexposesthefollowingmembers.
Methods Name Description
MutateCameraState Positionsthevirtualcameraaccordingtothetransposerrules.(OverridesCinemachineComponentBaseMutateCameraState(CameraStateSingle).)
OnPositionDragged APIfortheeditor,toprocessapositiondragfromtheuser.implementationaddsthedeltatothefollowoffset.(OverridesCinemachineComponentBaseOnPositionDragged(Vector3)
Top
SeeAlsoReferenceCinemachineTrackedDollyClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineTrackedDollyMutateCameraStateMethod
Positionsthevirtualcameraaccordingtothetransposerrules.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
curStateType:CinemachineCameraStateThecurrentcamerastate
deltaTimeType:SystemSingleUsedfordamping.Iflessthat0,nodampingisdone.
SeeAlsoReferenceCinemachineTrackedDollyClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverridevoidMutateCameraState(
refCameraStatecurState,
floatdeltaTime
)
CopyC# JavaScript
Cinemachine
CinemachineTrackedDollyOnPositionDraggedMethod
APIfortheeditor,toprocessapositiondragfromtheuser.Thisimplementationaddsthedeltatothefollowoffset.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
deltaType:Vector3Theamountdraggedthisframe
SeeAlsoReferenceCinemachineTrackedDollyClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverridevoidOnPositionDragged(
Vector3delta
)
CopyC# JavaScript
Cinemachine
CinemachineTrackedDollyFields
TheCinemachineTrackedDollytypeexposesthefollowingmembers.
Fields Name Description
m_AutoDolly Controlshowautomaticdollyingoccurs
m_CameraUp Howtosetthevirtualcamera'sUpvector.Thiswillaffectthescreencomposition.
m_Path Thepathtowhichthecamerawillbeconstrained.Thismustbenon-null.
m_PathOffset Wheretoputthecamerarealtivetothepathpostion.Xisperpendiculartothepath,Yisup,andZisparalleltothepath.
m_PathPosition Thepositionalongthepathatwhichthecamerawillbeplaced.Thiscanbeanimateddirectly,orsetautomaticallybytheAuto-DollyfeaturetogetascloseaspossibletotheFollowtarget.
m_PitchDamping "Howaggressivelythecameratriestotrackthetargetrotation'sXangle.Small
numbersaremoreresponsive.Largernumbersgiveamoreheavyslowlyrespondingcamera.
m_PositionUnits HowtointerpretthePathPosition
m_RollDamping Howaggressivelythecameratriestotrackthetargetrotation'sZangle.Smallnumbersaremoreresponsive.Largernumbersgiveamoreheavyslowlyrespondingcamera.
m_XDamping Howaggressivelythecameratriestomaintaintheoffsetperpendiculartothepath.Smallnumbersaremoreresponsive,rapidlytranslatingthecameratokeepthetarget'sx-axisoffset.Largernumbersgiveamoreheavyslowlyrespondingcamera.Usingdifferentsettingsperaxiscanyieldawiderangeofcamerabehaviors
m_YawDamping Howaggressivelythecameratriestotrackthetargetrotation'sYangle.Smallnumbersaremoreresponsive.Largernumbersgiveamoreheavyslowlyrespondingcamera.
m_YDamping Howaggressivelythecameratriestomaintaintheoffsetin
thepath-localupdirection.Smallnumbersaremoreresponsive,rapidlytranslatingthecameratokeepthetarget'sy-axisoffset.Largernumbersgiveamoreheavyslowlyrespondingcamera.Usingdifferentsettingsperaxiscanyieldawiderangeofcamerabehaviors
m_ZDamping Howaggressivelythecameratriestomaintaintheoffsetparalleltothepath.Smallnumbersaremoreresponsive,rapidlytranslatingthecameratokeepthetarget'sz-axisoffset.Largernumbersgiveamoreheavyslowlyrespondingcamera.Usingdifferentsettingsperaxiscanyieldawiderangeofcamerabehaviors
Top
SeeAlsoReferenceCinemachineTrackedDollyClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineTrackedDollym_AutoDollyField
Controlshowautomaticdollyingoccurs
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachineTrackedDollyAutoDolly
SeeAlsoReferenceCinemachineTrackedDollyClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Controlshowautomaticdollyingoccurs.AFollowtargetisnecessarytousethisfeature.")]
publicCinemachineTrackedDollyAutoDollym_AutoDolly
CopyC# JavaScript
Cinemachine
CinemachineTrackedDollym_CameraUpField
Howtosetthevirtualcamera'sUpvector.Thiswillaffectthescreencomposition.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachineTrackedDollyCameraUpMode
SeeAlsoReferenceCinemachineTrackedDollyClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Howtosetthevirtualcamera'sUpvector.Thiswillaffectthescreencomposition,becausethecameraAimbehaviourswillalwaystrytorespecttheUpdirection.")]
publicCinemachineTrackedDollyCameraUpModem_CameraUp
CopyC# JavaScript
Cinemachine
CinemachineTrackedDollym_PathField
Thepathtowhichthecamerawillbeconstrained.Thismustbenon-null.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachinePathBase
SeeAlsoReferenceCinemachineTrackedDollyClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Thepathtowhichthecamerawillbeconstrained.Thismustbenon-null.")]
publicCinemachinePathBasem_Path
CopyC# JavaScript
Cinemachine
CinemachineTrackedDollym_PathOffsetField
Wheretoputthecamerarealtivetothepathpostion.Xisperpendiculartothepath,Yisup,andZisparalleltothepath.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Vector3
SeeAlsoReferenceCinemachineTrackedDollyClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Wheretoputthecamerarelativetothepathposition.Xisperpendiculartothepath,Yisup,andZisparalleltothepath.Thisallowsthecameratobeoffsetfromthepathitself(asifonatripod,forexample).")]
publicVector3m_PathOffset
CopyC# JavaScript
Cinemachine
CinemachineTrackedDollym_PathPositionField
Thepositionalongthepathatwhichthecamerawillbeplaced.Thiscanbeanimateddirectly,orsetautomaticallybytheAuto-DollyfeaturetogetascloseaspossibletotheFollowtarget.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineTrackedDollyClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Thepositionalongthepathatwhichthecamerawillbeplaced.Thiscanbeanimateddirectly,orsetautomaticallybytheAuto-DollyfeaturetogetascloseaspossibletotheFollowtarget.ThevalueisinterpretedaccordingtothePositionUnitssetting.")]
publicfloatm_PathPosition
CopyC# JavaScript
Cinemachine
CinemachineTrackedDollym_PitchDampingField
"Howaggressivelythecameratriestotrackthetargetrotation'sXangle.Smallnumbersaremoreresponsive.Largernumbersgiveamoreheavyslowlyrespondingcamera.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineTrackedDollyClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[RangeAttribute(0f,20f)]
[TooltipAttribute("Howaggressivelythecameratriestotrackthetargetrotation'sXangle.Smallnumbersaremoreresponsive.Largernumbersgiveamoreheavyslowlyrespondingcamera.")]
publicfloatm_PitchDamping
CopyC# JavaScript
Cinemachine
CinemachineTrackedDollym_PositionUnitsField
HowtointerpretthePathPosition
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachinePathBasePositionUnits
SeeAlsoReferenceCinemachineTrackedDollyClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("HowtointerpretPathPosition.IfsettoPathUnits,valuesareasfollows:0representsthefirstwaypointonthepath,1isthesecond,andsoon.Valuesin-betweenarepointsonthepathinbetweenthewaypoints.IfsettoDistance,thenPathPositionrepresentsdistancealongthepath.")]
publicCinemachinePathBasePositionUnitsm_PositionUnits
CopyC# JavaScript
Cinemachine
CinemachineTrackedDollym_RollDampingField
Howaggressivelythecameratriestotrackthetargetrotation'sZangle.Smallnumbersaremoreresponsive.Largernumbersgiveamoreheavyslowlyrespondingcamera.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineTrackedDollyClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[RangeAttribute(0f,20f)]
[TooltipAttribute("Howaggressivelythecameratriestotrackthetargetrotation'sZangle.Smallnumbersaremoreresponsive.Largernumbersgiveamoreheavyslowlyrespondingcamera.")]
publicfloatm_RollDamping
CopyC# JavaScript
Cinemachine
CinemachineTrackedDollym_XDampingField
Howaggressivelythecameratriestomaintaintheoffsetperpendiculartothepath.Smallnumbersaremoreresponsive,rapidlytranslatingthecameratokeepthetarget'sx-axisoffset.Largernumbersgiveamoreheavyslowlyrespondingcamera.Usingdifferentsettingsperaxiscanyieldawiderangeofcamerabehaviors
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineTrackedDollyClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[RangeAttribute(0f,20f)]
[TooltipAttribute("Howaggressivelythecameratriestomaintainitspositioninadirectionperpendiculartothepath.Smallnumbersaremoreresponsive,rapidlytranslatingthecameratokeepthetarget'sx-axisoffset.Largernumbersgiveamoreheavyslowlyrespondingcamera.Usingdifferentsettingsperaxiscanyieldawiderangeofcamerabehaviors.")]
publicfloatm_XDamping
CopyC# JavaScript
Cinemachine
CinemachineTrackedDollym_YawDampingField
Howaggressivelythecameratriestotrackthetargetrotation'sYangle.Smallnumbersaremoreresponsive.Largernumbersgiveamoreheavyslowlyrespondingcamera.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineTrackedDollyClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[RangeAttribute(0f,20f)]
[TooltipAttribute("Howaggressivelythecameratriestotrackthetargetrotation'sYangle.Smallnumbersaremoreresponsive.Largernumbersgiveamoreheavyslowlyrespondingcamera.")]
publicfloatm_YawDamping
CopyC# JavaScript
Cinemachine
CinemachineTrackedDollym_YDampingField
Howaggressivelythecameratriestomaintaintheoffsetinthepath-localupdirection.Smallnumbersaremoreresponsive,rapidlytranslatingthecameratokeepthetarget'sy-axisoffset.Largernumbersgiveamoreheavyslowlyrespondingcamera.Usingdifferentsettingsperaxiscanyieldawiderangeofcamerabehaviors
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineTrackedDollyClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[RangeAttribute(0f,20f)]
[TooltipAttribute("Howaggressivelythecameratriestomaintainitspositioninthepath-localupdirection.Smallnumbersaremoreresponsive,rapidlytranslatingthecameratokeepthetarget'sy-axisoffset.Largernumbersgiveamoreheavyslowlyrespondingcamera.Usingdifferentsettingsperaxiscanyieldawiderangeofcamerabehaviors.")]
publicfloatm_YDamping
CopyC# JavaScript
Cinemachine
CinemachineTrackedDollym_ZDampingField
Howaggressivelythecameratriestomaintaintheoffsetparalleltothepath.Smallnumbersaremoreresponsive,rapidlytranslatingthecameratokeepthetarget'sz-axisoffset.Largernumbersgiveamoreheavyslowlyrespondingcamera.Usingdifferentsettingsperaxiscanyieldawiderangeofcamerabehaviors
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineTrackedDollyClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[RangeAttribute(0f,20f)]
[TooltipAttribute("Howaggressivelythecameratriestomaintainitspositioninadirectionparalleltothepath.Smallnumbersaremoreresponsive,rapidlytranslatingthecameratokeepthetarget'sz-axisoffset.Largernumbersgiveamoreheavyslowlyrespondingcamera.Usingdifferentsettingsperaxiscanyieldawiderangeofcamerabehaviors.")]
publicfloatm_ZDamping
CopyC# JavaScript
Cinemachine
CinemachineTrackedDollyAutoDollyStructure
Controlshowautomaticdollyingoccurs
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheCinemachineTrackedDollyAutoDollytypeexposesthefollowingmembers.
Constructors Name Description
CinemachineTrackedDollyAutoDolly Constructorwithspecificfieldvalues
Top
Fields Name Description
[SerializableAttribute]
[DocumentationSortingAttribute(7.2f,DocumentationSortingAttribute
publicstructAutoDolly
CopyC# JavaScript
m_Enabled Ifchecked,willenableautomaticdolly,whichchoosesapathpositionthatisascloseaspossibletotheFollowtarget.
m_PositionOffset Offset,incurrentpositionunits,fromtheclosestpointonthepathtothefollowtarget.
m_SearchRadius Searchuptohowmanywaypointsoneithersideofthecurrentposition.Use0forEntirepath
m_SearchResolution Wesearchbetweenwaypointsbydividingthesegmentintothismanystraightpieces.Thehigherthenumber,themoreaccuratetheresult,butperformanceisproportionallyslowerforhighernumbers
Top
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineTrackedDollyAutoDollyConstructor
Constructorwithspecificfieldvalues
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
enabledType:SystemBoolean[Missing<paramname="enabled"/>documentationfor"M:Cinemachine.CinemachineTrackedDolly.AutoDolly.#ctor(System.Boolean,System.Single,System.Int32,System.Int32)"]
positionOffsetType:SystemSingle[Missing<paramname="positionOffset"/>documentationfor"M:Cinemachine.CinemachineTrackedDolly.AutoDolly.#ctor(System.Boolean,System.Single,System.Int32,System.Int32)"]
searchRadiusType:SystemInt32[Missing<paramname="searchRadius"/>documentationfor"M:Cinemachine.CinemachineTrackedDolly.AutoDolly.#ctor(System.Boolean,System.Single,System.Int32,System.Int32)"]
stepsPerSegment
publicAutoDolly(
boolenabled,
floatpositionOffset,
intsearchRadius,
intstepsPerSegment
)
CopyC# JavaScript
Type:SystemInt32[Missing<paramname="stepsPerSegment"/>documentationfor"M:Cinemachine.CinemachineTrackedDolly.AutoDolly.#ctor(System.Boolean,System.Single,System.Int32,System.Int32)"]
SeeAlsoReferenceCinemachineTrackedDollyAutoDollyStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
AutoDollyFields
TheCinemachineTrackedDollyAutoDollytypeexposesthefollowingmembers.
Fields Name Description
m_Enabled Ifchecked,willenableautomaticdolly,whichchoosesapathpositionthatisascloseaspossibletotheFollowtarget.
m_PositionOffset Offset,incurrentpositionunits,fromtheclosestpointonthepathtothefollowtarget.
m_SearchRadius Searchuptohowmanywaypointsoneithersideofthecurrentposition.Use0forEntirepath
m_SearchResolution Wesearchbetweenwaypointsbydividingthesegmentintothismanystraightpieces.Thehigherthenumber,themoreaccuratetheresult,butperformanceisproportionallyslowerforhighernumbers
Top
SeeAlsoReferenceCinemachineTrackedDollyAutoDollyStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineTrackedDollyAutoDollym_EnabledField
Ifchecked,willenableautomaticdolly,whichchoosesapathpositionthatisascloseaspossibletotheFollowtarget.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Boolean
SeeAlsoReferenceCinemachineTrackedDollyAutoDollyStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Ifchecked,willenableautomaticdolly,whichchoosesapathpositionthatisascloseaspossibletotheFollowtarget.Note:thiscanhavesignificantperformanceimpact")]
publicboolm_Enabled
CopyC# JavaScript
Cinemachine
CinemachineTrackedDollyAutoDollym_PositionOffsetField
Offset,incurrentpositionunits,fromtheclosestpointonthepathtothefollowtarget.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineTrackedDollyAutoDollyStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Offset,incurrentpositionunits,fromtheclosestpointonthepathtothefollowtarget")]
publicfloatm_PositionOffset
CopyC# JavaScript
Cinemachine
CinemachineTrackedDollyAutoDollym_SearchRadiusField
Searchuptohowmanywaypointsoneithersideofthecurrentposition.Use0forEntirepath
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Int32
SeeAlsoReferenceCinemachineTrackedDollyAutoDollyStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Searchuptohowmanywaypointsoneithersideofthecurrentposition.Use0forEntirepath.")]
publicintm_SearchRadius
CopyC# JavaScript
Cinemachine
CinemachineTrackedDollyAutoDollym_SearchResolutionField
Wesearchbetweenwaypointsbydividingthesegmentintothismanystraightpieces.Thehigherthenumber,themoreaccuratetheresult,butperformanceisproportionallyslowerforhighernumbers
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Int32
SeeAlsoReferenceCinemachineTrackedDollyAutoDollyStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[FormerlySerializedAsAttribute("m_StepsPerSegment")]
[TooltipAttribute("Wesearchbetweenwaypointsbydividingthesegmentintothismanystraightpieces.Thehigherthenumber,themoreaccuratetheresult,butperformanceisproportionallyslowerforhighernumbers")]
publicintm_SearchResolution
CopyC# JavaScript
Cinemachine
CinemachineTrackedDollyCameraUpModeEnumeration
Differentwaystosetthecamera'supvector
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Members Membername Value Description
Default 0 Leavethecamera'supvectoralone.ItwillbesetaccordingtotheBrain'sWorldUp.
Path 1 Taketheupvectorfromthepath'supvectoratthecurrentpoint
PathNoRoll 2 Taketheupvectorfromthepath'sup
[DocumentationSortingAttribute(7.1f,DocumentationSortingAttribute
publicenumCameraUpMode
CopyC# JavaScript
vectoratthecurrentpoint,butwiththerollzeroedout
FollowTarget 3 TaketheupvectorfromtheFollowtarget'supvector
FollowTargetNoRoll 4 TaketheupvectorfromtheFollowtarget'supvector,butwiththerollzeroedout
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineTransposerClass
ThisisaCinemachineComponentintheBodysectionofthecomponentpipeline.Itsjobistopositionthecamerainafixedrelationshiptothevcam'sFollowtargetobject,withoffsetsanddamping.TheTansposerwillonlychangethecamera'spositioninspace.Itwillnotre-orientorotherwiseaimthecamera.Totothat,youneedtoinstructthevcamintheAimsectionofitspipeline.
InheritanceHierarchySystemObjectObjectComponentBehaviourMonoBehaviourCinemachineCinemachineComponentBaseCinemachineCinemachineTransposerCinemachineCinemachineOrbitalTransposer
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheCinemachineTransposertypeexposesthefollowingmembers.
[DocumentationSortingAttribute(5f,DocumentationSortingAttribute
[AddComponentMenu("")]
[RequireComponent(typeof(CinemachinePipeline))]
[SaveDuringPlayAttribute]
publicclassCinemachineTransposer:CinemachineComponentBase
CopyC# JavaScript
Constructors Name Description
CinemachineTransposer
Top
Properties Name Description
AngularDamping Dampingspeedsforeachofthe3axesofthetarget'srotation
Damping Dampingspeedsforeachofthe3axesoftheoffsetfromtarget
EffectiveOffset Getthetargetoffset,withsanitization
FollowTarget Returnstheownervcam'sFollowtarget.(InheritedfromCinemachineComponentBase.)
IsValid TrueifcomponentisenabledandhasavalidFollowtarget(OverridesCinemachineComponentBaseIsValid.)
LookAtTarget Returnstheownervcam'sLookAttarget.(InheritedfromCinemachineComponentBase.)
Stage GettheCinemachinePipelinestagethatthiscomponentimplements.AlwaysreturnstheBodystage
(OverridesCinemachineComponentBaseStage.)
VcamState Returnstheownervcam'sCameraState.(InheritedfromCinemachineComponentBase.)
VirtualCamera GettheassociatedCinemachineVirtualCameraBase(InheritedfromCinemachineComponentBase.)
Top
Methods Name Description
GeTargetCameraPosition InternalAPIfortheInspectorEditor,soitcandrawamarkeratthetarget
GetReferenceOrientation InternalAPIfortheInspectorEditor,soitcandrawamarkeratthetarget
InitPrevFrameStateInfo Initializesthestateforpreviousframeifappropriate.
MutateCameraState Positionsthevirtualcameraaccordingtothetransposerrules.(OverridesCinemachineComponentBaseMutateCameraState(CameraStateSingle).)
OnPositionDragged APIfortheeditor,toprocessapositiondragfromtheuser.implementationaddsthedeltatothefollowoffset.(OverridesCinemachineComponentBaseOnPositionDragged(Vector3)
OnValidate
TrackTarget Positionsthevirtualcameraaccordingtothetransposerrules.
Top
Fields Name Description
m_BindingMode Thecoordinatespacetousewheninterpretingtheoffsetfromthetarget
m_FollowOffset Thedistancewhichthetransposerwillattempttomaintainfromthetransposersubject
m_PitchDamping Howaggressivelythecameratriestotrackthetargetrotation'sXangle.Smallnumbersaremoreresponsive.Largernumbersgiveamoreheavyslowlyrespondingcamera.
m_RollDamping Howaggressivelythecameratriestotrackthetargetrotation'sZangle.Smallnumbersaremoreresponsive.Largernumbersgiveamoreheavyslowlyrespondingcamera.
m_XDamping HowaggressivelythecameratriestomaintaintheoffsetintheX-axis.Smallnumbersaremoreresponsive,rapidlytranslatingthecameratokeepthetarget'sx-axisoffset.
Largernumbersgiveamoreheavyslowlyrespondingcamera.Usingdifferentsettingsperaxiscanyieldawiderangeofcamerabehaviors
m_YawDamping Howaggressivelythecameratriestotrackthetargetrotation'sYangle.Smallnumbersaremoreresponsive.Largernumbersgiveamoreheavyslowlyrespondingcamera.
m_YDamping HowaggressivelythecameratriestomaintaintheoffsetintheY-axis.Smallnumbersaremoreresponsive,rapidlytranslatingthecameratokeepthetarget'sy-axisoffset.Largernumbersgiveamoreheavyslowlyrespondingcamera.Usingdifferentsettingsperaxiscanyieldawiderangeofcamerabehaviors
m_ZDamping HowaggressivelythecameratriestomaintaintheoffsetintheZ-axis.Smallnumbersaremoreresponsive,rapidlytranslatingthecameratokeepthetarget'sz-axisoffset.Largernumbersgiveamoreheavyslowlyrespondingcamera.Usingdifferentsettingsperaxiscanyieldawiderangeofcamera
behaviors
Top
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineTransposerConstructor
[Missing<summary>documentationfor"M:Cinemachine.CinemachineTransposer.#ctor"]
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicCinemachineTransposer()
CopyC# JavaScript
Cinemachine
CinemachineTransposerProperties
TheCinemachineTransposertypeexposesthefollowingmembers.
Properties Name Description
AngularDamping Dampingspeedsforeachofthe3axesofthetarget'srotation
Damping Dampingspeedsforeachofthe3axesoftheoffsetfromtarget
EffectiveOffset Getthetargetoffset,withsanitization
FollowTarget Returnstheownervcam'sFollowtarget.(InheritedfromCinemachineComponentBase.)
IsValid TrueifcomponentisenabledandhasavalidFollowtarget(OverridesCinemachineComponentBaseIsValid.)
LookAtTarget Returnstheownervcam'sLookAttarget.(InheritedfromCinemachineComponentBase.)
Stage GettheCinemachinePipelinestagethatthiscomponentimplements.AlwaysreturnstheBodystage
(OverridesCinemachineComponentBaseStage.)
VcamState Returnstheownervcam'sCameraState.(InheritedfromCinemachineComponentBase.)
VirtualCamera GettheassociatedCinemachineVirtualCameraBase(InheritedfromCinemachineComponentBase.)
Top
SeeAlsoReferenceCinemachineTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineTransposerAngularDampingProperty
Dampingspeedsforeachofthe3axesofthetarget'srotation
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Vector3
SeeAlsoReferenceCinemachineTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
protectedVector3AngularDamping{get;}
CopyC# JavaScript
Cinemachine
CinemachineTransposerDampingProperty
Dampingspeedsforeachofthe3axesoftheoffsetfromtarget
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Vector3
SeeAlsoReferenceCinemachineTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
protectedVector3Damping{get;}
CopyC# JavaScript
Cinemachine
CinemachineTransposerEffectiveOffsetProperty
Getthetargetoffset,withsanitization
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Vector3
SeeAlsoReferenceCinemachineTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
protectedVector3EffectiveOffset{get;}
CopyC# JavaScript
Cinemachine
CinemachineTransposerIsValidProperty
TrueifcomponentisenabledandhasavalidFollowtarget
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Boolean
SeeAlsoReferenceCinemachineTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverrideboolIsValid{get;}
CopyC# JavaScript
Cinemachine
CinemachineTransposerStageProperty
GettheCinemachinePipelinestagethatthiscomponentimplements.AlwaysreturnstheBodystage
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:CinemachineCoreStage
SeeAlsoReferenceCinemachineTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverrideCinemachineCoreStageStage{get;}
CopyC# JavaScript
Cinemachine
CinemachineTransposerMethods
TheCinemachineTransposertypeexposesthefollowingmembers.
Methods Name Description
GeTargetCameraPosition InternalAPIfortheInspectorEditor,soitcandrawamarkeratthetarget
GetReferenceOrientation InternalAPIfortheInspectorEditor,soitcandrawamarkeratthetarget
InitPrevFrameStateInfo Initializesthestateforpreviousframeifappropriate.
MutateCameraState Positionsthevirtualcameraaccordingtothetransposerrules.(OverridesCinemachineComponentBaseMutateCameraState(CameraStateSingle).)
OnPositionDragged APIfortheeditor,toprocessapositiondragfromtheuser.implementationaddsthedeltatothefollowoffset.(OverridesCinemachineComponentBaseOnPositionDragged(Vector3)
OnValidate
TrackTarget Positionsthevirtualcameraaccordingtothetransposerrules.
Top
SeeAlso
ReferenceCinemachineTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineTransposerGeTargetCameraPositionMethod
InternalAPIfortheInspectorEditor,soitcandrawamarkeratthetarget
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
worldUpType:Vector3[Missing<paramname="worldUp"/>documentationfor"M:Cinemachine.CinemachineTransposer.GeTargetCameraPosition(UnityEngine.Vector3)"]
ReturnValueType:Vector3[Missing<returns>documentationfor"M:Cinemachine.CinemachineTransposer.GeTargetCameraPosition(UnityEngine.Vector3)"]
SeeAlsoReferenceCinemachineTransposerClassCinemachineNamespace
publicVector3GeTargetCameraPosition(
Vector3worldUp
)
CopyC# JavaScript
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineTransposerGetReferenceOrientationMethod
InternalAPIfortheInspectorEditor,soitcandrawamarkeratthetarget
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
worldUpType:Vector3[Missing<paramname="worldUp"/>documentationfor"M:Cinemachine.CinemachineTransposer.GetReferenceOrientation(UnityEngine.Vector3)"]
ReturnValueType:Quaternion[Missing<returns>documentationfor"M:Cinemachine.CinemachineTransposer.GetReferenceOrientation(UnityEngine.Vector3)"]
SeeAlsoReferenceCinemachineTransposerClassCinemachineNamespace
publicQuaternionGetReferenceOrientation(
Vector3worldUp
)
CopyC# JavaScript
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineTransposerInitPrevFrameStateInfoMethod
Initializesthestateforpreviousframeifappropriate.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
curStateType:CinemachineCameraState[Missing<paramname="curState"/>documentationfor"M:Cinemachine.CinemachineTransposer.InitPrevFrameStateInfo(Cinemachine.CameraState@,System.Single)"]
deltaTimeType:SystemSingle[Missing<paramname="deltaTime"/>documentationfor"M:Cinemachine.CinemachineTransposer.InitPrevFrameStateInfo(Cinemachine.CameraState@,System.Single)"]
SeeAlsoReferenceCinemachineTransposerClassCinemachineNamespace
protectedvoidInitPrevFrameStateInfo(
refCameraStatecurState,
floatdeltaTime
)
CopyC# JavaScript
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineTransposerMutateCameraStateMethod
Positionsthevirtualcameraaccordingtothetransposerrules.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
curStateType:CinemachineCameraStateThecurrentcamerastate
deltaTimeType:SystemSingleUsedfordamping.Iflessthan0,nodampingisdone.
SeeAlsoReferenceCinemachineTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverridevoidMutateCameraState(
refCameraStatecurState,
floatdeltaTime
)
CopyC# JavaScript
Cinemachine
CinemachineTransposerOnPositionDraggedMethod
APIfortheeditor,toprocessapositiondragfromtheuser.Thisimplementationaddsthedeltatothefollowoffset.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
deltaType:Vector3Theamountdraggedthisframe
SeeAlsoReferenceCinemachineTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverridevoidOnPositionDragged(
Vector3delta
)
CopyC# JavaScript
Cinemachine
CinemachineTransposerOnValidateMethod
[Missing<summary>documentationfor"M:Cinemachine.CinemachineTransposer.OnValidate"]
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
protectedvirtualvoidOnValidate()
CopyC# JavaScript
Cinemachine
CinemachineTransposerTrackTargetMethod
Positionsthevirtualcameraaccordingtothetransposerrules.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
deltaTimeType:SystemSingleUsedfordamping.Iflessthan0,nodampingisdone.
upType:Vector3Currentcameraup
desiredCameraOffsetType:Vector3Wherewewanttoputthecamerarelativetothefollowtarget
outTargetPositionType:Vector3Resultingcameraposition
protectedvoidTrackTarget(
floatdeltaTime,
Vector3up,
Vector3desiredCameraOffset,
outVector3outTargetPosition,
outQuaternionoutTargetOrient
)
CopyC# JavaScript
outTargetOrientType:QuaternionDampedtargetorientation
SeeAlsoReferenceCinemachineTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineTransposerFields
TheCinemachineTransposertypeexposesthefollowingmembers.
Fields Name Description
m_BindingMode Thecoordinatespacetousewheninterpretingtheoffsetfromthetarget
m_FollowOffset Thedistancewhichthetransposerwillattempttomaintainfromthetransposersubject
m_PitchDamping Howaggressivelythecameratriestotrackthetargetrotation'sXangle.Smallnumbersaremoreresponsive.Largernumbersgiveamoreheavyslowlyrespondingcamera.
m_RollDamping Howaggressivelythecameratriestotrackthetargetrotation'sZangle.Smallnumbersaremoreresponsive.Largernumbersgiveamoreheavyslowlyrespondingcamera.
m_XDamping HowaggressivelythecameratriestomaintaintheoffsetintheX-axis.Smallnumbersare
moreresponsive,rapidlytranslatingthecameratokeepthetarget'sx-axisoffset.Largernumbersgiveamoreheavyslowlyrespondingcamera.Usingdifferentsettingsperaxiscanyieldawiderangeofcamerabehaviors
m_YawDamping Howaggressivelythecameratriestotrackthetargetrotation'sYangle.Smallnumbersaremoreresponsive.Largernumbersgiveamoreheavyslowlyrespondingcamera.
m_YDamping HowaggressivelythecameratriestomaintaintheoffsetintheY-axis.Smallnumbersaremoreresponsive,rapidlytranslatingthecameratokeepthetarget'sy-axisoffset.Largernumbersgiveamoreheavyslowlyrespondingcamera.Usingdifferentsettingsperaxiscanyieldawiderangeofcamerabehaviors
m_ZDamping HowaggressivelythecameratriestomaintaintheoffsetintheZ-axis.Smallnumbersaremoreresponsive,rapidlytranslatingthecameratokeepthetarget'sz-axisoffset.Largernumbersgiveamoreheavyslowlyresponding
camera.Usingdifferentsettingsperaxiscanyieldawiderangeofcamerabehaviors
Top
SeeAlsoReferenceCinemachineTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineTransposerm_BindingModeField
Thecoordinatespacetousewheninterpretingtheoffsetfromthetarget
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachineTransposerBindingMode
SeeAlsoReferenceCinemachineTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Thecoordinatespacetousewheninterpretingtheoffsetfromthetarget.Thisisalsousedtosetthecamera'sUpvector,whichwillbemaintainedwhenaimingthecamera.")]
publicCinemachineTransposerBindingModem_BindingMode
CopyC# JavaScript
Cinemachine
CinemachineTransposerm_FollowOffsetField
Thedistancewhichthetransposerwillattempttomaintainfromthetransposersubject
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Vector3
SeeAlsoReferenceCinemachineTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("ThedistancevectorthatthetransposerwillattempttomaintainfromtheFollowtarget")]
publicVector3m_FollowOffset
CopyC# JavaScript
Cinemachine
CinemachineTransposerm_PitchDampingField
Howaggressivelythecameratriestotrackthetargetrotation'sXangle.Smallnumbersaremoreresponsive.Largernumbersgiveamoreheavyslowlyrespondingcamera.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[RangeAttribute(0f,20f)]
[TooltipAttribute("Howaggressivelythecameratriestotrackthetargetrotation'sXangle.Smallnumbersaremoreresponsive.Largernumbersgiveamoreheavyslowlyrespondingcamera.")]
publicfloatm_PitchDamping
CopyC# JavaScript
Cinemachine
CinemachineTransposerm_RollDampingField
Howaggressivelythecameratriestotrackthetargetrotation'sZangle.Smallnumbersaremoreresponsive.Largernumbersgiveamoreheavyslowlyrespondingcamera.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[RangeAttribute(0f,20f)]
[TooltipAttribute("Howaggressivelythecameratriestotrackthetargetrotation'sZangle.Smallnumbersaremoreresponsive.Largernumbersgiveamoreheavyslowlyrespondingcamera.")]
publicfloatm_RollDamping
CopyC# JavaScript
Cinemachine
CinemachineTransposerm_XDampingField
HowaggressivelythecameratriestomaintaintheoffsetintheX-axis.Smallnumbersaremoreresponsive,rapidlytranslatingthecameratokeepthetarget'sx-axisoffset.Largernumbersgiveamoreheavyslowlyrespondingcamera.Usingdifferentsettingsperaxiscanyieldawiderangeofcamerabehaviors
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[RangeAttribute(0f,20f)]
[TooltipAttribute("HowaggressivelythecameratriestomaintaintheoffsetintheX-axis.Smallnumbersaremoreresponsive,rapidlytranslatingthecameratokeepthetarget'sx-axisoffset.Largernumbersgiveamoreheavyslowlyrespondingcamera.Usingdifferentsettingsperaxiscanyieldawiderangeofcamerabehaviors.")]
publicfloatm_XDamping
CopyC# JavaScript
Cinemachine
CinemachineTransposerm_YawDampingField
Howaggressivelythecameratriestotrackthetargetrotation'sYangle.Smallnumbersaremoreresponsive.Largernumbersgiveamoreheavyslowlyrespondingcamera.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[RangeAttribute(0f,20f)]
[TooltipAttribute("Howaggressivelythecameratriestotrackthetargetrotation'sYangle.Smallnumbersaremoreresponsive.Largernumbersgiveamoreheavyslowlyrespondingcamera.")]
publicfloatm_YawDamping
CopyC# JavaScript
Cinemachine
CinemachineTransposerm_YDampingField
HowaggressivelythecameratriestomaintaintheoffsetintheY-axis.Smallnumbersaremoreresponsive,rapidlytranslatingthecameratokeepthetarget'sy-axisoffset.Largernumbersgiveamoreheavyslowlyrespondingcamera.Usingdifferentsettingsperaxiscanyieldawiderangeofcamerabehaviors
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[RangeAttribute(0f,20f)]
[TooltipAttribute("HowaggressivelythecameratriestomaintaintheoffsetintheY-axis.Smallnumbersaremoreresponsive,rapidlytranslatingthecameratokeepthetarget'sy-axisoffset.Largernumbersgiveamoreheavyslowlyrespondingcamera.Usingdifferentsettingsperaxiscanyieldawiderangeofcamerabehaviors.")]
publicfloatm_YDamping
CopyC# JavaScript
Cinemachine
CinemachineTransposerm_ZDampingField
HowaggressivelythecameratriestomaintaintheoffsetintheZ-axis.Smallnumbersaremoreresponsive,rapidlytranslatingthecameratokeepthetarget'sz-axisoffset.Largernumbersgiveamoreheavyslowlyrespondingcamera.Usingdifferentsettingsperaxiscanyieldawiderangeofcamerabehaviors
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceCinemachineTransposerClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[RangeAttribute(0f,20f)]
[TooltipAttribute("HowaggressivelythecameratriestomaintaintheoffsetintheZ-axis.Smallnumbersaremoreresponsive,rapidlytranslatingthecameratokeepthetarget'sz-axisoffset.Largernumbersgiveamoreheavyslowlyrespondingcamera.Usingdifferentsettingsperaxiscanyieldawiderangeofcamerabehaviors.")]
publicfloatm_ZDamping
CopyC# JavaScript
Cinemachine
CinemachineTransposerBindingModeEnumeration
Thecoordinatespacetousewheninterpretingtheoffsetfromthetarget
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Members Membername Value Description
LockToTargetOnAssign 0 CamerawillbeboundtotheFollowtargetusingaframeofreferenceconsistingofthetarget'slocalframeatthemomentwhenthe
[DocumentationSortingAttribute(5.01f,DocumentationSortingAttribute
publicenumBindingMode
CopyC# JavaScript
virtualcamerawasenabled,orwhenthetargetwasassigned.
LockToTargetWithWorldUp 1 CamerawillbeboundtotheFollowtargetusingaframeofreferenceconsistingofthetarget'slocalframe,withthetiltandrollzeroedout.
LockToTargetNoRoll 2 CamerawillbeboundtotheFollowtargetusingaframeofreferenceconsistingofthetarget'slocalframe,withtherollzeroedout.
LockToTarget 3 CamerawillbeboundtotheFollowtargetusingthetarget's
localframe.
WorldSpace 4 CamerawillbeboundtotheFollowtargetusingaworldspaceoffset.
SimpleFollowWithWorldUp 5 Offsetswillbecalculatedrelativetothetarget,usingCamera-localaxes
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineVirtualCameraClass
ThisbehaviourisintendedtobeattachedtoanemptyTransformGameObject,anditrepresentsaVirtualCamerawithintheUnityscene.TheVirtualCamerawillanimateitsTransformaccordingtotherulescontainedinitsCinemachineComponentpipeline(Aim,Body,andNoise).WhenthevirtualcameraisLive,theUnitycamerawillassumethepositionandorientationofthevirtualcamera.Avirtualcameraisnotacamera.Instead,itcanbethoughtofasacameracontroller,notunlikeacameraman.ItcandrivetheUnityCameraandcontrolitsposition,orientation,lenssettings,andPostProcessingeffects.EachVirtualCameraownsitsownCinemachineComponentPipeline,throughwhichyouprovidetheinstructionsfordynamicallytrackingspecificgameobjects.Avirtualcameraisverylightweight,anddoesnorenderingofitsown.ItmerelytracksinterestingGameObjects,andpositionsitselfaccordingly.Atypicalgamecanhavedozensofvirtualcameras,eachsetuptofollowaparticularcharacterorcaptureaparticularevent.AVirtualCameracanbeinanyofthreestates:***Live**:ThevirtualcameraisactivelycontrollingtheUnityCamera.Thevirtualcameraistrackingitstargetsandbeingupdatedeveryframe.***Standby**:Thevirtualcameraistrackingitstargetsandbeingupdatedeveryframe,butnoUnityCameraisactivelybeingcontrolledbyit.ThisisthestateofavirtualcamerathatisenabledinthescenebutperhapsatalowerprioritythantheLivevirtualcamera.***Disabled**:Thevirtualcameraispresentbutdisabledinthescene.Itisnotactivelytrackingitstargetsandsoconsumesnoprocessingpower.However,thevirtualcameracanbemadelivefromtheTimeline.TheUnityCameracanbedrivenbyanyvirtualcamerainthescene.Thegamelogiccanchoosethevirtualcameratomakelivebymanipulatingthevirtualcameras'enabledflagsandtheirpriorities,basedongamelogic.Inordertobedrivenbyavirtualcamera,theUnityCameramusthaveaCinemachineBrainbehaviour,whichwillselectthemosteligiblevirtualcamerabasedonitspriorityoronothercriteria,andwillmanageblending.
InheritanceHierarchySystemObjectObjectComponentBehaviourMonoBehaviourCinemachineCinemachineVirtualCameraBaseCinemachineCinemachineVirtualCamera
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheCinemachineVirtualCameratypeexposesthefollowingmembers.
Constructors Name Description
CinemachineVirtualCamera
Top
Properties Name Description
[DocumentationSortingAttribute(1f,DocumentationSortingAttribute
[ExecuteInEditMode]
[DisallowMultipleComponent]
[AddComponentMenu("Cinemachine/CinemachineVirtualCamera")]
publicclassCinemachineVirtualCamera:CinemachineVirtualCameraBase
CopyC# JavaScript
Description Getsabriefdebugdescriptionofthisvirtualcamera,forusewhendisplayiongdebuginfo(InheritedfromCinemachineVirtualCameraBase
Follow GettheFollowtargetfortheBodycomponentintheCinemachinePipeline.Ifthisvcamisapartofameta-cameracollection,thentheowner'stargetusedifthelocaltargetisnull.(OverridesCinemachineVirtualCameraBase
LiveChildOrSelf Justreturnsself.(InheritedfromCinemachineVirtualCameraBase
LookAt GettheLookAttargetfortheAimcomponentintheCinemachinePipeline.Ifthisvcamisapartofameta-cameracollection,thentheowner'stargetusedifthelocaltargetisnull.(OverridesCinemachineVirtualCameraBase
Name GetthenameoftheVirtualCamera.BaseimplementationreturnstheownerGameObject'sname.(InheritedfromCinemachineVirtualCameraBase
ParentCamera Supportformeta-virtual-cameras.thesituationwhereavirtualcameraisinfactthepublicfaceofaprivatearmyofvirtualcameras,whichitmanagesonitsown.ThismethodgetstheVirtualCameraowner,ifany.PrivatearmiesareimplementedasTransform
childrenoftheparentvcam.(InheritedfromCinemachineVirtualCameraBase
PreviousStateIsValid SetthistoforcethenextupdatetoignoredeltaTimeandresetitself(InheritedfromCinemachineVirtualCameraBase
Priority GetthePriorityofthevirtualcamera.ThisdeterminesitsplacementCinemachineCore'squeueofeligibleshots.(InheritedfromCinemachineVirtualCameraBase
State TheCameraStateobjectholdsalloftheinformationnecessarytopositiontheUnitycamera.Itistheoutputofthisclass.(OverridesCinemachineVirtualCameraBase
UserIsDragging APIfortheeditor,tomakethedraggingofpositionhandlesbehavebetter.
ValidatingStreamVersion Versionthatwaslaststreamed,forupgradinglegacy(InheritedfromCinemachineVirtualCameraBase
VirtualCameraGameObject TheGameObjectowneroftheVirtualCamerabehaviour.(InheritedfromCinemachineVirtualCameraBase
Top
Methods
Name Description
AddCinemachineComponentT Addacomponenttothecinemachinepipeline.
AddPostPipelineStageHook Adelegatetohookintothestatecalculationpipeline.becalledaftereachpipelinestage,toallowotherstohookintothepipeline.(Inheritedfrom
DestroyCinemachineComponentT Removeacomponentfromthecinemachinepipeline.
GetCinemachineComponent(CinemachineCoreStage) Getthecomponentsetforaspecificstage.
GetCinemachineComponentT Getanexistingcomponentofaspecifictypefromthecinemachinepipeline.
GetComponentOwner GetthehiddenCinemachinePipelinechildobject.
GetComponentPipeline Getthecomponentpipelineownedbythehiddenchildpiplinecontainer.GetCinemachineComponentmethod.
InvalidateComponentPipeline EditorAPI:Callthiswhenchangingthepipelinefromtheeditor.
InvokePostPipelineStageCallback InvokesthePostPipelineStageDelegateforthiscamera,andupthehierarchyforall(Inheritedfrom
IsLiveChild Checkwhetherthevcamalivechildofthiscamera.classimplementationalwaysreturnsfalse.(Inheritedfrom
MoveToTopOfPrioritySubqueue Whenmultiplevirtualcamerashavethehighestpriority,thereissometimestheneedtopushonetothetop,makingitthecurrentLivecameraifqueuewithitspeers.vcamisenabled:themostrecentonegoestothetopoftheprioritysubqueue.ofitsprioritypeers.
thenthisvcamwillbecomeLive.(Inheritedfrom
OnDestroy CallstheDestroyPipelineDelegatefordestroyingthehiddenchildobject,tosupportundo.(Overrides
OnDisable Baseclassimplementationmakessurethepriorityqueueremainsup-to-date.(Inheritedfrom
OnEnable Makesurethatthepipelinecacheisup-to-date.(Overrides
OnPositionDragged APIfortheeditor,toprocessapositiondragfromtheuser.
OnTransformParentChanged Baseclassimplementationmakessurethepriorityqueueremainsup-to-date.(Inheritedfrom
OnTransitionFromCamera Notificationthatthisvirtualcameraisgoinglive.implementationmustbecalledbyanyoverriddenmethod.(Inheritedfrom
OnValidate Enforceboundsforfields,whenchangedininspector.(Overrides
PreUpdateChildCameras Thisiscalledpriortotheupdatingofthevcam'schildcameras,thechildrenareupdatingonFixedUpdate,thenthiswillnotnecessarilybecalledbecalledonLateUpdateinstead.doesnothing.(Inheritedfrom
RemovePostPipelineStageHook RemoveaPipelinestagehookcallback.(Inheritedfrom
ResolveFollow Returnsthisvcam'sFollowtarget,orifthatisnull,willretruntheparentvcam'sFollowtarget.
(Inheritedfrom
ResolveLookAt Returnsthisvcam'sLookAttarget,orifthatisnull,willretruntheparentvcam'sLookAttarget.(Inheritedfrom
Start Baseclassimplementationdoesnothing.(Inheritedfrom
Update Baseclassimplementationmakessurethepriorityqueueremainsup-to-date.(Inheritedfrom
UpdateCameraState CalledbyCinemachineCoreatLateUpdatetimecanpositionitselfandtrackitstargets.itspipelineandgenerateaCameraStateforthisframe.(OverridesCinemachineVirtualCameraBaseSingle)
Top
Fields Name Description
CinemachineGUIDebuggerCallback Thisisdeprecated.Itisheretosupportthesoon-to-be-removedCinemachineDebuggerintheEditor.(InheritedfromCinemachineVirtualCameraBase
CreatePipelineOverride Overridecomponentpipelinecreation.ThisneedstobedonebytheeditortosupportUndo.TheoverridemustdoexactlythesamethingastheCreatePipelinemethodinthisclass.
DestroyPipelineOverride Overridecomponentpipelinedestruction.ThisneedstobedonebytheeditortosupportUndo.
m_ExcludedPropertiesInInspector Inspectorcontrol-UseforhidingsectionsoftheInspectorUI.(InheritedfromCinemachineVirtualCameraBase
m_Follow Theobjectthatthecamerawantstomovewith(theBodytarget).TheBodycomponentoftheCinemachineComponentpipelinewillrefertothistargetandpositionthevcaminaccordancewithrulesandsettingsthatareprovidedtoit.Ifthisisnull,thenthevcam'sTransformpositionwillbeused.
m_Lens SpecifiestheLensSettingsofthisVirtualCamera.ThesesettingswillbetransferredtotheUnitycamerawhenthevcamislive.
m_LockStageInInspector Inspectorcontrol-UseforenablingsectionsoftheInspectorUI.(InheritedfromCinemachineVirtualCameraBase
m_LookAt Theobjectthatthecamerawantstolookat(theAimtarget).AimcomponentoftheCinemachineComponentpipelinewillrefertothistargetandorientthevcaminaccordancewithrulesandsettingsthatareprovidedto
it.Ifthisisnull,thenthevcam'sTransformorientationwillbeused.
m_Priority Theprioritywilldeterminewhichcamerabecomesactivebasedonthestateofothercamerasandthiscamera.Highernumbershavegreaterpriority.(InheritedfromCinemachineVirtualCameraBase
OnPostPipelineStage Adelegatetohookintothestatecalculationpipeline.Implementaionmustbesuretocallthisaftereachpipelinestage,toallowotherservicestohookintothepipeline.SeeCinemachineCore.Stage.(InheritedfromCinemachineVirtualCameraBase
PipelineName ThisisthenameofthehiddenGameObjectthatwillbecreatedasachildobjectofthevirtualcamera.ThishiddengameobjectactsasacontainerforthepolymorphicCinemachineComponentpipeline.TheInspectorUIfortheVirtualCameraprovidesaccesstothispipleline,asdotheCinemachineComponent-familyofpublicmethodsinthisclass.lifecycleofthepipelineGameObjectismanagedautomatically.
Top
SeeAlsoReferenceCinemachineNamespaceCinemachineCinemachineVirtualCameraBaseCinemachineLensSettingsCinemachineCinemachineComposerCinemachineCinemachineTransposerCinemachineCinemachineBasicMultiChannelPerlin
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineVirtualCameraConstructor
[Missing<summary>documentationfor"M:Cinemachine.CinemachineVirtualCamera.#ctor"]
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineVirtualCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicCinemachineVirtualCamera()
CopyC# JavaScript
Cinemachine
CinemachineVirtualCameraProperties
TheCinemachineVirtualCameratypeexposesthefollowingmembers.
Properties Name Description
Description Getsabriefdebugdescriptionofthisvirtualcamera,forusewhendisplayiongdebuginfo(InheritedfromCinemachineVirtualCameraBase
Follow GettheFollowtargetfortheBodycomponentintheCinemachinePipeline.Ifthisvcamisapartofameta-cameracollection,thentheowner'stargetusedifthelocaltargetisnull.(OverridesCinemachineVirtualCameraBase
LiveChildOrSelf Justreturnsself.(InheritedfromCinemachineVirtualCameraBase
LookAt GettheLookAttargetfortheAimcomponentintheCinemachinePipeline.Ifthisvcamisapartofameta-cameracollection,thentheowner'stargetusedifthelocaltargetisnull.(OverridesCinemachineVirtualCameraBase
Name GetthenameoftheVirtualCamera.BaseimplementationreturnstheownerGameObject'sname.(InheritedfromCinemachineVirtualCameraBase
ParentCamera Supportformeta-virtual-cameras.thesituationwhereavirtualcameraisinfactthepublicfaceofaprivatearmyofvirtualcameras,whichitmanagesonitsown.ThismethodgetstheVirtualCameraowner,ifany.PrivatearmiesareimplementedasTransformchildrenoftheparentvcam.(InheritedfromCinemachineVirtualCameraBase
PreviousStateIsValid SetthistoforcethenextupdatetoignoredeltaTimeandresetitself(InheritedfromCinemachineVirtualCameraBase
Priority GetthePriorityofthevirtualcamera.ThisdeterminesitsplacementCinemachineCore'squeueofeligibleshots.(InheritedfromCinemachineVirtualCameraBase
State TheCameraStateobjectholdsalloftheinformationnecessarytopositiontheUnitycamera.Itistheoutputofthisclass.(OverridesCinemachineVirtualCameraBase
UserIsDragging APIfortheeditor,tomakethedraggingofpositionhandlesbehavebetter.
ValidatingStreamVersion Versionthatwaslaststreamed,forupgradinglegacy(InheritedfromCinemachineVirtualCameraBase
VirtualCameraGameObject TheGameObjectowneroftheVirtualCamerabehaviour.(InheritedfromCinemachineVirtualCameraBase
Top
SeeAlsoReferenceCinemachineVirtualCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineVirtualCameraFollowProperty
GettheFollowtargetfortheBodycomponentintheCinemachinePipeline.Ifthisvcamisapartofameta-cameracollection,thentheowner'stargetwillbeusedifthelocaltargetisnull.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:TransformImplementsICinemachineCameraFollow
SeeAlsoReferenceCinemachineVirtualCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverrideTransformFollow{get;set;}
CopyC# JavaScript
Cinemachine
CinemachineVirtualCameraLookAtProperty
GettheLookAttargetfortheAimcomponentintheCinemachinePipeline.Ifthisvcamisapartofameta-cameracollection,thentheowner'stargetwillbeusedifthelocaltargetisnull.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:TransformImplementsICinemachineCameraLookAt
SeeAlsoReferenceCinemachineVirtualCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverrideTransformLookAt{get;set;}
CopyC# JavaScript
Cinemachine
CinemachineVirtualCameraStateProperty
TheCameraStateobjectholdsalloftheinformationnecessarytopositiontheUnitycamera.Itistheoutputofthisclass.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:CameraStateImplementsICinemachineCameraState
SeeAlsoReferenceCinemachineVirtualCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicoverrideCameraStateState{get;}
CopyC# JavaScript
Cinemachine
CinemachineVirtualCameraUserIsDraggingProperty
APIfortheeditor,tomakethedraggingofpositionhandlesbehavebetter.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Boolean
SeeAlsoReferenceCinemachineVirtualCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicboolUserIsDragging{get;set;}
CopyC# JavaScript
Cinemachine
CinemachineVirtualCameraMethods
TheCinemachineVirtualCameratypeexposesthefollowingmembers.
Methods Name Description
AddCinemachineComponentT Addacomponenttothecinemachinepipeline.
AddPostPipelineStageHook Adelegatetohookintothestatecalculationpipeline.becalledaftereachpipelinestage,toallowotherstohookintothepipeline.(Inheritedfrom
DestroyCinemachineComponentT Removeacomponentfromthecinemachinepipeline.
GetCinemachineComponent(CinemachineCoreStage) Getthecomponentsetforaspecificstage.
GetCinemachineComponentT Getanexistingcomponentofaspecifictypefromthecinemachinepipeline.
GetComponentOwner GetthehiddenCinemachinePipelinechildobject.
GetComponentPipeline Getthecomponentpipelineownedbythehiddenchildpiplinecontainer.GetCinemachineComponentmethod.
InvalidateComponentPipeline EditorAPI:Callthiswhenchangingthepipelinefromtheeditor.
InvokePostPipelineStageCallback InvokesthePostPipelineStageDelegateforthiscamera,andupthehierarchyforall(Inheritedfrom
IsLiveChild Checkwhetherthevcamalivechildofthiscamera.classimplementationalwaysreturnsfalse.(Inheritedfrom
MoveToTopOfPrioritySubqueue Whenmultiplevirtualcamerashavethehighestpriority,thereissometimestheneedtopushonetothetop,makingitthecurrentLivecameraifqueuewithitspeers.vcamisenabled:themostrecentonegoestothetopoftheprioritysubqueue.ofitsprioritypeers.thenthisvcamwillbecomeLive.(Inheritedfrom
OnDestroy CallstheDestroyPipelineDelegatefordestroyingthehiddenchildobject,tosupportundo.(Overrides
OnDisable Baseclassimplementationmakessurethepriorityqueueremainsup-to-date.(Inheritedfrom
OnEnable Makesurethatthepipelinecacheisup-to-date.(Overrides
OnPositionDragged APIfortheeditor,toprocessapositiondragfromtheuser.
OnTransformParentChanged Baseclassimplementationmakessurethepriorityqueueremainsup-to-date.(Inheritedfrom
OnTransitionFromCamera Notificationthatthisvirtualcameraisgoinglive.implementationmustbecalledbyanyoverriddenmethod.(Inheritedfrom
OnValidate Enforceboundsforfields,whenchangedininspector.(Overrides
PreUpdateChildCameras Thisiscalledpriortotheupdatingofthevcam'schild
cameras,thechildrenareupdatingonFixedUpdate,thenthiswillnotnecessarilybecalledbecalledonLateUpdateinstead.doesnothing.(Inheritedfrom
RemovePostPipelineStageHook RemoveaPipelinestagehookcallback.(Inheritedfrom
ResolveFollow Returnsthisvcam'sFollowtarget,orifthatisnull,willretruntheparentvcam'sFollowtarget.(Inheritedfrom
ResolveLookAt Returnsthisvcam'sLookAttarget,orifthatisnull,willretruntheparentvcam'sLookAttarget.(Inheritedfrom
Start Baseclassimplementationdoesnothing.(Inheritedfrom
Update Baseclassimplementationmakessurethepriorityqueueremainsup-to-date.(Inheritedfrom
UpdateCameraState CalledbyCinemachineCoreatLateUpdatetimecanpositionitselfandtrackitstargets.itspipelineandgenerateaCameraStateforthisframe.(OverridesCinemachineVirtualCameraBaseSingle)
Top
SeeAlsoReferenceCinemachineVirtualCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineVirtualCameraAddCinemachineComponentMethod
Addacomponenttothecinemachinepipeline.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TypeParameters
T
ReturnValueType:T[Missing<returns>documentationfor"M:Cinemachine.CinemachineVirtualCamera.AddCinemachineComponent``1"]
SeeAlsoReferenceCinemachineVirtualCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicTAddCinemachineComponent<T>()
whereT:CinemachineComponentBase
CopyC# JavaScript
Cinemachine
CinemachineVirtualCameraDestroyCinemachineComponentMethod
Removeacomponentfromthecinemachinepipeline.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TypeParameters
T
SeeAlsoReferenceCinemachineVirtualCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicvoidDestroyCinemachineComponent<T>()
whereT:CinemachineComponentBase
CopyC# JavaScript
Cinemachine
CinemachineVirtualCameraGetCinemachineComponentMethod
OverloadList Name Description
GetCinemachineComponentT Getanexistingcomponentofaspecifictypefromthecinemachinepipeline.
GetCinemachineComponent(CinemachineCoreStage) Getthecomponentsetforaspecificstage.
Top
SeeAlsoReferenceCinemachineVirtualCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineVirtualCameraGetCinemachineComponentMethod
Getanexistingcomponentofaspecifictypefromthecinemachinepipeline.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TypeParameters
T
ReturnValueType:T[Missing<returns>documentationfor"M:Cinemachine.CinemachineVirtualCamera.GetCinemachineComponent``1"]
SeeAlsoReferenceCinemachineVirtualCameraClassGetCinemachineComponentOverloadCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicTGetCinemachineComponent<T>()
whereT:CinemachineComponentBase
CopyC# JavaScript
Cinemachine
CinemachineVirtualCameraGetCinemachineComponentMethod(CinemachineCoreStage)
Getthecomponentsetforaspecificstage.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
stageType:CinemachineCinemachineCoreStageThestageforwhichwewantthecomponent
ReturnValueType:CinemachineComponentBaseTheCinemachinecomponentforthatstage,ornullifnotdefined
SeeAlsoReferenceCinemachineVirtualCameraClassGetCinemachineComponentOverloadCinemachineNamespace
publicCinemachineComponentBaseGetCinemachineComponent
CinemachineCoreStagestage
)
CopyC# JavaScript
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineVirtualCameraGetComponentOwnerMethod
GetthehiddenCinemachinePipelinechildobject.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
ReturnValueType:Transform[Missing<returns>documentationfor"M:Cinemachine.CinemachineVirtualCamera.GetComponentOwner"]
SeeAlsoReferenceCinemachineVirtualCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicTransformGetComponentOwner()
CopyC# JavaScript
Cinemachine
CinemachineVirtualCameraGetComponentPipelineMethod
Getthecomponentpipelineownedbythehiddenchildpiplinecontainer.Formostpurposes,itispreferabletousetheGetCinemachineComponentmethod.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
ReturnValueType:CinemachineComponentBase[Missing<returns>documentationfor"M:Cinemachine.CinemachineVirtualCamera.GetComponentPipeline"]
SeeAlsoReferenceCinemachineVirtualCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicCinemachineComponentBase[]GetComponentPipeline
CopyC# JavaScript
Cinemachine
CinemachineVirtualCameraInvalidateComponentPipelineMethod
EditorAPI:Callthiswhenchangingthepipelinefromtheeditor.Willforcearebuildofthepipelinecache.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineVirtualCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicvoidInvalidateComponentPipeline()
CopyC# JavaScript
Cinemachine
CinemachineVirtualCameraOnDestroyMethod
CallstheDestroyPipelineDelegatefordestroyingthehiddenchildobject,tosupportundo.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineVirtualCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
protectedoverridevoidOnDestroy()
CopyC# JavaScript
Cinemachine
CinemachineVirtualCameraOnEnableMethod
Makesurethatthepipelinecacheisup-to-date.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineVirtualCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
protectedoverridevoidOnEnable()
CopyC# JavaScript
Cinemachine
CinemachineVirtualCameraOnPositionDraggedMethod
APIfortheeditor,toprocessapositiondragfromtheuser.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
deltaType:Vector3[Missing<paramname="delta"/>documentationfor"M:Cinemachine.CinemachineVirtualCamera.OnPositionDragged(UnityEngine.Vector3)"]
SeeAlsoReferenceCinemachineVirtualCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicvoidOnPositionDragged(
Vector3delta
)
CopyC# JavaScript
Cinemachine
CinemachineVirtualCameraOnValidateMethod
Enforceboundsforfields,whenchangedininspector.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineVirtualCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
protectedoverridevoidOnValidate()
CopyC# JavaScript
Cinemachine
CinemachineVirtualCameraUpdateCameraStateMethod
CalledbyCinemachineCoreatLateUpdatetimesothevcamcanpositionitselfandtrackitstargets.ThisclasswillinvokeitspipelineandgenerateaCameraStateforthisframe.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
worldUpType:Vector3[Missing<paramname="worldUp"/>documentationfor"M:Cinemachine.CinemachineVirtualCamera.UpdateCameraState(UnityEngine.Vector3,System.Single)"]
deltaTimeType:SystemSingle[Missing<paramname="deltaTime"/>documentationfor"M:Cinemachine.CinemachineVirtualCamera.UpdateCameraState(UnityEngine.Vector3,System.Single)"]
ImplementsICinemachineCameraUpdateCameraState(Vector3,Single)
publicoverridevoidUpdateCameraState(
Vector3worldUp,
floatdeltaTime
)
CopyC# JavaScript
SeeAlsoReferenceCinemachineVirtualCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineVirtualCameraFields
TheCinemachineVirtualCameratypeexposesthefollowingmembers.
Fields Name Description
CinemachineGUIDebuggerCallback Thisisdeprecated.Itisheretosupportthesoon-to-be-removedCinemachineDebuggerintheEditor.(InheritedfromCinemachineVirtualCameraBase
CreatePipelineOverride Overridecomponentpipelinecreation.ThisneedstobedonebytheeditortosupportUndo.TheoverridemustdoexactlythesamethingastheCreatePipelinemethodinthisclass.
DestroyPipelineOverride Overridecomponentpipelinedestruction.ThisneedstobedonebytheeditortosupportUndo.
m_ExcludedPropertiesInInspector Inspectorcontrol-UseforhidingsectionsoftheInspectorUI.(InheritedfromCinemachineVirtualCameraBase
m_Follow Theobjectthatthecamerawantstomovewith(theBodytarget).
TheBodycomponentoftheCinemachineComponentpipelinewillrefertothistargetandpositionthevcaminaccordancewithrulesandsettingsthatareprovidedtoit.Ifthisisnull,thenthevcam'sTransformpositionwillbeused.
m_Lens SpecifiestheLensSettingsofthisVirtualCamera.ThesesettingswillbetransferredtotheUnitycamerawhenthevcamislive.
m_LockStageInInspector Inspectorcontrol-UseforenablingsectionsoftheInspectorUI.(InheritedfromCinemachineVirtualCameraBase
m_LookAt Theobjectthatthecamerawantstolookat(theAimtarget).AimcomponentoftheCinemachineComponentpipelinewillrefertothistargetandorientthevcaminaccordancewithrulesandsettingsthatareprovidedtoit.Ifthisisnull,thenthevcam'sTransformorientationwillbeused.
m_Priority Theprioritywilldeterminewhichcamerabecomesactivebasedonthestateofothercamerasandthiscamera.Highernumbershavegreaterpriority.(InheritedfromCinemachineVirtualCameraBase
OnPostPipelineStage Adelegatetohookintothestatecalculationpipeline.Implementaionmustbesuretocallthisaftereachpipelinestage,toallowotherservicestohookintothepipeline.SeeCinemachineCore.Stage.(InheritedfromCinemachineVirtualCameraBase
PipelineName ThisisthenameofthehiddenGameObjectthatwillbecreatedasachildobjectofthevirtualcamera.ThishiddengameobjectactsasacontainerforthepolymorphicCinemachineComponentpipeline.TheInspectorUIfortheVirtualCameraprovidesaccesstothispipleline,asdotheCinemachineComponent-familyofpublicmethodsinthisclass.lifecycleofthepipelineGameObjectismanagedautomatically.
Top
SeeAlsoReferenceCinemachineVirtualCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineVirtualCameraCreatePipelineOverrideField
Overridecomponentpipelinecreation.ThisneedstobedonebytheeditortosupportUndo.TheoverridemustdoexactlythesamethingastheCreatePipelinemethodinthisclass.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachineVirtualCameraCreatePipelineDelegate
SeeAlsoReferenceCinemachineVirtualCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicstaticCinemachineVirtualCameraCreatePipelineDelegate
CopyC# JavaScript
Cinemachine
CinemachineVirtualCameraDestroyPipelineOverrideField
Overridecomponentpipelinedestruction.ThisneedstobedonebytheeditortosupportUndo.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachineVirtualCameraDestroyPipelineDelegate
SeeAlsoReferenceCinemachineVirtualCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicstaticCinemachineVirtualCameraDestroyPipelineDelegate
CopyC# JavaScript
Cinemachine
CinemachineVirtualCameram_FollowField
Theobjectthatthecamerawantstomovewith(theBodytarget).TheBodycomponentoftheCinemachineComponentpipelinewillrefertothistargetandpositionthevcaminaccordancewithrulesandsettingsthatareprovidedtoit.Ifthisisnull,thenthevcam'sTransformpositionwillbeused.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Transform
SeeAlsoReferenceCinemachineVirtualCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Theobjectthatthecamerawantstomovewith(theBodytarget).Ifthisisnull,thenthevcam'sTransformpositionwilldefinethecamera'sposition.")]
[NoSaveDuringPlayAttribute]
publicTransformm_Follow
CopyC# JavaScript
Cinemachine
CinemachineVirtualCameram_LensField
SpecifiestheLensSettingsofthisVirtualCamera.ThesesettingswillbetransferredtotheUnitycamerawhenthevcamislive.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:LensSettings
SeeAlsoReferenceCinemachineVirtualCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[FormerlySerializedAsAttribute("m_LensAttributes")]
[TooltipAttribute("SpecifiesthelenspropertiesofthisVirtualCamera.ThisgenerallymirrorstheUnityCamera'slenssettings,andwillbeusedtodrivetheUnitycamerawhenthevcamisactive.")]
[LensSettingsPropertyAttribute]
publicLensSettingsm_Lens
CopyC# JavaScript
Cinemachine
CinemachineVirtualCameram_LookAtField
Theobjectthatthecamerawantstolookat(theAimtarget).TheAimcomponentoftheCinemachineComponentpipelinewillrefertothistargetandorientthevcaminaccordancewithrulesandsettingsthatareprovidedtoit.Ifthisisnull,thenthevcam'sTransformorientationwillbeused.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Transform
SeeAlsoReferenceCinemachineVirtualCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Theobjectthatthecamerawantstolookat(theAimtarget).Ifthisisnull,thenthevcam'sTransformorientationwilldefinethecamera'sorientation.")]
[NoSaveDuringPlayAttribute]
publicTransformm_LookAt
CopyC# JavaScript
Cinemachine
CinemachineVirtualCameraPipelineNameField
ThisisthenameofthehiddenGameObjectthatwillbecreatedasachildobjectofthevirtualcamera.ThishiddengameobjectactsasacontainerforthepolymorphicCinemachineComponentpipeline.TheInspectorUIfortheVirtualCameraprovidesaccesstothispipleline,asdotheCinemachineComponent-familyofpublicmethodsinthisclass.ThelifecycleofthepipelineGameObjectismanagedautomatically.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:String
SeeAlsoReferenceCinemachineVirtualCameraClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicconststringPipelineName="cm"
CopyC# JavaScript
Cinemachine
CinemachineVirtualCameraCreatePipelineDelegateDelegate
Overridecomponentpipelinecreation.ThisneedstobedonebytheeditortosupportUndo.TheoverridemustdoexactlythesamethingastheCreatePipelinemethodintheCinemachineVirtualCameraclass.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
vcamType:CinemachineCinemachineVirtualCamera
nameType:SystemString
copyFromType:CinemachineCinemachineComponentBase
ReturnValueType:Transform
SeeAlso
publicdelegateTransformCreatePipelineDelegate(
CinemachineVirtualCameravcam,
stringname,
CinemachineComponentBase[]copyFrom
)
CopyC# JavaScript
ReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineVirtualCameraDestroyPipelineDelegateDelegate
Overridecomponentpipelinedestruction.ThisneedstobedonebytheeditortosupportUndo.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
pipelineType:GameObject
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicdelegatevoidDestroyPipelineDelegate(
GameObjectpipeline
)
CopyC# JavaScript
Cinemachine
CinemachineVirtualCameraBaseClass
BaseclassforaMonobehaviourthatrepresentsaVirtualCamerawithintheUnityscene.ThisisintendedtobeattachedtoanemptyTransformGameObject.InheritedclassescanbeeitherstandalonevirtualcamerassuchasCinemachineVirtualCamera,ormeta-camerassuchasCinemachineClearShotorCinemachineFreeLook.ACinemachineVirtualCameraBaseexposesaPriorityproperty.Whenthebehaviourisenabledinthegame,theVirtualCameraisautomaticallyplacedinaqueuemaintainedbythestaticCinemachineCoresingleton.Thequeueissortedbypriority.WhenaUnitycameraisequippedwithaCinemachineBrainbehaviour,thebrainwillchoosethecameraattheheadofthequeue.IfyouhavemultipleUnitycameraswithCinemachineBrainbehaviours(sayinasplit-screencontext),thenyoucanfilterthequeuebysettingthecullingflagsonthevirtualcameras.ThecullingmaskoftheUnityCamerawillthenactasafilterforthebrain.Apartfromthis,thereisnothingthatpreventsavirtualcamerafromcontrollingmultipleUnitycamerassimultaneously.
InheritanceHierarchySystemObjectObjectComponentBehaviourMonoBehaviourCinemachineCinemachineVirtualCameraBaseMore...
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
SyntaxCopy
TheCinemachineVirtualCameraBasetypeexposesthefollowingmembers.
Constructors Name Description
CinemachineVirtualCameraBase
Top
Properties Name Description
Description Getsabriefdebugdescriptionofthisvirtualcamera,forusewhendisplayiongdebuginfo
Follow GettheFollowtargetfortheBodycomponentintheCinemachinePipeline.
LiveChildOrSelf Justreturnsself.
LookAt GettheLookAttargetfortheAimcomponentintheCinemachinePipeline.
[SaveDuringPlayAttribute]
publicabstractclassCinemachineVirtualCameraBase
ICinemachineCamera
CopyC# JavaScript
Name GetthenameoftheVirtualCamera.BaseimplementationreturnstheownerGameObject'sname.
ParentCamera Supportformeta-virtual-cameras.Thisisthesituationwhereavirtualcameraisinfactthepublicfaceofaprivatearmyofvirtualcameras,whichitmanagesonitsown.ThismethodgetstheVirtualCameraowner,ifany.PrivatearmiesareimplementedasTransformchildrenoftheparentvcam.
PreviousStateIsValid SetthistoforcethenextupdatetoignoredeltaTimeandresetitself
Priority GetthePriorityofthevirtualcamera.ThisdeterminesitsplacementintheCinemachineCore'squeueofeligibleshots.
State TheCameraStateobjectholdsalloftheinformationnecessarytoposition
theUnitycamera.Itistheoutputofthisclass.
ValidatingStreamVersion Versionthatwaslaststreamed,forupgradinglegacy
VirtualCameraGameObject TheGameObjectowneroftheVirtualCamerabehaviour.
Top
Methods Name Description
AddPostPipelineStageHook Adelegatetohookintothestatecalculationpipeline.Thiswillbecalledaftereachpipelinestage,toallowotherstohookintothepipeline.SeeCinemachineCore.Stage.
InvokePostPipelineStageCallback InvokesthePostPipelineStageDelegateforthiscamera,andupthehierarchyforallparentcameras(ifany).
IsLiveChild Checkwhetherthevcamalivechildofthiscamera.Thisbaseclassimplementationalwaysreturnsfalse.
MoveToTopOfPrioritySubqueue Whenmultiplevirtual
camerashavethehighestpriority,thereissometimestheneedtopushonetothetop,makingitthecurrentLivecameraifitsharesthehighestpriorityinthequeuewithitspeers.Thishappensautomaticallywhenanewvcamisenabled:themostrecentonegoestothetopoftheprioritysubqueue.Usethismethodtopushavcamtothetopofitsprioritypeers.Ifitanditspeerssharethehighestpriority,thenthisvcamwillbecomeLive.
OnDestroy Baseclassimplementationremovesthevirtualcamerafromthepriorityqueue.
OnDisable Baseclassimplementationmakessurethepriorityqueueremainsup-to-date.
OnEnable Baseclassimplementationaddsthevirtualcamerafromthepriorityqueue.
OnTransformParentChanged Baseclassimplementationmakessurethepriorityqueueremainsup-to-date.
OnTransitionFromCamera Notificationthatthisvirtualcameraisgoinglive.Baseclassimplementationmustbecalledbyanyoverriddenmethod.
OnValidate Enforceboundsforfields,whenchangedininspector.Callbaseclassimplementationatthebeginningofoverriddenmethod.Afterbasemethodiscalled,ValidatingStreamVersionwillbevalid.
PreUpdateChildCameras Thisiscalledpriortotheupdatingofthevcam'schildcameras,inordertoallowtheparenttoprepareitschildren.IfthechildrenareupdatingonFixedUpdate,thenthiswillnotnecessarilybecalledpriortoeveryFixedUpdate,butitmightbecalledonLateUpdateinstead.Baseclassimplementationdoesnothing.
RemovePostPipelineStageHook RemoveaPipelinestagehookcallback.
ResolveFollow Returnsthisvcam'sFollowtarget,orifthatisnull,willretruntheparentvcam'sFollowtarget.
ResolveLookAt Returnsthisvcam'sLookAttarget,orifthatisnull,willretruntheparentvcam'sLookAttarget.
Start Baseclassimplementationdoesnothing.
Update Baseclassimplementationmakessurethepriorityqueueremainsup-to-date.
UpdateCameraState CalledbyCinemachineCoreatdesignatedupdatetimethevcamcanpositionitselfandtrackitstargets.Donotcallthismethod.Lettheframeworkdoitattheappropriatetime
Top
Fields Name Description
CinemachineGUIDebuggerCallback Thisisdeprecated.Itisheretosupportthesoon-to-be-removedCinemachineDebuggerintheEditor.
m_ExcludedPropertiesInInspector Inspectorcontrol-UseforhidingsectionsoftheInspectorUI.
m_LockStageInInspector Inspectorcontrol-UseforenablingsectionsoftheInspectorUI.
m_Priority Theprioritywilldeterminewhichcamerabecomesactivebasedonthestateofothercamerasandthis
camera.Highernumbershavegreaterpriority.
OnPostPipelineStage Adelegatetohookintothestatecalculationpipeline.Implementaionmustbesuretocallthisaftereachpipelinestage,toallowotherservicestohookintothepipeline.SeeCinemachineCore.Stage.
Top
SeeAlsoReferenceCinemachineNamespace
InheritanceHierarchySystemObjectObjectComponentBehaviourMonoBehaviourCinemachineCinemachineVirtualCameraBaseCinemachineCinemachineBlendListCameraCinemachineCinemachineClearShotCinemachineCinemachineExternalCameraCinemachineCinemachineFreeLookCinemachineCinemachineMixingCameraCinemachineCinemachineStateDrivenCameraCinemachineCinemachineVirtualCamera
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineVirtualCameraBaseConstructor
[Missing<summary>documentationfor"M:Cinemachine.CinemachineVirtualCameraBase.#ctor"]
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineVirtualCameraBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
protectedCinemachineVirtualCameraBase()
CopyC# JavaScript
Cinemachine
CinemachineVirtualCameraBaseProperties
TheCinemachineVirtualCameraBasetypeexposesthefollowingmembers.
Properties Name Description
Description Getsabriefdebugdescriptionofthisvirtualcamera,forusewhendisplayiongdebuginfo
Follow GettheFollowtargetfortheBodycomponentintheCinemachinePipeline.
LiveChildOrSelf Justreturnsself.
LookAt GettheLookAttargetfortheAimcomponentintheCinemachinePipeline.
Name GetthenameoftheVirtualCamera.BaseimplementationreturnstheownerGameObject'sname.
ParentCamera Supportformeta-
virtual-cameras.Thisisthesituationwhereavirtualcameraisinfactthepublicfaceofaprivatearmyofvirtualcameras,whichitmanagesonitsown.ThismethodgetstheVirtualCameraowner,ifany.PrivatearmiesareimplementedasTransformchildrenoftheparentvcam.
PreviousStateIsValid SetthistoforcethenextupdatetoignoredeltaTimeandresetitself
Priority GetthePriorityofthevirtualcamera.ThisdeterminesitsplacementintheCinemachineCore'squeueofeligibleshots.
State TheCameraStateobjectholdsalloftheinformationnecessarytopositiontheUnitycamera.Itistheoutputofthisclass.
ValidatingStreamVersion Versionthatwaslaststreamed,forupgradinglegacy
VirtualCameraGameObject TheGameObjectowneroftheVirtualCamerabehaviour.
Top
SeeAlsoReferenceCinemachineVirtualCameraBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineVirtualCameraBaseDescriptionProperty
Getsabriefdebugdescriptionofthisvirtualcamera,forusewhendisplayiongdebuginfo
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:StringImplementsICinemachineCameraDescription
SeeAlsoReferenceCinemachineVirtualCameraBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicvirtualstringDescription{get;}
CopyC# JavaScript
Cinemachine
CinemachineVirtualCameraBaseFollowProperty
GettheFollowtargetfortheBodycomponentintheCinemachinePipeline.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:TransformImplementsICinemachineCameraFollow
SeeAlsoReferenceCinemachineVirtualCameraBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicabstractTransformFollow{get;set;}
CopyC# JavaScript
Cinemachine
CinemachineVirtualCameraBaseLiveChildOrSelfProperty
Justreturnsself.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:ICinemachineCameraImplementsICinemachineCameraLiveChildOrSelf
SeeAlsoReferenceCinemachineVirtualCameraBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicvirtualICinemachineCameraLiveChildOrSelf{
CopyC# JavaScript
Cinemachine
CinemachineVirtualCameraBaseLookAtProperty
GettheLookAttargetfortheAimcomponentintheCinemachinePipeline.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:TransformImplementsICinemachineCameraLookAt
SeeAlsoReferenceCinemachineVirtualCameraBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicabstractTransformLookAt{get;set;}
CopyC# JavaScript
Cinemachine
CinemachineVirtualCameraBaseNameProperty
GetthenameoftheVirtualCamera.BaseimplementationreturnstheownerGameObject'sname.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:StringImplementsICinemachineCameraName
SeeAlsoReferenceCinemachineVirtualCameraBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicstringName{get;}
CopyC# JavaScript
Cinemachine
CinemachineVirtualCameraBaseParentCameraProperty
Supportformeta-virtual-cameras.Thisisthesituationwhereavirtualcameraisinfactthepublicfaceofaprivatearmyofvirtualcameras,whichitmanagesonitsown.ThismethodgetstheVirtualCameraowner,ifany.PrivatearmiesareimplementedasTransformchildrenoftheparentvcam.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:ICinemachineCameraImplementsICinemachineCameraParentCamera
SeeAlsoReferenceCinemachineVirtualCameraBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicICinemachineCameraParentCamera{get;}
CopyC# JavaScript
Cinemachine
CinemachineVirtualCameraBasePreviousStateIsValidProperty
SetthistoforcethenextupdatetoignoredeltaTimeandresetitself
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Boolean
SeeAlsoReferenceCinemachineVirtualCameraBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicboolPreviousStateIsValid{get;set;}
CopyC# JavaScript
Cinemachine
CinemachineVirtualCameraBasePriorityProperty
GetthePriorityofthevirtualcamera.ThisdeterminesitsplacementintheCinemachineCore'squeueofeligibleshots.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Int32ImplementsICinemachineCameraPriority
SeeAlsoReferenceCinemachineVirtualCameraBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicintPriority{get;set;}
CopyC# JavaScript
Cinemachine
CinemachineVirtualCameraBaseStateProperty
TheCameraStateobjectholdsalloftheinformationnecessarytopositiontheUnitycamera.Itistheoutputofthisclass.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:CameraStateImplementsICinemachineCameraState
SeeAlsoReferenceCinemachineVirtualCameraBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicabstractCameraStateState{get;}
CopyC# JavaScript
Cinemachine
CinemachineVirtualCameraBaseValidatingStreamVersionProperty
Versionthatwaslaststreamed,forupgradinglegacy
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Int32
SeeAlsoReferenceCinemachineVirtualCameraBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicintValidatingStreamVersion{get;}
CopyC# JavaScript
Cinemachine
CinemachineVirtualCameraBaseVirtualCameraGameObjectProperty
TheGameObjectowneroftheVirtualCamerabehaviour.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:GameObjectImplementsICinemachineCameraVirtualCameraGameObject
SeeAlsoReferenceCinemachineVirtualCameraBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicGameObjectVirtualCameraGameObject{get;}
CopyC# JavaScript
Cinemachine
CinemachineVirtualCameraBaseMethods
TheCinemachineVirtualCameraBasetypeexposesthefollowingmembers.
Methods Name Description
AddPostPipelineStageHook Adelegatetohookintothestatecalculationpipeline.Thiswillbecalledaftereachpipelinestage,toallowotherstohookintothepipeline.SeeCinemachineCore.Stage.
InvokePostPipelineStageCallback InvokesthePostPipelineStageDelegateforthiscamera,andupthehierarchyforallparentcameras(ifany).
IsLiveChild Checkwhetherthevcamalivechildofthiscamera.Thisbaseclassimplementationalwaysreturnsfalse.
MoveToTopOfPrioritySubqueue Whenmultiplevirtualcamerashavethehighestpriority,thereissometimestheneedtopushonetothetop,makingitthecurrent
Livecameraifitsharesthehighestpriorityinthequeuewithitspeers.Thishappensautomaticallywhenanewvcamisenabled:themostrecentonegoestothetopoftheprioritysubqueue.Usethismethodtopushavcamtothetopofitsprioritypeers.Ifitanditspeerssharethehighestpriority,thenthisvcamwillbecomeLive.
OnDestroy Baseclassimplementationremovesthevirtualcamerafromthepriorityqueue.
OnDisable Baseclassimplementationmakessurethepriorityqueueremainsup-to-date.
OnEnable Baseclassimplementationaddsthevirtualcamerafromthepriorityqueue.
OnTransformParentChanged Baseclassimplementationmakessurethepriorityqueueremainsup-to-date.
OnTransitionFromCamera Notificationthatthisvirtualcameraisgoinglive.Baseclassimplementationmustbecalledbyanyoverriddenmethod.
OnValidate Enforceboundsforfields,whenchangedininspector.Callbaseclass
implementationatthebeginningofoverriddenmethod.Afterbasemethodiscalled,ValidatingStreamVersionwillbevalid.
PreUpdateChildCameras Thisiscalledpriortotheupdatingofthevcam'schildcameras,inordertoallowtheparenttoprepareitschildren.IfthechildrenareupdatingonFixedUpdate,thenthiswillnotnecessarilybecalledpriortoeveryFixedUpdate,butitmightbecalledonLateUpdateinstead.Baseclassimplementationdoesnothing.
RemovePostPipelineStageHook RemoveaPipelinestagehookcallback.
ResolveFollow Returnsthisvcam'sFollowtarget,orifthatisnull,willretruntheparentvcam'sFollowtarget.
ResolveLookAt Returnsthisvcam'sLookAttarget,orifthatisnull,willretruntheparentvcam'sLookAttarget.
Start Baseclassimplementationdoesnothing.
Update Baseclassimplementationmakessurethepriority
queueremainsup-to-date.
UpdateCameraState CalledbyCinemachineCoreatdesignatedupdatetimethevcamcanpositionitselfandtrackitstargets.Donotcallthismethod.Lettheframeworkdoitattheappropriatetime
Top
SeeAlsoReferenceCinemachineVirtualCameraBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineVirtualCameraBaseAddPostPipelineStageHookMethod
Adelegatetohookintothestatecalculationpipeline.Thiswillbecalledaftereachpipelinestage,toallowotherstohookintothepipeline.SeeCinemachineCore.Stage.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
dType:CinemachineCinemachineVirtualCameraBaseOnPostPipelineStageDelegateThedelegatetocall.
SeeAlsoReferenceCinemachineVirtualCameraBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicvirtualvoidAddPostPipelineStageHook(
CinemachineVirtualCameraBaseOnPostPipelineStageDelegate
)
CopyC# JavaScript
Cinemachine
CinemachineVirtualCameraBaseInvokePostPipelineStageCallbackMethod
InvokesthePostPipelineStageDelegateforthiscamera,andupthehierarchyforallparentcameras(ifany).
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
vcamType:CinemachineCinemachineVirtualCameraBase[Missing<paramname="vcam"/>documentationfor"M:Cinemachine.CinemachineVirtualCameraBase.InvokePostPipelineStageCallback(Cinemachine.CinemachineVirtualCameraBase,Cinemachine.CinemachineCore.Stage,Cinemachine.CameraState@,System.Single)"]
stageType:CinemachineCinemachineCoreStage[Missing<paramname="stage"/>documentationfor"M:Cinemachine.CinemachineVirtualCameraBase.InvokePostPipelineStageCallback(Cinemachine.CinemachineVirtualCameraBase,Cinemachine.CinemachineCore.Stage,Cinemachine.CameraState@,System.Single)"]
newStateType:CinemachineCameraState[Missing<paramname="newState"/>documentationfor"M:Cinemachine.CinemachineVirtualCameraBase.InvokePostPipelineStageCallback(Cinemachine.CinemachineVirtualCameraBase,Cinemachine.CinemachineCore.Stage,Cinemachine.CameraState@,System.Single)"]
protectedvoidInvokePostPipelineStageCallback(
CinemachineVirtualCameraBasevcam,
CinemachineCoreStagestage,
refCameraStatenewState,
floatdeltaTime
)
CopyC# JavaScript
deltaTimeType:SystemSingle[Missing<paramname="deltaTime"/>documentationfor"M:Cinemachine.CinemachineVirtualCameraBase.InvokePostPipelineStageCallback(Cinemachine.CinemachineVirtualCameraBase,Cinemachine.CinemachineCore.Stage,Cinemachine.CameraState@,System.Single)"]
SeeAlsoReferenceCinemachineVirtualCameraBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineVirtualCameraBaseIsLiveChildMethod
Checkwhetherthevcamalivechildofthiscamera.Thisbaseclassimplementationalwaysreturnsfalse.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
vcamType:CinemachineICinemachineCameraTheVirtualCameratocheck
ReturnValueType:BooleanTrueifthevcamiscurrentlyactivelyinfluencingthestateofthisvcamImplementsICinemachineCameraIsLiveChild(ICinemachineCamera)
SeeAlsoReferenceCinemachineVirtualCameraBaseClass
publicvirtualboolIsLiveChild(
ICinemachineCameravcam
)
CopyC# JavaScript
CinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineVirtualCameraBaseMoveToTopOfPrioritySubqueueMethod
Whenmultiplevirtualcamerashavethehighestpriority,thereissometimestheneedtopushonetothetop,makingitthecurrentLivecameraifitsharesthehighestpriorityinthequeuewithitspeers.Thishappensautomaticallywhenanewvcamisenabled:themostrecentonegoestothetopoftheprioritysubqueue.Usethismethodtopushavcamtothetopofitsprioritypeers.Ifitanditspeerssharethehighestpriority,thenthisvcamwillbecomeLive.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineVirtualCameraBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicvoidMoveToTopOfPrioritySubqueue()
CopyC# JavaScript
Cinemachine
CinemachineVirtualCameraBaseOnDestroyMethod
Baseclassimplementationremovesthevirtualcamerafromthepriorityqueue.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineVirtualCameraBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
protectedvirtualvoidOnDestroy()
CopyC# JavaScript
Cinemachine
CinemachineVirtualCameraBaseOnDisableMethod
Baseclassimplementationmakessurethepriorityqueueremainsup-to-date.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineVirtualCameraBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
protectedvirtualvoidOnDisable()
CopyC# JavaScript
Cinemachine
CinemachineVirtualCameraBaseOnEnableMethod
Baseclassimplementationaddsthevirtualcamerafromthepriorityqueue.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineVirtualCameraBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
protectedvirtualvoidOnEnable()
CopyC# JavaScript
Cinemachine
CinemachineVirtualCameraBaseOnTransformParentChangedMethod
Baseclassimplementationmakessurethepriorityqueueremainsup-to-date.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineVirtualCameraBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
protectedvirtualvoidOnTransformParentChanged()
CopyC# JavaScript
Cinemachine
CinemachineVirtualCameraBaseOnTransitionFromCameraMethod
Notificationthatthisvirtualcameraisgoinglive.Baseclassimplementationmustbecalledbyanyoverriddenmethod.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
fromCamType:CinemachineICinemachineCameraThecamerabeingdeactivated.Maybenull.
ImplementsICinemachineCameraOnTransitionFromCamera(ICinemachineCamera)
SeeAlsoReferenceCinemachineVirtualCameraBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicvirtualvoidOnTransitionFromCamera(
ICinemachineCamerafromCam
)
CopyC# JavaScript
Cinemachine
CinemachineVirtualCameraBaseOnValidateMethod
Enforceboundsforfields,whenchangedininspector.Callbaseclassimplementationatthebeginningofoverriddenmethod.Afterbasemethodiscalled,ValidatingStreamVersionwillbevalid.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineVirtualCameraBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
protectedvirtualvoidOnValidate()
CopyC# JavaScript
Cinemachine
CinemachineVirtualCameraBasePreUpdateChildCamerasMethod
Thisiscalledpriortotheupdatingofthevcam'schildcameras,inordertoallowtheparenttoprepareitschildren.IfthechildrenareupdatingonFixedUpdate,thenthiswillnotnecessarilybecalledpriortoeveryFixedUpdate,butitmightbecalledonLateUpdateinstead.Baseclassimplementationdoesnothing.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
worldUpType:Vector3DefaultworldUp,setbytheCinemachineBrain
deltaTimeType:SystemSingleDeltatimefortime-basedeffects(ignoreiflessthan0)
ImplementsICinemachineCameraPreUpdateChildCameras(Vector3,Single)
SeeAlso
publicvirtualvoidPreUpdateChildCameras(
Vector3worldUp,
floatdeltaTime
)
CopyC# JavaScript
ReferenceCinemachineVirtualCameraBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineVirtualCameraBaseRemovePostPipelineStageHookMethod
RemoveaPipelinestagehookcallback.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
dType:CinemachineCinemachineVirtualCameraBaseOnPostPipelineStageDelegateThedelegatetoremove.
SeeAlsoReferenceCinemachineVirtualCameraBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicvirtualvoidRemovePostPipelineStageHook(
CinemachineVirtualCameraBaseOnPostPipelineStageDelegate
)
CopyC# JavaScript
Cinemachine
CinemachineVirtualCameraBaseResolveFollowMethod
Returnsthisvcam'sFollowtarget,orifthatisnull,willretruntheparentvcam'sFollowtarget.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
localFollowType:TransformThisvcam'sFollowvalue.
ReturnValueType:TransformThesamevalue,ortheparent'sifnullandaparentexists.
SeeAlsoReferenceCinemachineVirtualCameraBaseClassCinemachineNamespace
VisittheCinemachineForum
protectedTransformResolveFollow(
TransformlocalFollow
)
CopyC# JavaScript
https://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineVirtualCameraBaseResolveLookAtMethod
Returnsthisvcam'sLookAttarget,orifthatisnull,willretruntheparentvcam'sLookAttarget.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
localLookAtType:TransformThisvcam'sLookAtvalue.
ReturnValueType:TransformThesamevalue,ortheparent'sifnullandaparentexists.
SeeAlsoReferenceCinemachineVirtualCameraBaseClassCinemachineNamespace
VisittheCinemachineForum
protectedTransformResolveLookAt(
TransformlocalLookAt
)
CopyC# JavaScript
https://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineVirtualCameraBaseStartMethod
Baseclassimplementationdoesnothing.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineVirtualCameraBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
protectedvirtualvoidStart()
CopyC# JavaScript
Cinemachine
CinemachineVirtualCameraBaseUpdateMethod
Baseclassimplementationmakessurethepriorityqueueremainsup-to-date.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineVirtualCameraBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
protectedvirtualvoidUpdate()
CopyC# JavaScript
Cinemachine
CinemachineVirtualCameraBaseUpdateCameraStateMethod
CalledbyCinemachineCoreatdesignatedupdatetimesothevcamcanpositionitselfandtrackitstargets.Donotcallthismethod.Lettheframeworkdoitattheappropriatetime
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
worldUpType:Vector3DefaultworldUp,setbytheCinemachineBrain
deltaTimeType:SystemSingleDeltatimefortime-basedeffects(ignoreiflessthan0)
ImplementsICinemachineCameraUpdateCameraState(Vector3,Single)
SeeAlsoReference
publicabstractvoidUpdateCameraState(
Vector3worldUp,
floatdeltaTime
)
CopyC# JavaScript
CinemachineVirtualCameraBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineVirtualCameraBaseFields
TheCinemachineVirtualCameraBasetypeexposesthefollowingmembers.
Fields Name Description
CinemachineGUIDebuggerCallback Thisisdeprecated.Itisheretosupportthesoon-to-be-removedCinemachineDebuggerintheEditor.
m_ExcludedPropertiesInInspector Inspectorcontrol-UseforhidingsectionsoftheInspectorUI.
m_LockStageInInspector Inspectorcontrol-UseforenablingsectionsoftheInspectorUI.
m_Priority Theprioritywilldeterminewhichcamerabecomesactivebasedonthestateofothercamerasandthiscamera.Highernumbershavegreaterpriority.
OnPostPipelineStage Adelegatetohookintothestatecalculationpipeline.Implementaion
mustbesuretocallthisaftereachpipelinestage,toallowotherservicestohookintothepipeline.SeeCinemachineCore.Stage.
Top
SeeAlsoReferenceCinemachineVirtualCameraBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineVirtualCameraBaseCinemachineGUIDebuggerCallbackField
Thisisdeprecated.Itisheretosupportthesoon-to-be-removedCinemachineDebuggerintheEditor.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Action
SeeAlsoReferenceCinemachineVirtualCameraBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[HideInInspector]
[NoSaveDuringPlayAttribute]
publicActionCinemachineGUIDebuggerCallback
CopyC# JavaScript
Cinemachine
CinemachineVirtualCameraBasem_ExcludedPropertiesInInspectorField
Inspectorcontrol-UseforhidingsectionsoftheInspectorUI.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:String
SeeAlsoReferenceCinemachineVirtualCameraBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[HideInInspector]
[SerializeField]
[NoSaveDuringPlayAttribute]
publicstring[]m_ExcludedPropertiesInInspector
CopyC# JavaScript
Cinemachine
CinemachineVirtualCameraBasem_LockStageInInspectorField
Inspectorcontrol-UseforenablingsectionsoftheInspectorUI.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachineCoreStage
SeeAlsoReferenceCinemachineVirtualCameraBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[HideInInspector]
[SerializeField]
[NoSaveDuringPlayAttribute]
publicCinemachineCoreStage[]m_LockStageInInspector
CopyC# JavaScript
Cinemachine
CinemachineVirtualCameraBasem_PriorityField
Theprioritywilldeterminewhichcamerabecomesactivebasedonthestateofothercamerasandthiscamera.Highernumbershavegreaterpriority.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Int32
SeeAlsoReferenceCinemachineVirtualCameraBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[NoSaveDuringPlayAttribute]
[TooltipAttribute("Theprioritywilldeterminewhichcamerabecomesactivebasedonthestateofothercamerasandthiscamera.Highernumbershavegreaterpriority.")]
publicintm_Priority
CopyC# JavaScript
Cinemachine
CinemachineVirtualCameraBaseOnPostPipelineStageField
Adelegatetohookintothestatecalculationpipeline.Implementaionmustbesuretocallthisaftereachpipelinestage,toallowotherservicestohookintothepipeline.SeeCinemachineCore.Stage.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:CinemachineVirtualCameraBaseOnPostPipelineStageDelegate
SeeAlsoReferenceCinemachineVirtualCameraBaseClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
protectedCinemachineVirtualCameraBaseOnPostPipelineStageDelegate
CopyC# JavaScript
Cinemachine
CinemachineVirtualCameraBaseOnPostPipelineStageDelegateDelegate
Adelegatetohookintothestatecalculationpipeline.Thiswillbecalledaftereachpipelinestage,toallowotherservicestohookintothepipeline.SeeCinemachineCore.Stage.Parameters:*CinemachineVirtualCameraBasevcam:thevirtualcamerabeingupdated*CinemachineCore.Stagestage:whatstageinthepipelinehasjustbeenupdated*refCameraStatenewState:thecurrentstateofthevcam*floatdeltaTime:theframetimestep.Lessthan0means"don'tconsiderthepreviousframe"
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
vcamType:CinemachineCinemachineVirtualCameraBase
stageType:CinemachineCinemachineCoreStage
newState
publicdelegatevoidOnPostPipelineStageDelegate(
CinemachineVirtualCameraBasevcam,
CinemachineCoreStagestage,
refCameraStatenewState,
floatdeltaTime
)
CopyC# JavaScript
Type:CinemachineCameraStatedeltaTime
Type:SystemSingle
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
DocumentationSortingAttributeClass
Atrtributetocontroltheautomaticgenerationofdocumentation.
InheritanceHierarchySystemObjectSystemAttributeCinemachineDocumentationSortingAttribute
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheDocumentationSortingAttributetypeexposesthefollowingmembers.
Constructors Name Description
DocumentationSortingAttribute Contructorwithspecificvalues
Top
Properties
[DocumentationSortingAttribute(0f,DocumentationSortingAttribute
publicsealedclassDocumentationSortingAttribute:
CopyC# JavaScript
Name Description
Category Refinementlevelofthedocumentation.Themorerefined,themoreisexcluded.
SortOrder Wherethistypeappearsinthemanual.Smallernumbersortearlier.
Top
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
DocumentationSortingAttributeConstructor
Contructorwithspecificvalues
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
sortOrderType:SystemSingle[Missing<paramname="sortOrder"/>documentationfor"M:Cinemachine.DocumentationSortingAttribute.#ctor(System.Single,Cinemachine.DocumentationSortingAttribute.Level)"]
categoryType:CinemachineDocumentationSortingAttributeLevel[Missing<paramname="category"/>documentationfor"M:Cinemachine.DocumentationSortingAttribute.#ctor(System.Single,Cinemachine.DocumentationSortingAttribute.Level)"]
SeeAlsoReferenceDocumentationSortingAttributeClassCinemachineNamespace
publicDocumentationSortingAttribute(
floatsortOrder,
DocumentationSortingAttributeLevelcategory
)
CopyC# JavaScript
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
DocumentationSortingAttributeProperties
TheDocumentationSortingAttributetypeexposesthefollowingmembers.
Properties Name Description
Category Refinementlevelofthedocumentation.Themorerefined,themoreisexcluded.
SortOrder Wherethistypeappearsinthemanual.Smallernumbersortearlier.
Top
SeeAlsoReferenceDocumentationSortingAttributeClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
DocumentationSortingAttributeCategoryProperty
Refinementlevelofthedocumentation.Themorerefined,themoreisexcluded.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:DocumentationSortingAttributeLevel
SeeAlsoReferenceDocumentationSortingAttributeClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicDocumentationSortingAttributeLevelCategory{
CopyC# JavaScript
Cinemachine
DocumentationSortingAttributeSortOrderProperty
Wherethistypeappearsinthemanual.Smallernumbersortearlier.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Single
SeeAlsoReferenceDocumentationSortingAttributeClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicfloatSortOrder{get;}
CopyC# JavaScript
Cinemachine
DocumentationSortingAttributeLevelEnumeration
Refinementlevelofthedocumentation
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Members
Membername Value Description
Undoc 0 Typeisexcludedfromdocumentation
API 1 TypeisdocumentedintheAPIreference
UserRef 2 Typeisdocumentedinthehighly-refinedUserManual
SeeAlsoReferenceCinemachineNamespace
publicenumLevel
CopyC# JavaScript
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
ICinemachineCameraInterface
AnabstractrepresentationofavirtualcamerawhichliveswithintheUnityscene
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheICinemachineCameratypeexposesthefollowingmembers.
Properties Name Description
Description Getsabriefdebugdescriptionofthisvirtualcamera,forusewhendisplayiongdebuginfo
Follow Thethingthecamerawantstofollow(movingcamera).Maybenull.
LiveChildOrSelf Forcamerasthatimplementchildcameras,returnthelivechild,otherwise,justreturnsself.
publicinterfaceICinemachineCamera
CopyC# JavaScript
LookAt Thethingthecamerawantstolookat(aim).Maybenull.
Name Getsthenameofthisvirtualcamera.Forusewhendecidinghowtoblendtoorfromthiscamera
ParentCamera Forcamerasthatimplementchildcameras,returnstheparentvcam,otherwisenull.
Priority GetsthepriorityofthisICinemachineCamera.Thevirtualcamerawillbeinsertedintotheglobalprioritystackbasedonthisvalue.
State Camerastateatthecurrenttime.
VirtualCameraGameObject Getsthevirtualcameragameattachedtothisclass.
Top
Methods Name Description
IsLiveChild Checkwhetherthevcamisalivechildofthiscamera.
OnTransitionFromCamera Notificationthatanewcameraisbeingactivated.
thecurrentlyactivecamera.Bothmaybeactivesimultaneouslyforawhile,ifblending.
PreUpdateChildCameras Thisiscalledpriortotheupdatingofthevcam'schildcameras,inordertoallowtheparenttoprepareitschildren.childrenareupdatingonFixedUpdate,thenthiswillnotnecessarilybecalledpriortoeveryFixedUpdate,butitmightbecalledonLateUpdateinstead.
UpdateCameraState UpdatesthisCinemachineCamera.Foranactivecamerathisshouldbecalledonceandonlyonceeachframe.this,youshouldnevercallthismethoddirectly.CinemachineCore.UpdateVirtualCamera(ICinemachineCamera,float),whichhasprotectionagainstmultiplecallsperframe.
Top
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
ICinemachineCameraProperties
TheICinemachineCameratypeexposesthefollowingmembers.
Properties Name Description
Description Getsabriefdebugdescriptionofthisvirtualcamera,forusewhendisplayiongdebuginfo
Follow Thethingthecamerawantstofollow(movingcamera).Maybenull.
LiveChildOrSelf Forcamerasthatimplementchildcameras,returnthelivechild,otherwise,justreturnsself.
LookAt Thethingthecamerawantstolookat(aim).Maybenull.
Name Getsthenameofthisvirtualcamera.Forusewhendecidinghowtoblendtoorfromthiscamera
ParentCamera Forcamerasthatimplementchildcameras,returnsthe
parentvcam,otherwisenull.
Priority GetsthepriorityofthisICinemachineCamera.Thevirtualcamerawillbeinsertedintotheglobalprioritystackbasedonthisvalue.
State Camerastateatthecurrenttime.
VirtualCameraGameObject Getsthevirtualcameragameattachedtothisclass.
Top
SeeAlsoReferenceICinemachineCameraInterfaceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
ICinemachineCameraDescriptionProperty
Getsabriefdebugdescriptionofthisvirtualcamera,forusewhendisplayiongdebuginfo
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:String
SeeAlsoReferenceICinemachineCameraInterfaceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
stringDescription{get;}
CopyC# JavaScript
Cinemachine
ICinemachineCameraFollowProperty
Thethingthecamerawantstofollow(movingcamera).Maybenull.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Transform
SeeAlsoReferenceICinemachineCameraInterfaceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
TransformFollow{get;set;}
CopyC# JavaScript
Cinemachine
ICinemachineCameraLiveChildOrSelfProperty
Forcamerasthatimplementchildcameras,returnthelivechild,otherwise,justreturnsself.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:ICinemachineCamera
SeeAlsoReferenceICinemachineCameraInterfaceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
ICinemachineCameraLiveChildOrSelf{get;}
CopyC# JavaScript
Cinemachine
ICinemachineCameraLookAtProperty
Thethingthecamerawantstolookat(aim).Maybenull.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Transform
SeeAlsoReferenceICinemachineCameraInterfaceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
TransformLookAt{get;set;}
CopyC# JavaScript
Cinemachine
ICinemachineCameraNameProperty
Getsthenameofthisvirtualcamera.Forusewhendecidinghowtoblendtoorfromthiscamera
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:String
SeeAlsoReferenceICinemachineCameraInterfaceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
stringName{get;}
CopyC# JavaScript
Cinemachine
ICinemachineCameraParentCameraProperty
Forcamerasthatimplementchildcameras,returnstheparentvcam,otherwisenull.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:ICinemachineCamera
SeeAlsoReferenceICinemachineCameraInterfaceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
ICinemachineCameraParentCamera{get;}
CopyC# JavaScript
Cinemachine
ICinemachineCameraPriorityProperty
GetsthepriorityofthisICinemachineCamera.Thevirtualcamerawillbeinsertedintotheglobalprioritystackbasedonthisvalue.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:Int32
SeeAlsoReferenceICinemachineCameraInterfaceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
intPriority{get;set;}
CopyC# JavaScript
Cinemachine
ICinemachineCameraStateProperty
Camerastateatthecurrenttime.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:CameraState
SeeAlsoReferenceICinemachineCameraInterfaceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
CameraStateState{get;}
CopyC# JavaScript
Cinemachine
ICinemachineCameraVirtualCameraGameObjectProperty
Getsthevirtualcameragameattachedtothisclass.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:GameObject
SeeAlsoReferenceICinemachineCameraInterfaceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
GameObjectVirtualCameraGameObject{get;}
CopyC# JavaScript
Cinemachine
ICinemachineCameraMethods
TheICinemachineCameratypeexposesthefollowingmembers.
Methods Name Description
IsLiveChild Checkwhetherthevcamisalivechildofthiscamera.
OnTransitionFromCamera Notificationthatanewcameraisbeingactivated.thecurrentlyactivecamera.Bothmaybeactivesimultaneouslyforawhile,ifblending.
PreUpdateChildCameras Thisiscalledpriortotheupdatingofthevcam'schildcameras,inordertoallowtheparenttoprepareitschildren.childrenareupdatingonFixedUpdate,thenthiswillnotnecessarilybecalledpriortoeveryFixedUpdate,butitmightbecalledonLateUpdateinstead.
UpdateCameraState UpdatesthisCinemachineCamera.Foranactivecamerathisshouldbecalledonceandonlyonceeachframe.this,youshouldnevercallthismethoddirectly.CinemachineCore.UpdateVirtualCamera(ICinemachineCamera,float),whichhasprotectionagainstmultiplecallsperframe.
Top
SeeAlsoReferenceICinemachineCameraInterfaceCinemachineNamespace
VisittheCinemachineForum
https://unity3d.com/legal/terms-of-service
Cinemachine
ICinemachineCameraIsLiveChildMethod
Checkwhetherthevcamisalivechildofthiscamera.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
vcamType:CinemachineICinemachineCameraTheVirtualCameratocheck
ReturnValueType:BooleanTrueifthevcamiscurrentlyactivelyinfluencingthestateofthisvcam
SeeAlsoReferenceICinemachineCameraInterfaceCinemachineNamespace
VisittheCinemachineForum
boolIsLiveChild(
ICinemachineCameravcam
)
CopyC# JavaScript
https://unity3d.com/legal/terms-of-service
Cinemachine
ICinemachineCameraOnTransitionFromCameraMethod
Notificationthatanewcameraisbeingactivated.Thisissenttothecurrentlyactivecamera.Bothmaybeactivesimultaneouslyforawhile,ifblending.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
fromCamType:CinemachineICinemachineCameraThecamerabeingdeactivated.Maybenull.
SeeAlsoReferenceICinemachineCameraInterfaceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
voidOnTransitionFromCamera(
ICinemachineCamerafromCam
)
CopyC# JavaScript
Cinemachine
ICinemachineCameraPreUpdateChildCamerasMethod
Thisiscalledpriortotheupdatingofthevcam'schildcameras,inordertoallowtheparenttoprepareitschildren.IfthechildrenareupdatingonFixedUpdate,thenthiswillnotnecessarilybecalledpriortoeveryFixedUpdate,butitmightbecalledonLateUpdateinstead.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
worldUpType:Vector3DefaultworldUp,setbytheCinemachineBrain
deltaTimeType:SystemSingleDeltatimefortime-basedeffects(ignoreiflessthan0)
SeeAlsoReferenceICinemachineCameraInterfaceCinemachineNamespace
voidPreUpdateChildCameras(
Vector3worldUp,
floatdeltaTime
)
CopyC# JavaScript
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
ICinemachineCameraUpdateCameraStateMethod
UpdatesthisCinemachineCamera.Foranactivecamerathisshouldbecalledonceandonlyonceeachframe.Toguaranteethis,youshouldnevercallthismethoddirectly.AlwaysuseCinemachineCore.UpdateVirtualCamera(ICinemachineCamera,float),whichhasprotectionagainstmultiplecallsperframe.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
worldUpType:Vector3DefaultworldUp,setbytheCinemachineBrain
deltaTimeType:SystemSingleDeltatimefortime-basedeffects(ignoreiflessthan0)
SeeAlsoReferenceICinemachineCameraInterface
voidUpdateCameraState(
Vector3worldUp,
floatdeltaTime
)
CopyC# JavaScript
CinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
LensSettingsStructure
DescribestheFOVandclipplanesforacamera.ThisgenerallymirrorstheUnityCamera'slenssettings,andwillbeusedtodrivetheUnitycamerawhenthevcamisactive.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheLensSettingstypeexposesthefollowingmembers.
Constructors Name Description
LensSettings ExplicitconstructorforthisLensSettings
Top
Methods Name Description
FromCamera CreatesanewLensSettings,copyingthevaluesfromthe
[SerializableAttribute]
[DocumentationSortingAttribute(2f,DocumentationSortingAttribute
publicstructLensSettings
CopyC# JavaScript
suppliedCamera
Lerp LinearlyblendsthefieldsoftwoLensSettingsandreturnstheresult
Validate Makesurelenssettingsaresane.CallthisfromOnValidate().
Top
Fields Name Description
Default DefaultLensSettings
Dutch Thedutch(tilt)tobeappliedtothecamera.Indegrees
FarClipPlane ThefarclipplaneforthisLensSettings
FieldOfView Thisisthecameraviewinverticaldegrees.Forcinematicpeople,a50mmlensonasuper-35mmsensorwouldequala19.6degreeFOV
NearClipPlane ThenearclipplaneforthisLensSettings
OrthographicSize Whenusinganorthographiccamera,thisdefinestheheight,inworldco-ordinates,ofthecameraview.
Top
SeeAlso
ReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
LensSettingsConstructor
ExplicitconstructorforthisLensSettings
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
fovType:SystemSingleTheVerticalfieldofview
orthographicSizeType:SystemSingleIforthographic,thisisthehalf-heightofthescreen
nearClipType:SystemSingleThenearclipplane
farClipType:SystemSingleThefarclipplane
publicLensSettings(
floatfov,
floatorthographicSize,
floatnearClip,
floatfarClip,
floatdutch,
boolortho,
floataspect
)
CopyC# JavaScript
dutchType:SystemSingleCameraroll,indegrees.ThisisappliedattheendWhetherthelensisorthographicTheaspectratioofthelensWidth/heightaftershotcomposition.
orthoType:SystemBoolean[Missing<paramname="ortho"/>documentationfor"M:Cinemachine.LensSettings.#ctor(System.Single,System.Single,System.Single,System.Single,System.Single,System.Boolean,System.Single)"]
aspectType:SystemSingle[Missing<paramname="aspect"/>documentationfor"M:Cinemachine.LensSettings.#ctor(System.Single,System.Single,System.Single,System.Single,System.Single,System.Boolean,System.Single)"]
SeeAlsoReferenceLensSettingsStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
LensSettingsMethods
TheLensSettingstypeexposesthefollowingmembers.
Methods Name Description
FromCamera CreatesanewLensSettings,copyingthevaluesfromthesuppliedCamera
Lerp LinearlyblendsthefieldsoftwoLensSettingsandreturnstheresult
Validate Makesurelenssettingsaresane.CallthisfromOnValidate().
Top
SeeAlsoReferenceLensSettingsStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
LensSettingsFromCameraMethod
CreatesanewLensSettings,copyingthevaluesfromthesuppliedCamera
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
fromCameraType:CameraTheCamerafromwhichtheFoV,nearandfarclipplaneswillbecopied.
ReturnValueType:LensSettings[Missing<returns>documentationfor"M:Cinemachine.LensSettings.FromCamera(UnityEngine.Camera)"]
SeeAlsoReferenceLensSettingsStructureCinemachineNamespace
publicstaticLensSettingsFromCamera(
CamerafromCamera
)
CopyC# JavaScript
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
LensSettingsLerpMethod
LinearlyblendsthefieldsoftwoLensSettingsandreturnstheresult
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
lensAType:CinemachineLensSettingsTheLensSettingstoblendfrom
lensBType:CinemachineLensSettingsTheLensSettingstoblendto
tType:SystemSingleTheinterpolationvalue.Internallyclampedtotherange[0,1]
ReturnValueType:LensSettingsInterpolatedsettings
SeeAlso
publicstaticLensSettingsLerp(
LensSettingslensA,
LensSettingslensB,
floatt
)
CopyC# JavaScript
ReferenceLensSettingsStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
LensSettingsValidateMethod
Makesurelenssettingsaresane.CallthisfromOnValidate().
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceLensSettingsStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicvoidValidate()
CopyC# JavaScript
Cinemachine
LensSettingsFields
TheLensSettingstypeexposesthefollowingmembers.
Fields Name Description
Default DefaultLensSettings
Dutch Thedutch(tilt)tobeappliedtothecamera.Indegrees
FarClipPlane ThefarclipplaneforthisLensSettings
FieldOfView Thisisthecameraviewinverticaldegrees.Forcinematicpeople,a50mmlensonasuper-35mmsensorwouldequala19.6degreeFOV
NearClipPlane ThenearclipplaneforthisLensSettings
OrthographicSize Whenusinganorthographiccamera,thisdefinestheheight,inworldco-ordinates,ofthecameraview.
Top
SeeAlsoReferenceLensSettingsStructure
CinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
LensSettingsDefaultField
DefaultLensSettings
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:LensSettings
SeeAlsoReferenceLensSettingsStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicstaticLensSettingsDefault
CopyC# JavaScript
Cinemachine
LensSettingsDutchField
Thedutch(tilt)tobeappliedtothecamera.Indegrees
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceLensSettingsStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[RangeAttribute(-180f,180f)]
[TooltipAttribute("CameraZroll,ortilt,indegrees.")]
publicfloatDutch
CopyC# JavaScript
Cinemachine
LensSettingsFarClipPlaneField
ThefarclipplaneforthisLensSettings
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceLensSettingsStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Thisdefinesthefarregionoftherenderablerangeofthecamerafrustum.Typicallyyouwanttosetthisvalueaslowaspossiblewithoutcuttingoffdesireddistantobjects")]
publicfloatFarClipPlane
CopyC# JavaScript
Cinemachine
LensSettingsFieldOfViewField
Thisisthecameraviewinverticaldegrees.Forcinematicpeople,a50mmlensonasuper-35mmsensorwouldequala19.6degreeFOV
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceLensSettingsStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[RangeAttribute(1f,179f)]
[TooltipAttribute("Thisisthecameraviewinverticaldegrees.Forcinematicpeople,a50mmlensonasuper-35mmsensorwouldequala19.6degreeFOV")]
publicfloatFieldOfView
CopyC# JavaScript
Cinemachine
LensSettingsNearClipPlaneField
ThenearclipplaneforthisLensSettings
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceLensSettingsStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Thisdefinesthenearregionintherenderablerangeofthecamerafrustum.Raisingthisvaluewillstopthegamefromdrawingthingsnearthecamera,whichcansometimescomeinhandy.Largervalueswillalsoincreaseyourshadowresolution.")]
publicfloatNearClipPlane
CopyC# JavaScript
Cinemachine
LensSettingsOrthographicSizeField
Whenusinganorthographiccamera,thisdefinestheheight,inworldco-ordinates,ofthecameraview.
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceLensSettingsStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Whenusinganorthographiccamera,thisdefinesthehalf-height,inworldcoordinates,ofthecameraview.")]
publicfloatOrthographicSize
CopyC# JavaScript
Cinemachine
LensSettingsPropertyAttributeClass
PropertyappliedtoLensSettings.Usedforcustomdrawingintheinspector.
InheritanceHierarchySystemObjectSystemAttributePropertyAttributeCinemachineLensSettingsPropertyAttribute
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheLensSettingsPropertyAttributetypeexposesthefollowingmembers.
Constructors Name Description
LensSettingsPropertyAttribute
Top
SeeAlso
publicsealedclassLensSettingsPropertyAttribute:
CopyC# JavaScript
ReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
LensSettingsPropertyAttributeConstructor
[Missing<summary>documentationfor"M:Cinemachine.LensSettingsPropertyAttribute.#ctor"]
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceLensSettingsPropertyAttributeClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicLensSettingsPropertyAttribute()
CopyC# JavaScript
Cinemachine
NoiseSettingsClass
Thisisanassetthatdefinesanoiseprofile.Anoiseprofileistheshapeofthenoiseasafunctionoftime.Youcanbuildarbitrarilycomplexshapesbycombiningdifferentbaseperlinnoisefrequenciesatdifferentamplitudes.Thefrequenciesandamplitudesshouldbechosenwithcare,toensureaninterestingnoisequalitythatisnotobviouslyrepetitive.Asamathematicalside-note,anyarbitraryperiodiccurvecanbebrokendownintoaseriesoffixed-amplitudesine-wavesaddedtogether.Thisiscalledfourierdecomposition,andisthebasisofmuchsignalprocessing.Itdoesn'treallyhavemuchtodowiththisasset,butit'ssuperinteresting!
InheritanceHierarchySystemObjectObjectScriptableObjectCinemachineNoiseSettings
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheNoiseSettingstypeexposesthefollowingmembers.
Constructors Name Description
[DocumentationSortingAttribute(9f,DocumentationSortingAttribute
publicsealedclassNoiseSettings:ScriptableObject
CopyC# JavaScript
NoiseSettings
Top
Properties Name Description
OrientationNoise GetsthearrayoforientationnoisechannelsforthisNoiseSettings
PositionNoise GetsthearrayofpositionalnoisechannelsforthisNoiseSettings
Top
SeeAlsoReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
NoiseSettingsConstructor
[Missing<summary>documentationfor"M:Cinemachine.NoiseSettings.#ctor"]
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceNoiseSettingsClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicNoiseSettings()
CopyC# JavaScript
Cinemachine
NoiseSettingsProperties
TheNoiseSettingstypeexposesthefollowingmembers.
Properties Name Description
OrientationNoise GetsthearrayoforientationnoisechannelsforthisNoiseSettings
PositionNoise GetsthearrayofpositionalnoisechannelsforthisNoiseSettings
Top
SeeAlsoReferenceNoiseSettingsClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
NoiseSettingsOrientationNoiseProperty
GetsthearrayoforientationnoisechannelsforthisNoiseSettings
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:NoiseSettingsTransformNoiseParams
SeeAlsoReferenceNoiseSettingsClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicNoiseSettingsTransformNoiseParams[]OrientationNoise
CopyC# JavaScript
Cinemachine
NoiseSettingsPositionNoiseProperty
GetsthearrayofpositionalnoisechannelsforthisNoiseSettings
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
PropertyValueType:NoiseSettingsTransformNoiseParams
SeeAlsoReferenceNoiseSettingsClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicNoiseSettingsTransformNoiseParams[]PositionNoise
CopyC# JavaScript
Cinemachine
NoiseSettingsNoiseParamsStructure
Describesthebehaviourforachannelofnoise
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheNoiseSettingsNoiseParamstypeexposesthefollowingmembers.
Fields Name Description
Amplitude Theamplitudeofthenoiseforthischannel.Largernumbersvibratehigher
Frequency Thefrequencyofnoiseforthischannel.Highermagnitudesvibratefaster
Top
SeeAlso
[SerializableAttribute]
[DocumentationSortingAttribute(9.1f,DocumentationSortingAttribute
publicstructNoiseParams
CopyC# JavaScript
ReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
NoiseParamsFields
TheNoiseSettingsNoiseParamstypeexposesthefollowingmembers.
Fields Name Description
Amplitude Theamplitudeofthenoiseforthischannel.Largernumbersvibratehigher
Frequency Thefrequencyofnoiseforthischannel.Highermagnitudesvibratefaster
Top
SeeAlsoReferenceNoiseSettingsNoiseParamsStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
NoiseSettingsNoiseParamsAmplitudeField
Theamplitudeofthenoiseforthischannel.Largernumbersvibratehigher
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceNoiseSettingsNoiseParamsStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Theamplitudeofthenoiseforthischannel.Largernumbersvibratehigher.")]
publicfloatAmplitude
CopyC# JavaScript
Cinemachine
NoiseSettingsNoiseParamsFrequencyField
Thefrequencyofnoiseforthischannel.Highermagnitudesvibratefaster
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceNoiseSettingsNoiseParamsStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("Thefrequencyofnoiseforthischannel.Highermagnitudesvibratefaster.")]
publicfloatFrequency
CopyC# JavaScript
Cinemachine
NoiseSettingsTransformNoiseParamsStructure
Containsthebehaviourofnoiseforthenoisemoduleforall3cardinalaxesofthecamera
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheNoiseSettingsTransformNoiseParamstypeexposesthefollowingmembers.
Fields Name Description
X NoisedefinitionforX-axis
Y NoisedefinitionforY-axis
Z NoisedefinitionforZ-axis
Top
SeeAlso
[SerializableAttribute]
[DocumentationSortingAttribute(9.2f,DocumentationSortingAttribute
publicstructTransformNoiseParams
CopyC# JavaScript
ReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
TransformNoiseParamsFields
TheNoiseSettingsTransformNoiseParamstypeexposesthefollowingmembers.
Fields Name Description
X NoisedefinitionforX-axis
Y NoisedefinitionforY-axis
Z NoisedefinitionforZ-axis
Top
SeeAlsoReferenceNoiseSettingsTransformNoiseParamsStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
NoiseSettingsTransformNoiseParamsField
NoisedefinitionforX-axis
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:NoiseSettingsNoiseParams
SeeAlsoReferenceNoiseSettingsTransformNoiseParamsStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("NoisedefinitionforX-axis")]
publicNoiseSettingsNoiseParamsX
CopyC# JavaScript
Cinemachine
NoiseSettingsTransformNoiseParamsField
NoisedefinitionforY-axis
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:NoiseSettingsNoiseParams
SeeAlsoReferenceNoiseSettingsTransformNoiseParamsStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("NoisedefinitionforY-axis")]
publicNoiseSettingsNoiseParamsY
CopyC# JavaScript
Cinemachine
NoiseSettingsTransformNoiseParamsField
NoisedefinitionforZ-axis
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:NoiseSettingsNoiseParams
SeeAlsoReferenceNoiseSettingsTransformNoiseParamsStructureCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
[TooltipAttribute("NoisedefinitionforZ-axis")]
publicNoiseSettingsNoiseParamsZ
CopyC# JavaScript
Cinemachine
NoSaveDuringPlayAttributeClass
Suppressesplay-mode-saveforafield.Useitifthecalseehas[SaveDuringPlay]attributebuttherearefieldsintheclassthatshouldn'tbesaved.
InheritanceHierarchySystemObjectSystemAttributePropertyAttributeCinemachineNoSaveDuringPlayAttribute
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheNoSaveDuringPlayAttributetypeexposesthefollowingmembers.
Constructors Name Description
NoSaveDuringPlayAttribute
Top
SeeAlso
publicsealedclassNoSaveDuringPlayAttribute:PropertyAttribute
CopyC# JavaScript
ReferenceCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
NoSaveDuringPlayAttributeConstructor
[Missing<summary>documentationfor"M:Cinemachine.NoSaveDuringPlayAttribute.#ctor"]
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceNoSaveDuringPlayAttributeClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicNoSaveDuringPlayAttribute()
CopyC# JavaScript
Cinemachine
SaveDuringPlayAttributeClass
Invokeplay-mode-saveforaclass.Thisclass'sfieldswillbescanneduponexitingplaymode,anditspropertyvalueswillbeappliedtothesceneobject.ThisisastopgapmeasurethatwillbecomeobsoleteonceUnityimplementsplay-mode-saveinamoregeneralway.
InheritanceHierarchySystemObjectSystemAttributeCinemachineSaveDuringPlayAttribute
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheSaveDuringPlayAttributetypeexposesthefollowingmembers.
Constructors Name Description
SaveDuringPlayAttribute
Top
SeeAlsoReference
publicsealedclassSaveDuringPlayAttribute:Attribute
CopyC# JavaScript
CinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
SaveDuringPlayAttributeConstructor
[Missing<summary>documentationfor"M:Cinemachine.SaveDuringPlayAttribute.#ctor"]
Namespace:CinemachineAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceSaveDuringPlayAttributeClassCinemachineNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicSaveDuringPlayAttribute()
CopyC# JavaScript
Cinemachine
Cinemachine.UtilityNamespace
Cinemachinenon-domainutilitiesandUnityextensionsandhelpers
Classes Class Description
CinemachineGameWindowDebug ManagesonscreenpositionsforCinemachinedebuggingoutput
Damper UtilitytoperformrealisticdampingoffloatorVector3values.Thealgorithmisbasedonexponentiallydecayingthedeltauntilonlyanegligibleamountremains.
ReflectionHelpers Anad-hoccollectionofhelpersforreflection,usedby
Cinemachineoritseditortoolsinvariousplaces
UnityQuaternionExtensions ExtentionstotheQuaternionclass,useninvariousplacesbyCinemachine
UnityRectExtensions Ad-hocxxtentionstotheRectstructure,usedbyCinemachine
UnityVectorExtensions ExtensionstotheVector3class,usedbyCinemachine
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineGameWindowDebugClass
ManagesonscreenpositionsforCinemachinedebuggingoutput
InheritanceHierarchySystemObjectCinemachine.UtilityCinemachineGameWindowDebug
Namespace:Cinemachine.UtilityAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheCinemachineGameWindowDebugtypeexposesthefollowingmembers.
Constructors Name Description
CinemachineGameWindowDebug
Top
Methods Name Description
GetScreenPos Reserveanon-screen
publicclassCinemachineGameWindowDebug
CopyC# JavaScript
rectanglefordebuggingoutput.
ReleaseScreenPos ReleaseascreenrectanglepreviouslyobtainedthroughGetScreenPos()
Top
SeeAlsoReferenceCinemachine.UtilityNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineGameWindowDebugConstructor
[Missing<summary>documentationfor"M:Cinemachine.Utility.CinemachineGameWindowDebug.#ctor"]
Namespace:Cinemachine.UtilityAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
SeeAlsoReferenceCinemachineGameWindowDebugClassCinemachine.UtilityNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicCinemachineGameWindowDebug()
CopyC# JavaScript
Cinemachine
CinemachineGameWindowDebugMethods
TheCinemachineGameWindowDebugtypeexposesthefollowingmembers.
Methods Name Description
GetScreenPos Reserveanon-screenrectanglefordebuggingoutput.
ReleaseScreenPos ReleaseascreenrectanglepreviouslyobtainedthroughGetScreenPos()
Top
SeeAlsoReferenceCinemachineGameWindowDebugClassCinemachine.UtilityNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineGameWindowDebugGetScreenPosMethod
Reserveanon-screenrectanglefordebuggingoutput.
Namespace:Cinemachine.UtilityAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
clientType:ObjectTheclientcaller.Thisisusedasahandle.
textType:SystemStringSampletext,fordeterminingrectanglesize
styleType:GUIStyleWhatstylewillbeusedtodraw,usedherefordeterminingrectsize
ReturnValueType:RectAnareaonthegamescreenlargeenoughtoprintthetextinthe
publicstaticRectGetScreenPos(
Objectclient,
stringtext,
GUIStylestyle
)
CopyC# JavaScript
styleindicated
SeeAlsoReferenceCinemachineGameWindowDebugClassCinemachine.UtilityNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
CinemachineGameWindowDebugReleaseScreenPosMethod
ReleaseascreenrectanglepreviouslyobtainedthroughGetScreenPos()
Namespace:Cinemachine.UtilityAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
clientType:ObjectTheclientcaller.Usedasahandle.
SeeAlsoReferenceCinemachineGameWindowDebugClassCinemachine.UtilityNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicstaticvoidReleaseScreenPos(
Objectclient
)
CopyC# JavaScript
Cinemachine
DamperClass
UtilitytoperformrealisticdampingoffloatorVector3values.Thealgorithmisbasedonexponentiallydecayingthedeltauntilonlyanegligibleamountremains.
InheritanceHierarchySystemObjectCinemachine.UtilityDamper
Namespace:Cinemachine.UtilityAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheDampertypeexposesthefollowingmembers.
Methods Name Description
Damp(Single,Single,Single)
Getadampedversionofaquantity.Thisistheportionofthequantitythatwilltakeeffectoverthegiventime.
Damp(Vector3,Single,Single)
Getadampedversionofaquantity.Thisistheportionofthequantitythatwilltakeeffectoverthegiventime.
publicstaticclassDamper
CopyC# JavaScript
Damp(Vector3,Vector3,Single)
Getadampedversionofaquantity.Thisistheportionofthequantitythatwilltakeeffectoverthegiventime.
Top
Fields Name Description
kNegligibleResidual Standardresidual
Top
SeeAlsoReferenceCinemachine.UtilityNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
DamperMethods
Methods Name Description
Damp(Single,Single,Single)
Getadampedversionofaquantity.Thisistheportionofthequantitythatwilltakeeffectoverthegiventime.
Damp(Vector3,Single,Single)
Getadampedversionofaquantity.Thisistheportionofthequantitythatwilltakeeffectoverthegiventime.
Damp(Vector3,Vector3,Single)
Getadampedversionofaquantity.Thisistheportionofthequantitythatwilltakeeffectoverthegiventime.
Top
SeeAlsoReferenceDamperClassCinemachine.UtilityNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
DamperDampMethod
OverloadList Name Description
Damp(Single,Single,Single)
Getadampedversionofaquantity.Thisistheportionofthequantitythatwilltakeeffectoverthegiventime.
Damp(Vector3,Single,Single)
Getadampedversionofaquantity.Thisistheportionofthequantitythatwilltakeeffectoverthegiventime.
Damp(Vector3,Vector3,Single)
Getadampedversionofaquantity.Thisistheportionofthequantitythatwilltakeeffectoverthegiventime.
Top
SeeAlsoReferenceDamperClassCinemachine.UtilityNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
DamperDampMethod(Single,Single,Single)
Getadampedversionofaquantity.Thisistheportionofthequantitythatwilltakeeffectoverthegiventime.
Namespace:Cinemachine.UtilityAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
initialType:SystemSingleTheamountthatwillbedamped
dampTimeType:SystemSingleTherateofdamping.Thisisthetimeitwouldtaketoreducetheoriginalamounttoanegligiblepercentage
deltaTimeType:SystemSingleThetimeoverwhichtodamp
ReturnValueType:Single
publicstaticfloatDamp(
floatinitial,
floatdampTime,
floatdeltaTime
)
CopyC# JavaScript
Thedampedamount.Thiswillbetheoriginalamountscaledbyavaluebetween0and1.
SeeAlsoReferenceDamperClassDampOverloadCinemachine.UtilityNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
DamperDampMethod(Vector3,Single,Single)
Getadampedversionofaquantity.Thisistheportionofthequantitythatwilltakeeffectoverthegiventime.
Namespace:Cinemachine.UtilityAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
initialType:Vector3Theamountthatwillbedamped
dampTimeType:SystemSingleTherateofdamping.Thisisthetimeitwouldtaketoreducetheoriginalamounttoanegligiblepercentage
deltaTimeType:SystemSingleThetimeoverwhichtodamp
ReturnValueType:Vector3
publicstaticVector3Damp(
Vector3initial,
floatdampTime,
floatdeltaTime
)
CopyC# JavaScript
Thedampedamount.Thiswillbetheoriginalamountscaledbyavaluebetween0and1.
SeeAlsoReferenceDamperClassDampOverloadCinemachine.UtilityNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
DamperDampMethod(Vector3,Vector3,Single)
Getadampedversionofaquantity.Thisistheportionofthequantitythatwilltakeeffectoverthegiventime.
Namespace:Cinemachine.UtilityAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
initialType:Vector3Theamountthatwillbedamped
dampTimeType:Vector3Therateofdamping.Thisisthetimeitwouldtaketoreducetheoriginalamounttoanegligiblepercentage
deltaTimeType:SystemSingleThetimeoverwhichtodamp
ReturnValueType:Vector3
publicstaticVector3Damp(
Vector3initial,
Vector3dampTime,
floatdeltaTime
)
CopyC# JavaScript
Thedampedamount.Thiswillbetheoriginalamountscaledbyavaluebetween0and1.
SeeAlsoReferenceDamperClassDampOverloadCinemachine.UtilityNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
DamperFields
TheDampertypeexposesthefollowingmembers.
Fields Name Description
kNegligibleResidual Standardresidual
Top
SeeAlsoReferenceDamperClassCinemachine.UtilityNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
DamperkNegligibleResidualField
Standardresidual
Namespace:Cinemachine.UtilityAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceDamperClassCinemachine.UtilityNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicconstfloatkNegligibleResidual=0.01f
CopyC# JavaScript
Cinemachine
ReflectionHelpersClass
Anad-hoccollectionofhelpersforreflection,usedbyCinemachineoritseditortoolsinvariousplaces
InheritanceHierarchySystemObjectCinemachine.UtilityReflectionHelpers
Namespace:Cinemachine.UtilityAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheReflectionHelperstypeexposesthefollowingmembers.
Methods Name Description
AccessInternalFieldT Cheaterextensiontoaccessinternalfieldofanobject
CopyFields Copythefieldsfromoneobjecttoanother
GetFieldPathTType,TValue
Returnsastringpathfromanexpression-mostly
[DocumentationSortingAttribute(0f,DocumentationSortingAttribute
publicstaticclassReflectionHelpers
CopyC# JavaScript
usedtoretrieveserializedpropertieswithouthardcodingthefieldpath.Safer,andallowsforproperrefactoring.
GetParentObject Gettheobjectownerofafield.Thismethodprocessesthe'.'separatortogetfromtheobjectthatownsthecompoundfieldtotheobjectthatownstheleaffield
Top
SeeAlsoReferenceCinemachine.UtilityNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
ReflectionHelpersMethods
TheReflectionHelperstypeexposesthefollowingmembers.
Methods Name Description
AccessInternalFieldT Cheaterextensiontoaccessinternalfieldofanobject
CopyFields Copythefieldsfromoneobjecttoanother
GetFieldPathTType,TValue
Returnsastringpathfromanexpression-mostlyusedtoretrieveserializedpropertieswithouthardcodingthefieldpath.Safer,andallowsforproperrefactoring.
GetParentObject Gettheobjectownerofafield.Thismethodprocessesthe'.'separatortogetfromtheobjectthatownsthecompoundfieldtotheobjectthatownstheleaffield
Top
SeeAlso
ReferenceReflectionHelpersClassCinemachine.UtilityNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
ReflectionHelpersAccessInternalFieldMethod
Cheaterextensiontoaccessinternalfieldofanobject
Namespace:Cinemachine.UtilityAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
typeType:SystemTypeThetypeofthefield
objType:SystemObjectTheobjecttoaccess
memberNameType:SystemStringThestringnameofthefieldtoaccess
TypeParameters
T
publicstaticTAccessInternalField<T>(
thisTypetype,
Objectobj,
stringmemberName
)
CopyC# JavaScript
ReturnValueType:TThevalueofthefieldintheobjectsUsageNoteInVisualBasicandC#,youcancallthismethodasaninstancemethodonanyobjectoftypeType.Whenyouuseinstancemethodsyntaxtocallthismethod,omitthefirstparameter.Formoreinformation,seeExtensionMethods(VisualBasic)orExtensionMethods(C#ProgrammingGuide).
SeeAlsoReferenceReflectionHelpersClassCinemachine.UtilityNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
ReflectionHelpersCopyFieldsMethod
Copythefieldsfromoneobjecttoanother
Namespace:Cinemachine.UtilityAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
srcType:SystemObjectThesourceobjecttocopyfrom
dstType:SystemObjectThedestinationobjecttocopyto
bindingAttr(Optional)Type:System.ReflectionBindingFlagsThemasktofiltertheattributes.Onlythosefieldsthatgetcaughtinthefilterwillbecopied
SeeAlso
publicstaticvoidCopyFields(
Objectsrc,
Objectdst,
BindingFlagsbindingAttr=BindingFlags.Default|
)
CopyC# JavaScript
ReferenceReflectionHelpersClassCinemachine.UtilityNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
ReflectionHelpersGetFieldPathTTypeTValueMethod
Returnsastringpathfromanexpression-mostlyusedtoretrieveserializedpropertieswithouthardcodingthefieldpath.Safer,andallowsforproperrefactoring.
Namespace:Cinemachine.UtilityAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
exprType:System.Linq.ExpressionsExpressionFuncTType,TValue[Missing<paramname="expr"/>documentationfor"M:Cinemachine.Utility.ReflectionHelpers.GetFieldPath``2(System.Linq.Expressions.Expression{System.Func{``0,``1}})"]
TypeParameters
TTypeTValue
ReturnValueType:String[Missing<returns>documentationfor"M:Cinemachine.Utility.ReflectionHelpers.GetFieldPath``2(System.Linq.Expressions.Expression{System.Func{``0,``1}})"]
publicstaticstringGetFieldPath<TType,TValue>(
Expression<Func<TType,TValue>>expr
)
CopyC# JavaScript
SeeAlsoReferenceReflectionHelpersClassCinemachine.UtilityNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
ReflectionHelpersGetParentObjectMethod
Gettheobjectownerofafield.Thismethodprocessesthe'.'separatortogetfromtheobjectthatownsthecompoundfieldtotheobjectthatownstheleaffield
Namespace:Cinemachine.UtilityAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
pathType:SystemStringThenameofthefield,whichmaycontain'.'separators
objType:SystemObjecttheownerofthecompoundfield
ReturnValueType:Object[Missing<returns>documentationfor"M:Cinemachine.Utility.ReflectionHelpers.GetParentObject(System.String,System.Object)"]
publicstaticObjectGetParentObject(
stringpath,
Objectobj
)
CopyC# JavaScript
SeeAlsoReferenceReflectionHelpersClassCinemachine.UtilityNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
UnityQuaternionExtensionsClass
ExtentionstotheQuaternionclass,useninvariousplacesbyCinemachine
InheritanceHierarchySystemObjectCinemachine.UtilityUnityQuaternionExtensions
Namespace:Cinemachine.UtilityAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheUnityQuaternionExtensionstypeexposesthefollowingmembers.
Methods Name Description
ApplyCameraRotation Applyrotations,firstaboutworldup,thenabout(travelling)localright.rot.yisrotationaboutworldUp,androt.xissecondrotation,aboutlocalright.
publicstaticclassUnityQuaternionExtensions
CopyC# JavaScript
GetCameraRotationToTarget Gettherotations,firstaboutworldup,thenabout(travelling)localright,necessarytoalignthequaternion'sforwardwiththetargetdirection.Thisrepresentsthetripodheadmovementneededtolookatthetarget.Thisformulationmakesiteasytointerpolatewithoutintroducingspuriousroll.
Normalized Normalizeaquaternion
SlerpWithReferenceUp Thisisaslerpthatmimicsacameraoperator'smovementinthatitchoosesapaththatavoidsthelowerhemisphere,asdefinedbytheupparam
Top
SeeAlsoReference
Cinemachine.UtilityNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
UnityQuaternionExtensionsMethods
TheUnityQuaternionExtensionstypeexposesthefollowingmembers.
Methods Name Description
ApplyCameraRotation Applyrotations,firstaboutworldup,thenabout(travelling)localright.rot.yisrotationaboutworldUp,androt.xissecondrotation,aboutlocalright.
GetCameraRotationToTarget Gettherotations,firstaboutworldup,thenabout(travelling)localright,necessarytoalignthequaternion'sforwardwiththetargetdirection.Thisrepresentsthetripodheadmovementneededtolookatthetarget.Thisformulationmakesiteasyto
interpolatewithoutintroducingspuriousroll.
Normalized Normalizeaquaternion
SlerpWithReferenceUp Thisisaslerpthatmimicsacameraoperator'smovementinthatitchoosesapaththatavoidsthelowerhemisphere,asdefinedbytheupparam
Top
SeeAlsoReferenceUnityQuaternionExtensionsClassCinemachine.UtilityNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
UnityQuaternionExtensionsApplyCameraRotationMethod
Applyrotations,firstaboutworldup,thenabout(travelling)localright.rot.yisrotationaboutworldUp,androt.xissecondrotation,aboutlocalright.
Namespace:Cinemachine.UtilityAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
orientType:Quaternion[Missing<paramname="orient"/>documentationfor"M:Cinemachine.Utility.UnityQuaternionExtensions.ApplyCameraRotation(UnityEngine.Quaternion,UnityEngine.Vector2,UnityEngine.Vector3)"]
rotType:Vector2Vector2.yisrotationaboutworldUp,andVector2.xissecondrotation,aboutlocalright.
worldUpType:Vector3Whichwayisup
publicstaticQuaternionApplyCameraRotation(
thisQuaternionorient,
Vector2rot,
Vector3worldUp
)
CopyC# JavaScript
ReturnValueType:Quaternion[Missing<returns>documentationfor"M:Cinemachine.Utility.UnityQuaternionExtensions.ApplyCameraRotation(UnityEngine.Quaternion,UnityEngine.Vector2,UnityEngine.Vector3)"]
UsageNoteInVisualBasicandC#,youcancallthismethodasaninstancemethodonanyobjectoftypeQuaternion.Whenyouuseinstancemethodsyntaxtocallthismethod,omitthefirstparameter.Formoreinformation,seeExtensionMethods(VisualBasic)orExtensionMethods(C#ProgrammingGuide).
SeeAlsoReferenceUnityQuaternionExtensionsClassCinemachine.UtilityNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
UnityQuaternionExtensionsGetCameraRotationToTargetMethod
Gettherotations,firstaboutworldup,thenabout(travelling)localright,necessarytoalignthequaternion'sforwardwiththetargetdirection.Thisrepresentsthetripodheadmovementneededtolookatthetarget.Thisformulationmakesiteasytointerpolatewithoutintroducingspuriousroll.
Namespace:Cinemachine.UtilityAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
orientType:Quaternion[Missing<paramname="orient"/>documentationfor"M:Cinemachine.Utility.UnityQuaternionExtensions.GetCameraRotationToTarget(UnityEngine.Quaternion,UnityEngine.Vector3,UnityEngine.Vector3)"]
lookAtDirType:Vector3Theworldspacetargetdirectioninwhichwewanttolook
worldUpType:Vector3Whichwayisup
publicstaticVector2GetCameraRotationToTarget(
thisQuaternionorient,
Vector3lookAtDir,
Vector3worldUp
)
CopyC# JavaScript
ReturnValueType:Vector2Vector2.yisrotationaboutworldUp,andVector2.xissecondrotation,aboutlocalright.UsageNoteInVisualBasicandC#,youcancallthismethodasaninstancemethodonanyobjectoftypeQuaternion.Whenyouuseinstancemethodsyntaxtocallthismethod,omitthefirstparameter.Formoreinformation,seeExtensionMethods(VisualBasic)orExtensionMethods(C#ProgrammingGuide).
SeeAlsoReferenceUnityQuaternionExtensionsClassCinemachine.UtilityNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
UnityQuaternionExtensionsNormalizedMethod
Normalizeaquaternion
Namespace:Cinemachine.UtilityAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
qType:Quaternion[Missing<paramname="q"/>documentationfor"M:Cinemachine.Utility.UnityQuaternionExtensions.Normalized(UnityEngine.Quaternion)"]
ReturnValueType:QuaternionThenormalizedquaternion.Unitlengthis1.UsageNoteInVisualBasicandC#,youcancallthismethodasaninstancemethodonanyobjectoftypeQuaternion.Whenyouuseinstancemethodsyntaxtocallthismethod,omitthefirstparameter.Formoreinformation,seeExtensionMethods(VisualBasic)orExtensionMethods(C#ProgrammingGuide).
publicstaticQuaternionNormalized(
thisQuaternionq
)
CopyC# JavaScript
SeeAlsoReferenceUnityQuaternionExtensionsClassCinemachine.UtilityNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
UnityQuaternionExtensionsSlerpWithReferenceUpMethod
Thisisaslerpthatmimicsacameraoperator'smovementinthatitchoosesapaththatavoidsthelowerhemisphere,asdefinedbytheupparam
Namespace:Cinemachine.UtilityAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
qAType:QuaternionFirstdirection
qBType:QuaternionSeconddirection
tType:SystemSingleInterpolationamount
upType:Vector3
publicstaticQuaternionSlerpWithReferenceUp(
QuaternionqA,
QuaternionqB,
floatt,
Vector3up
)
CopyC# JavaScript
Definestheupdirection
ReturnValueType:Quaternion[Missing<returns>documentationfor"M:Cinemachine.Utility.UnityQuaternionExtensions.SlerpWithReferenceUp(UnityEngine.Quaternion,UnityEngine.Quaternion,System.Single,UnityEngine.Vector3)"]
SeeAlsoReferenceUnityQuaternionExtensionsClassCinemachine.UtilityNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
UnityRectExtensionsClass
Ad-hocxxtentionstotheRectstructure,usedbyCinemachine
InheritanceHierarchySystemObjectCinemachine.UtilityUnityRectExtensions
Namespace:Cinemachine.UtilityAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheUnityRectExtensionstypeexposesthefollowingmembers.
Methods Name Description
Inflated Inflatearect
Top
SeeAlsoReferenceCinemachine.UtilityNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicstaticclassUnityRectExtensions
CopyC# JavaScript
Cinemachine
UnityRectExtensionsMethods
TheUnityRectExtensionstypeexposesthefollowingmembers.
Methods Name Description
Inflated Inflatearect
Top
SeeAlsoReferenceUnityRectExtensionsClassCinemachine.UtilityNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
UnityRectExtensionsInflatedMethod
Inflatearect
Namespace:Cinemachine.UtilityAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
rType:Rect[Missing<paramname="r"/>documentationfor"M:Cinemachine.Utility.UnityRectExtensions.Inflated(UnityEngine.Rect,UnityEngine.Vector2)"]
deltaType:Vector2xandyareadded/subtractedfto/fromtheedgesoftherect,inflatingitinalldirections
ReturnValueType:RectTheinflatedrectUsageNoteInVisualBasicandC#,youcancallthismethodasaninstancemethodonanyobjectoftypeRect.Whenyouuseinstancemethod
publicstaticRectInflated(
thisRectr,
Vector2delta
)
CopyC# JavaScript
syntaxtocallthismethod,omitthefirstparameter.Formoreinformation,seeExtensionMethods(VisualBasic)orExtensionMethods(C#ProgrammingGuide).
SeeAlsoReferenceUnityRectExtensionsClassCinemachine.UtilityNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
UnityVectorExtensionsClass
ExtensionstotheVector3class,usedbyCinemachine
InheritanceHierarchySystemObjectCinemachine.UtilityUnityVectorExtensions
Namespace:Cinemachine.UtilityAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
TheUnityVectorExtensionstypeexposesthefollowingmembers.
Methods Name Description
AlmostZero IsthevectorwithinEpsilonofzerolength?
ClosestPointOnSegment(Vector2,Vector2,Vector2)
Gettheclosestpointonalinesegment.
ClosestPointOnSegment(Vector3,Vector3,Vector3)
Gettheclosestpoint
publicstaticclassUnityVectorExtensions
CopyC# JavaScript
onalinesegment.
ProjectOntoPlane Returnsanon-normalizedprojectionofthesuppliedvectorontoaplaneasdescribedbyitsnormal
SignedAngle Getasignedanglebetweentwovectors
SlerpWithReferenceUp Thisisaslerpthatmimicsacameraoperator'smovementinthatitchoosesapaththatavoidsthelowerhemisphere,asdefinedbytheupparam
Top
Fields Name Description
Epsilon AusefulEpsilon
Top
SeeAlsoReferenceCinemachine.UtilityNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
UnityVectorExtensionsMethods
TheUnityVectorExtensionstypeexposesthefollowingmembers.
Methods Name Description
AlmostZero IsthevectorwithinEpsilonofzerolength?
ClosestPointOnSegment(Vector2,Vector2,Vector2)
Gettheclosestpointonalinesegment.
ClosestPointOnSegment(Vector3,Vector3,Vector3)
Gettheclosestpointonalinesegment.
ProjectOntoPlane Returnsanon-normalizedprojectionofthesuppliedvectorontoaplaneasdescribedbyitsnormal
SignedAngle Getasignedanglebetweentwovectors
SlerpWithReferenceUp Thisisaslerpthatmimicsacameraoperator'smovementinthatitchoosesapaththatavoidsthelowerhemisphere,asdefinedbytheupparam
Top
SeeAlsoReferenceUnityVectorExtensionsClassCinemachine.UtilityNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
UnityVectorExtensionsAlmostZeroMethod
IsthevectorwithinEpsilonofzerolength?
Namespace:Cinemachine.UtilityAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
vType:Vector3[Missing<paramname="v"/>documentationfor"M:Cinemachine.Utility.UnityVectorExtensions.AlmostZero(UnityEngine.Vector3)"]
ReturnValueType:BooleanTrueifthesquaremagnitudeofthevectoriswithinEpsilonofzeroUsageNoteInVisualBasicandC#,youcancallthismethodasaninstancemethodonanyobjectoftypeVector3.Whenyouuseinstancemethodsyntaxtocallthismethod,omitthefirstparameter.Formoreinformation,seeExtensionMethods(VisualBasic)orExtensionMethods(C#ProgrammingGuide).
publicstaticboolAlmostZero(
thisVector3v
)
CopyC# JavaScript
SeeAlsoReferenceUnityVectorExtensionsClassCinemachine.UtilityNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
UnityVectorExtensionsClosestPointOnSegmentMethod
OverloadList Name Description
ClosestPointOnSegment(Vector2,Vector2,Vector2)
Gettheclosestpointonalinesegment.
ClosestPointOnSegment(Vector3,Vector3,Vector3)
Gettheclosestpointonalinesegment.
Top
SeeAlsoReferenceUnityVectorExtensionsClassCinemachine.UtilityNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
UnityVectorExtensionsClosestPointOnSegmentMethod(Vector2,Vector2,Vector2)
Gettheclosestpointonalinesegment.
Namespace:Cinemachine.UtilityAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
pType:Vector2Apointinspace
s0Type:Vector2Startoflinesegment
s1Type:Vector2Endoflinesegment
ReturnValueType:SingleTheinterpolationparameterrepresentingthepointonthesegment,with0==s0,and1==s1
publicstaticfloatClosestPointOnSegment(
thisVector2p,
Vector2s0,
Vector2s1
)
CopyC# JavaScript
UsageNoteInVisualBasicandC#,youcancallthismethodasaninstancemethodonanyobjectoftypeVector2.Whenyouuseinstancemethodsyntaxtocallthismethod,omitthefirstparameter.Formoreinformation,seeExtensionMethods(VisualBasic)orExtensionMethods(C#ProgrammingGuide).
SeeAlsoReferenceUnityVectorExtensionsClassClosestPointOnSegmentOverloadCinemachine.UtilityNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
UnityVectorExtensionsClosestPointOnSegmentMethod(Vector3,Vector3,Vector3)
Gettheclosestpointonalinesegment.
Namespace:Cinemachine.UtilityAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
pType:Vector3Apointinspace
s0Type:Vector3Startoflinesegment
s1Type:Vector3Endoflinesegment
ReturnValueType:SingleTheinterpolationparameterrepresentingthepointonthesegment,with0==s0,and1==s1
publicstaticfloatClosestPointOnSegment(
thisVector3p,
Vector3s0,
Vector3s1
)
CopyC# JavaScript
UsageNoteInVisualBasicandC#,youcancallthismethodasaninstancemethodonanyobjectoftypeVector3.Whenyouuseinstancemethodsyntaxtocallthismethod,omitthefirstparameter.Formoreinformation,seeExtensionMethods(VisualBasic)orExtensionMethods(C#ProgrammingGuide).
SeeAlsoReferenceUnityVectorExtensionsClassClosestPointOnSegmentOverloadCinemachine.UtilityNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
UnityVectorExtensionsProjectOntoPlaneMethod
Returnsanon-normalizedprojectionofthesuppliedvectorontoaplaneasdescribedbyitsnormal
Namespace:Cinemachine.UtilityAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
vectorType:Vector3[Missing<paramname="vector"/>documentationfor"M:Cinemachine.Utility.UnityVectorExtensions.ProjectOntoPlane(UnityEngine.Vector3,UnityEngine.Vector3)"]
planeNormalType:Vector3Thenormalthatdefinestheplane.Cannotbezero-length.
ReturnValueType:Vector3ThecomponentofthevectorthatliesintheplaneUsageNoteInVisualBasicandC#,youcancallthismethodasaninstancemethodonanyobjectoftypeVector3.Whenyouuseinstance
publicstaticVector3ProjectOntoPlane(
thisVector3vector,
Vector3planeNormal
)
CopyC# JavaScript
methodsyntaxtocallthismethod,omitthefirstparameter.Formoreinformation,seeExtensionMethods(VisualBasic)orExtensionMethods(C#ProgrammingGuide).
SeeAlsoReferenceUnityVectorExtensionsClassCinemachine.UtilityNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
UnityVectorExtensionsSignedAngleMethod
Getasignedanglebetweentwovectors
Namespace:Cinemachine.UtilityAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
fromType:Vector3Startdirection
toType:Vector3Enddirection
refNormalType:Vector3Thisisneededinordertodeterminethesign.Forexample,iffromantolieontheXZplane,thenthiswouldbetheYunitvector,orindeedanyvectorwhich,whendottedwithYunitvector,wouldgiveapositiveresult.
ReturnValue
publicstaticfloatSignedAngle(
Vector3from,
Vector3to,
Vector3refNormal
)
CopyC# JavaScript
Type:SingleThesignedanglebetweenthevectors
SeeAlsoReferenceUnityVectorExtensionsClassCinemachine.UtilityNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
UnityVectorExtensionsSlerpWithReferenceUpMethod
Thisisaslerpthatmimicsacameraoperator'smovementinthatitchoosesapaththatavoidsthelowerhemisphere,asdefinedbytheupparam
Namespace:Cinemachine.UtilityAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
Parameters
vAType:Vector3Firstdirection
vBType:Vector3Seconddirection
tType:SystemSingleInterpolationamount
upType:Vector3
publicstaticVector3SlerpWithReferenceUp(
Vector3vA,
Vector3vB,
floatt,
Vector3up
)
CopyC# JavaScript
Definestheupdirection
ReturnValueType:Vector3[Missing<returns>documentationfor"M:Cinemachine.Utility.UnityVectorExtensions.SlerpWithReferenceUp(UnityEngine.Vector3,UnityEngine.Vector3,System.Single,UnityEngine.Vector3)"]
SeeAlsoReferenceUnityVectorExtensionsClassCinemachine.UtilityNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
UnityVectorExtensionsFields
TheUnityVectorExtensionstypeexposesthefollowingmembers.
Fields Name Description
Epsilon AusefulEpsilon
Top
SeeAlsoReferenceUnityVectorExtensionsClassCinemachine.UtilityNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
Cinemachine
UnityVectorExtensionsEpsilonField
AusefulEpsilon
Namespace:Cinemachine.UtilityAssembly:Cinemachine(inCinemachine.dll)Version:2.0.0.0(2.0.0.0)
Syntax
FieldValueType:Single
SeeAlsoReferenceUnityVectorExtensionsClassCinemachine.UtilityNamespace
VisittheCinemachineForumhttps://unity3d.com/legal/terms-of-service
publicconstfloatEpsilon=0.0001f
CopyC# JavaScript