Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuleTile.cs compile error (override GetTileData) #35

Closed
itsteveg opened this issue Jun 12, 2018 · 6 comments
Closed

RuleTile.cs compile error (override GetTileData) #35

itsteveg opened this issue Jun 12, 2018 · 6 comments

Comments

@itsteveg
Copy link

I just unzipped the 2d-extras in a project and I get an error on RuleTile.cs.
I tried to look through why that would happen but I can't figure it out. Thoughts?

Compile error is:
Assets/Tilemap/Tiles/Rule Tile/Scripts/RuleTile.cs(58,24): error CS0115: `UnityEngine.RuleTile.GetTileData(UnityEngine.Vector3Int, UnityEngine.Tilemaps.ITilemap, ref TileData)' is marked as an override but no suitable method found to override

@ChuanXin-Unity
Copy link
Collaborator

Hi, I'm not certain why this would happen. Could you share the version of Unity you are using to open your project?

@itsteveg
Copy link
Author

Sure thing (and sorry I thought I had put it in there.)
I'm on 2017.4.4f1 LTS w/ mono (personal).

happy to test/try anything.

@ChuanXin-Unity
Copy link
Collaborator

I tried it out with 2017.4.4f1 LTS with MonoDevelop installed but do not get the compilation error with a project with just 2d-extras

Would it be possible to share that particular project so that I can try to reproduce this?

@itsteveg
Copy link
Author

Yes I tried it on a new project and it did work.
The issue is that the project is rather large and I'm a little nervous to share it out but I'd definitely want to let you reproduce it. Can I just grab a scene out or... not entirely sure what to test..

@ChuanXin-Unity
Copy link
Collaborator

If it is a script issue, as shown by the compilation error, your project should just include any script files or plugins with the project settings. I doubt that other assets, like sprites or meshes, will cause this. As you strip down your project, maybe it will be easier to pinpoint the fault?

Remember to send your project as a bug report through Unity and not paste it here! Just add a bug report number here.

@itsteveg
Copy link
Author

Well I took your idea and started removing script on a duplicate project and it is 100% my fault.
I had a ScriptableObject script called TileData which I had completely forgotten about.
That obviously caused the issue. I renamed the SO and fixed the code everywhere and it now works perfectly.

Thank you again for the help on this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants