Skip to content

Resource

Eduard Gushchin edited this page Jul 1, 2026 · 5 revisions

Home | API by Category | Complete API Index | API Compatibility

Field Value
Full name Electron2D.Resource
Namespace Electron2D
Kind class
Category Resources

Overview

Represents the resource type.

Syntax

public class Electron2D.Resource : Electron2D.RefCounted

Godot 4.7 C# profile compatibility

Profile: Electron2D 0.1.0 2D
Status: Partial / Not verified
Out of profile: yes
Godot reference: Resource

ResourceName, ResourcePath, ResourceLocalToScene, ResourceSceneUniqueId and TakeOverPath().

Remarks

This type is part of the Electron2D 0.1.0 Preview public API.

Thread Safety

Instances of this type are not synchronized. Access them from the thread that owns the object unless the member documentation states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

Members

Member Kind Summary
ResourceLocalToScene Property Gets or sets the resource local to scene value.
ResourceName Property Gets or sets the resource name value.
ResourcePath Property Gets or sets the resource path value.
ResourceSceneUniqueId Property Gets or sets the resource scene unique id value.
Electron2D.Resource() Constructor Initializes a new instance of the Resource type.
TakeOverPath(System.String) Method Executes the take over path operation.

Member Details

ResourceLocalToScene

Kind: Property

public System.Boolean ResourceLocalToScene { get; set; }

Summary

Gets or sets the resource local to scene value.

Remarks

This property follows the validation and lifetime rules of its declaring type.

Value

The current resource local to scene value.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Resource

ResourceName

Kind: Property

public System.String ResourceName { get; set; }

Summary

Gets or sets the resource name value.

Remarks

This property follows the validation and lifetime rules of its declaring type.

Value

The current resource name value.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Resource

ResourcePath

Kind: Property

public System.String ResourcePath { get; }

Summary

Gets or sets the resource path value.

Remarks

This property follows the validation and lifetime rules of its declaring type.

Value

The current resource path value.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Resource

ResourceSceneUniqueId

Kind: Property

public System.String ResourceSceneUniqueId { get; set; }

Summary

Gets or sets the resource scene unique id value.

Remarks

This property follows the validation and lifetime rules of its declaring type.

Value

The current resource scene unique id value.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Resource

Electron2D.Resource()

Kind: Constructor

public Electron2D.Resource()

Summary

Initializes a new instance of the Resource type.

Remarks

The new instance follows the lifetime and validation rules of its declaring type.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Resource

TakeOverPath(System.String)

Kind: Method

public System.Void TakeOverPath(System.String)(System.String path)

Summary

Executes the take over path operation.

Remarks

This method follows the validation and lifetime rules of its declaring type.

Parameters

  • path: The path value.

Thread Safety

This member is not synchronized. Call it from the thread that owns the related object unless the declaring type states otherwise.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Resource

Clone this wiki locally