private serializableUnityARLightData(UnityARLightData lightData) { whichLight = lightData.arLightingType; if (whichLight == LightDataType.DirectionalLightEstimate) { lightSHC = lightData.arDirectonalLightEstimate.sphericalHarmonicsCoefficients; Vector3 primaryLightDirection = lightData.arDirectonalLightEstimate.primaryLightDirection; float primaryLightIntensity = lightData.arDirectonalLightEstimate.primaryLightIntensity; primaryLightDirAndIntensity = new SerializableVector4(primaryLightDirection.x, primaryLightDirection.y, primaryLightDirection.z, primaryLightIntensity); } else { ambientIntensity = lightData.arLightEstimate.ambientIntensity; ambientColorTemperature = lightData.arLightEstimate.ambientColorTemperature; } }
public serializableUnityARPlaneAnchor(serializableUnityARMatrix4x4 wt, SerializableVector4 ctr, SerializableVector4 ext, ARPlaneAnchorAlignment apaa, byte[] idstr) { worldTransform = wt; center = ctr; extent = ext; planeAlignment = apaa; identifierStr = idstr; }
public serializableUnityARMatrix4x4(SerializableVector4 v0, SerializableVector4 v1, SerializableVector4 v2, SerializableVector4 v3) { column0 = v0; column1 = v1; column2 = v2; column3 = v3; }