TextScript

class TextScript : Object

Description

Minimal text representation of Force C# script. Only contains text, and binary script data. If you developer of this engine you can create additional script system using this class.

Inherited Properties

name

Name of this object.

Inherited Methods

GetObjectID

Returns the ID of current object. ID is unique only per one runtime session. Each sessions of runtime/play mode will change the ID of object. Not recommend equal object by ID if this not one runtime session.

Static Methods

Destroy

Destroyes Component or GameObject or Asset. If Component, GameObject, Asset is null this method does nothing.

If obj is type of GameObject it will be destoryed after OnUpdate() loop is finished. If object attached to MonoScript, object calls OnDestroy() method to free all user resources, detach object from script and remove all components. If GameObject is null this method does nothing. If obj is type of Component then immediately detach Component from assisated instance of GameObject. If component is MonoScript, object calls OnDestroy() method-event to free all user resources. If Component is null this method does nothing.

If obj is type of Asset (Texture2D, AudioClip, Font, etc) it immidiatly removes it if possible.

Last updated