Class CustomComponent
Represents a custom component without an update handler.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: PiTung.Components
Assembly: PiTung.dll
Syntax
public class CustomComponent
Properties
| Improve this Doc View SourceDisplayName
The name that will be shown in the component selector.
Declaration
public string DisplayName { get; }
Property Value
Type | Description |
---|---|
System.String |
UniqueName
The component's unique name. It should be unique enough so that it doesn't collide with any other mods.
Declaration
public string UniqueName { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceInstantiate()
Spawns a new instance of the custom component.
Declaration
public virtual GameObject Instantiate()
Returns
Type | Description |
---|---|
UnityEngine.GameObject | A new instance of the custom component. |