Skip to content

version 2.40 GetSubArray() error #88

@MBrandt-NASA

Description

@MBrandt-NASA

Hi,

I just downloaded the latest version (2.40) into a clean Unity project using 2019.1.2f1 and currently see this error after importing the asset:

Assets\PointCloudTools\PointCloudViewerDX11\Scripts\PointCloudViewerTilesDX11.cs(1347,61): error CS1061: 'NativeArray' does not contain a definition for 'GetSubArray' and no accessible extension method 'GetSubArray' accepting a first argument of type 'NativeArray' could be found (are you missing a using directive or an assembly reference?)

The code where the error occurs is here:

#if UNITY_2019_1_OR_NEWER if (useNativeArrays == true) { point.x = tiles[i].pointsNative.GetSubArray(k * 3 * 4, 4).Reinterpret<float>(1)[0]; point.y = tiles[i].pointsNative.GetSubArray(k * 3 * 4 + 4, 4).Reinterpret<float>(1)[0]; point.z = tiles[i].pointsNative.GetSubArray(k * 3 * 4 + 4 + 4, 4).Reinterpret<float>(1)[0]; }

Any ideas? :)

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions