- Home /
how to resolve the error " inconsistent accessibility"
public struct HandPositions{ public Irrelevant.Assets.Script.Vector3 left, right; `` // 3d world positions of hands { ERROR APPEARS HERE IN LEFT AND RIGHT}
public HandPositions (NiteWrapper.SkeletonJointTransformation leftHand, NiteWrapper.SkeletonJointTransformation rightHand) {
left = new Irrelevant.Assets.Script.Vector3(leftHand.pos.x, leftHand.pos.y, leftHand.pos.z);
right = new Irrelevant.Assets.Script.Vector3(rightHand.pos.x, rightHand.pos.y, rightHand.pos.z);
}
}
public class BodyJoint {
public Irrelevant.Assets.Script.Transform transform;
public float radius;
private Irrelevant.Assets.Script.GameObject joint;
private Irrelevant.Assets.Script.GameObject bone;
public BodyJoint () {
}
public **BodyJoint**(string name, Irrelevant.Assets.Script.Vector3 position, Irrelevant.Assets.Script.Quaternion rotation, Irrelevant.Assets.Script.Vector3 direction, float length, float radius)
{ //ERROR APPEARS IN BODYJOINT //create joint transform joint = new Irrelevant.Assets.Script.GameObject(name); transform = joint.transform; transform.position = position; transform.rotation = rotation;
Please give the full error message and the definition of the classes involved. Why are you defining your own Vector3, Gameobject, Quaternion classes etc. rather than using the built-in ones?
I'm not quite sure if you've posted actual code here, but you should remove those ```` and **
Answer by aroohi · Jun 22, 2017 at 06:53 AM
Error:Inconsistent accessibility : field type 'Irrelevant.Assets.Script.Vector3' is less accessible than field 'HandPosition.left'
Your answer

Follow this Question
Related Questions
Does LibSpotify SDK crashes Unity3D? 2 Answers
Linux server .so files not loaded 0 Answers