Announcement

Collapse
No announcement yet.

Web Remote Control Documentation

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Web Remote Control Documentation

    Hi! Trying to follow the documentation for the Web Remote API (https://docs.unrealengine.com/en-US/...art/index.html) the following command cannot be executed:

    {
    "objectPath" : "/Game/RemoteControlMAIN.RemoteControlMAIN:PersistentLevel.LightSource.LightComponent0",
    "access" : "READ_ACCESS",
    "propertyName":"RelativeRotation"
    }
    as the log returns this message:

    LogRemoteControl: Error: Web Remote Object Access deserialization error: object property: RelativeRotation is unavailable remotely on object: /Game/RemoteControlMAIN.RemoteControlMAIN:PersistentLevel.LightSource.LightComponent0
    I got the same information by calling a function by another method:

    {
    "objectPath" : "/Game/RemoteControlMAIN.RemoteControlMAIN:PersistentLevel.SpotLight_1",
    "functionName":"GetActorRotation"
    }
    if I get all the properties of the object's component I have the following answer:

    REQUEST
    {
    "objectPath" : "/Game/RemoteControlMAIN.RemoteControlMAIN:PersistentLevel.LightSource.LightComponent0",
    "access" : "READ_ACCESS"
    }
    RESPONSE

    {
    "ShadowCascadeBiasDistribution": 1,
    "bEnableLightShaftOcclusion": false,
    "OcclusionMaskDarkness": 0.05,
    "OcclusionDepthRange": 100000,
    "LightShaftOverrideDirection": {
    "X": 0,
    "Y": 0,
    "Z": 0
    },
    "DynamicShadowDistanceMovableLight": 20000,
    "DynamicShadowDistanceStationaryLight": 0,
    "DynamicShadowCascades": 3,
    "CascadeDistributionExponent": 3,
    "CascadeTransitionFraction": 0.1,
    "ShadowDistanceFadeoutFraction": 0.1,
    "bUseInsetShadowsForMovableObjects": true,
    "FarShadowCascadeCount": 0,
    "FarShadowDistance": 300000,
    "DistanceFieldShadowDistance": 30000,
    "LightSourceAngle": 0.5357,
    "LightSourceSoftAngle": 0,
    "TraceDistance": 10000,
    "LightmassSettings": {
    "LightSourceAngle": 1,
    "IndirectLightingSaturation": 1,
    "ShadowExponent": 2,
    "bUseAreaShadowsForStationaryLight": false
    },
    "bCastModulatedShadows": false,
    "ModulatedShadowColor": {
    "B": 128,
    "G": 128,
    "R": 128,
    "A": 255
    },
    "ShadowAmount": 1,
    "bUsedAsAtmosphereSunLight": true,
    "AtmosphereSunLightIndex": 0,
    "Temperature": 6500,
    "MaxDrawDistance": 0,
    "MaxDistanceFadeRange": 0,
    "bUseTemperature": false,
    "SpecularScale": 1,
    "ShadowResolutionScale": 1,
    "ShadowBias": 0.5,
    "ShadowSlopeBias": 0.5,
    "ShadowSharpen": 0,
    "ContactShadowLength": 0,
    "ContactShadowLengthInWS": false,
    "CastTranslucentShadows": true,
    "bCastShadowsFromCinematicObjectsOnly": false,
    "bAffectDynamicIndirectLighting": false,
    "bForceCachedShadowsForMovablePrimitives": false,
    "LightingChannels": {
    "bChannel0": true,
    "bChannel1": false,
    "bChannel2": false
    },
    "LightFunctionMaterial": "",
    "LightFunctionScale": {
    "X": 1024,
    "Y": 1024,
    "Z": 1024
    },
    "IESTexture": "",
    "bUseIESBrightness": false,
    "IESBrightnessScale": 1,
    "LightFunctionFadeDistance": 100000,
    "DisabledBrightness": 0.5,
    "bEnableLightShaftBloom": false,
    "BloomScale": 0.2,
    "BloomThreshold": 0,
    "BloomMaxBrightness": 100,
    "BloomTint": {
    "B": 255,
    "G": 255,
    "R": 255,
    "A": 255
    },
    "bUseRayTracedDistanceFieldShadows": false,
    "RayStartOffsetDepthScale": 0.003,
    "Intensity": 3.14159,
    "LightColor": {
    "B": 255,
    "G": 255,
    "R": 255,
    "A": 255
    },
    "bAffectsWorld": true,
    "CastShadows": true,
    "CastStaticShadows": true,
    "CastDynamicShadows": true,
    "bAffectTranslucentLighting": true,
    "bTransmission": false,
    "bCastVolumetricShadow": true,
    "bCastDeepShadow": false,
    "bCastRaytracedShadow": true,
    "bAffectReflection": true,
    "bAffectGlobalIllumination": true,
    "IndirectLightingIntensity": 1,
    "VolumetricScatteringIntensity": 1,
    "SamplesPerPixel": 1,
    "bHiddenInGame": false,
    "bUseAttachParentBound": false,
    "Mobility": "Stationary",
    "DetailMode": "DM_Low",
    "PrimaryComponentTick": {
    "TickGroup": "TG_DuringPhysics",
    "EndTickGroup": "TG_PrePhysics",
    "bTickEvenWhenPaused": false,
    "bCanEverTick": false,
    "bStartWithTickEnabled": true,
    "bAllowTickOnDedicatedServer": true,
    "TickInterval": 0
    },
    "ComponentTags": [],
    "bAutoActivate": false,
    "bEditableWhenInherited": true,
    "bIsEditorOnly": false
    }
    these properties I can access using the method proposed in the documentation, for example:

    REQUEST

    {
    "objectPath" : "/Game/RemoteControlMAIN.RemoteControlMAIN:PersistentLevel.LightSource.LightComponent0",
    "access" : "READ_ACCESS",
    "propertyName":"LightColor"
    }
    RESPONSE

    {
    "LightColor": {
    "B": 255,
    "G": 255,
    "R": 255,
    "A": 255
    }
    }

    So it really seems that I can't access the relative rotation by the method exposed in the documentation. Is my procedure incorrect or is the documentation inaccurate?

    Obs.: The objectPath I put here is different from the documentation because I am using my own project.







    #2
    Hey noctuo! Thanks for pointing this out to us. I've transferred your feedback to a ticket and passed it along to the rest of the docs team. Let me talk to them and see what we can find out. I'll ping you with an update once I know more.

    Comment


      #3
      Sharp eye, noctuo -- it looks like that RelativeRotation property was made private in 4.25, so it's no longer accessible through the remote control API.
      I'll update that quick start to use a different property instead.
      I think you should be able to call the GetRelativeRotation() function instead.

      Comment

      Working...
      X