Jump to content

Accessing fields of the types.


AnniXa
 Share

Recommended Posts

Hey, i just start with LW, and i wanted to convert some stuff that i wrote with minib3d now to LW,

but it seems that it is not possible to access the fields of all the types?

 

when i for example do this:

 

Local mesh:TMesh = CreateCube()
Print mesh.CountSurfaces()

 

then i get an error "Unhandled Exception:Attempt to access field or method of Null object" <- somewhere, where it cant be debugged because of missing source.

 

also when i use the function variant with

 

Print CountSurfaces(mesh)

 

the same error appears.

 

Do i forget to include something, or whats wrong here?

Whuts wroong?

Link to comment
Share on other sites

Hey, i just start with LW, and i wanted to convert some stuff that i wrote with minib3d now to LW,

but it seems that it is not possible to access the fields of all the types?

 

when i for example do this:

 

Local mesh:TMesh = CreateCube()
Print mesh.CountSurfaces()

 

then i get an error "Unhandled Exception:Attempt to access field or method of Null object" <- somewhere, where it cant be debugged because of missing source.

 

also when i use the function variant with

 

Print CountSurfaces(mesh)

 

the same error appears.

 

Do i forget to include something, or whats wrong here?

 

 

whaa! ok ignore / delete this post. i found the problem, it was the material stuff somewhere else

Whuts wroong?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...