googlevr / tilt-brush-toolkit

Scripts and assets that help you use Tilt Brush data in your creative projects.
Apache License 2.0
744 stars 164 forks source link

definition of ZIsDistance missing #10

Closed linojon closed 6 years ago

linojon commented 6 years ago

Receive this error just opening in unity (2017.2.0p2) the toolkit (tiltbrushtoolkit-UnitySDK-v14.0.0.unitypackage)

Assets/TiltBrush/Scripts/Editor/ModelImportSettings.cs(226,46): error CS0117: TiltBrushToolkit.BrushDescriptor.Semantic' does not contain a definition forZIsDistance'

dubois commented 6 years ago

That's defined on line 28 of Assets/TiltBrush/Scripts/BrushDescriptor.cs. You probably have a duplicate definition somewhere, perhaps from importing Poly Toolkit. Poly Toolkit and Tilt Brush Toolkit cannot currently coexist in the same Unity project, at least not easily.

It may work if you do something like this:

Assets/PolyToolkit/Internal/tbt/Scripts/BrushDescriptor.cs line 28

XyIsUvZIsDistance,
ZIsDistance = XyIsUvZIsDistance,   // <-- add this line

If that works out for you, I can patch TBT so this works a bit better out of the box.

linojon commented 6 years ago

Correct. I was playing with both sdk, separately but in the same project. I have no need for both in the same project and trying them in separate projects worked fine. Thanks.