I followed the first steps to set up my unity project but when i import the asset i get compiler errors, which i am not able to understand or to solve.
Compiler Errors:
Assets\Creator Kit - RPG\Scripts\Tiles\Isometric Rule Tile\Editor\IsometricRuleTileEditor.cs(8,26): error CS0433: The type ‘IsometricRuleTile’ exists in both ‘Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’ and ‘Unity.2D.Tilemap.Extras, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’ Assets\Creator Kit - RPG\Scripts\Tiles\Isometric Rule Tile\Editor\IsometricRuleTileEditor.cs(19,32): error CS0115: ‘IsometricRuleTileEditor.RuleMatrixOnGUI(RuleTile, Rect, RuleTile.TilingRule)’: no suitable method found to override Assets\Creator Kit - RPG\Scripts\Tiles\Isometric Rule Tile\Editor\IsometricRuleTileEditor.cs(72,32): error CS0507: ‘IsometricRuleTileEditor.ContainsMousePosition(Rect)’: cannot change access modifiers when overriding ‘public’ inherited member ‘RuleTileEditor.ContainsMousePosition(Rect)’
I added an example picture of the errors in the c# script, if you need more → let me know
Do i have to download/install/add more librarys or anything else to my unity environment?
Is anyone having same issues?
Does anyone know how to fix?
I already tried to set the editor version to the same one, which the project/asset has…
Hey, so this error is saying that the class IsometricRuleTile exists in your project, but also in Unity.2D.Tilemap.Extras
So, it doesn’t know where to get the definition from.
If you back up your project and then delete the IsometricRuleTile.cs file in your project that might fix the problem.
If that doesn’t fix the problem, you could edit the namespace inside IsometricRuleTile.cs on your project and change it to something like namespace CreatorKit and give that a try instead.
Hello, when I did it the following error appeared:
Assets\Creator Kit - RPG\Scripts\Tiles\Isometric Rule Tile\Editor\IsometricRuleTileEditor.cs(81,1): error CS1022: Type or namespace definition, or end-of-file expected
You gotta do a few things to get this working. Here’s what worked for me.
Go to : Assets\Creator Kit - RPG\Scripts\Tiles\Isometric Rule Tile\Editor\IsometricRuleTileEditor.cs, once inside, look for: [ public override void RuleMatrixOnGUI(RuleTile ruleTile, Rect rect, RuleTile.TilingRule tilingRule) ] and comment out the whole thing and save it.
Within the same file, look for: [ internal override bool ContainsMousePosition(Rect rect) ], now change it from “internal” to “public”.
Go to: Assets\Creator Kit - RPG\Scripts\Tiles\Isometric Rule Tile\IsometricRuleTile.cs, once inside, look for [ public class IsometricRuleTile<T> : IsometricRuleTile ], now replace the name “IsometricRuleTile” with anything other that what it is now throughout the code. I used the word “CreatorKit” It should look like:
namespace UnityEngine
{
public class IsometricRuleTile<T> : CreatorKit //IsometricRuleTile
{
public sealed override Type m_NeighborType { get { return typeof(T); } }
}
[Serializable]
[CreateAssetMenu(fileName = "New Isometric Rule Tile", menuName = "Tiles/Isometric Rule Tile")]
public class CreatorKit //IsometricRuleTile : RuleTile
{
// This has no differences with the RuleTile
}
}