Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by aroohi · Jun 22, 2017 at 05:42 AM · c# dll

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;

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image tanoshimi · Jun 22, 2017 at 05:47 AM 0
Share

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?

avatar image hexagonius · Jun 22, 2017 at 06:55 AM 0
Share

I'm not quite sure if you've posted actual code here, but you should remove those ```` and **

1 Reply

· Add your reply
  • Sort: 
avatar image
0

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'

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image hexagonius · Jun 22, 2017 at 06:57 AM 0
Share

Irrelevant.Assets.Script.Vector3 is not public

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

67 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Does LibSpotify SDK crashes Unity3D? 2 Answers

Linux server .so files not loaded 0 Answers

Is it possible to pass Array (containing class objects) from C# to C++ and add / edit objects from inside 0 Answers

How can i load resources with a path?? c# 1 Answer

Can load additional c# script after compile? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges