# Access protected class from other script.

**URL:** https://discussions.unity.com/t/access-protected-class-from-other-script/119152
**Category:** Questions & Answers
**Created:** [October 11, 2014, 8:36am UTC](https://discussions.unity.com/t/access-protected-class-from-other-script/119152 "2014-10-11T08:36:54Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Griffo](https://avatars.discourse-cdn.com/v4/letter/g/cdc98d/32.png) [@Griffo](https://discussions.unity.com/u/Griffo)
#### Post date: [October 11, 2014, 8:36am UTC](https://discussions.unity.com/t/access-protected-class-from-other-script/119152/1 "2014-10-11T08:36:54Z")

</div>

Hi, I’m using some script for one of my own projects from UFPS and would like to know how I would access the Inflictor below from another script with C, as I’m .js I’m not to sure with this, thanks.

```
	protected class Inflictor
	{
		public Transform Transform = null;
		public float DamageTime = 0.0f;
		public Inflictor(Transform transform, float damageTime)
		{
			Transform = transform;
			DamageTime = damageTime;
		}
	}

```

---

<div class="post-metadata">

### Author: ![Kiwasi](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/kiwasi/32/351502_2.png) [@Kiwasi](https://discussions.unity.com/u/Kiwasi)
#### Post date: [October 11, 2014, 8:42am UTC](https://discussions.unity.com/t/access-protected-class-from-other-script/119152/2 "2014-10-11T08:42:22Z")

</div>

It can be done with reflection. But in reality you should just get your access modifiers right and call it public.
