c# - error in unity 3d loading script -
when m loading script in unity m facing given below m new learner kindly tell me how fix .
missingfieldexception: unityengine.transform.position boo.lang.runtime.dynamicdispatching.propertydispatcherfactory.findextension (ienumerable`1 candidates) boo.lang.runtime.dynamicdispatching.propertydispatcherfactory.create (setorget gos) boo.lang.runtime.dynamicdispatching.propertydispatcherfactory.createsetter () boo.lang.runtime.runtimeservices.docreatepropsetdispatcher (system.object target, system.type type, system.string name, system.object value) boo.lang.runtime.runtimeservices.createpropsetdispatcher (system.object target, system.string name, system.object value) boo.lang.runtime.runtimeservices+c__anonstorey19.<>m__f () boo.lang.runtime.dynamicdispatching.dispatchercache.get (boo.lang.runtime.dynamicdispatching.dispatcherkey key, boo.lang.runtime.dynamicdispatching.dispatcherfactory factory) boo.lang.runtime.runtimeservices.getdispatcher (system.object target, system.string cachekeyname, system.type[] cachekeytypes, boo.lang.runtime.dynamicdispatching.dispatcherfactory factory) boo.lang.runtime.runtimeservices.getdispatcher (system.object target, system.object[] args, system.string cachekeyname, boo.lang.runtime.dynamicdispatching.dispatcherfactory factory) boo.lang.runtime.runtimeservices.setproperty (system.object target, system.string name, system.object value) pick up.onmousedown () (at assets/scripts/pick up.js:8) unityengine.sendmouseevents:dosendmouseevents(int32)
position should written lowercase "p". classes written capital first (eg. transform, vector3, gameobject). classes hold definitions of objects, no values.
class instances "transform.position" lowercase first letter. hold real values of objects. change positions, rotate objects, change materials, etc.
my guess: in "pick up.js", see if try call instance "transform.position" , rename "transform.position".
Comments
Post a Comment