Interface Scene

All Known Implementing Classes:
Scene.CppProxy

public interface Scene
A class representing a displayable scene. Aggregates in one place the hierarchy of Entities with their Components, AssetManager and RenderList and makes it work all together.
  • Method Details

    • setName

      void setName(@NonNull String name)
      Set a new name for a scene. The name could be empty.
    • getName

      @NonNull String getName()
      Get a scene name.
    • getRoot

      @Nullable Entity getRoot()
      Get the root of entities hierarchy. It always exists and has a name "Root".
    • getAssetManager

      @Nullable AssetManager getAssetManager()
      Get the AssetManager of a current scene. It always exists.
    • addLayer

      void addLayer(@Nullable Layer layer)
    • getLayers

      @NonNull ArrayList<Layer> getLayers()
    • getComponents

      @NonNull ArrayList<Component> getComponents(@NonNull ComponentType type)
      Get all components present in this scene of specified type
    • getLayer

      @Nullable Layer getLayer(@NonNull String layerName)
      Return first found layer with name `layerName` or NULL if such layer doesn't exist.
    • removeLayer

      void removeLayer(@Nullable Layer layer)
    • setRenderList

      void setRenderList(@Nullable RenderList renderList)
    • getRenderList

      @Nullable RenderList getRenderList()
    • clearRenderList

      void clearRenderList()
    • getCamera

      @Nullable Camera getCamera()
    • enableRecognizerFeature

      void enableRecognizerFeature(@NonNull FeatureId feature)
    • disableRecognizerFeature

      void disableRecognizerFeature(@NonNull FeatureId feature)
    • addFeatureParam

      void addFeatureParam(@NonNull FeatureId feature, @NonNull ArrayList<FeatureParameter> params)
    • addEffectEvent

      void addEffectEvent(@NonNull String name, @NonNull HashMap<String,String> params)
    • getTriggerStatus

      @NonNull TriggerStatusType getTriggerStatus(@NonNull TriggerType trigger)
    • createEntity

      @Nullable Entity createEntity(@NonNull String name)
    • getNativeContext

      long getNativeContext()
    • getSurfaceWidth

      int getSurfaceWidth()
    • getSurfaceHeight

      int getSurfaceHeight()
    • findGlobalMaterialParameter

      @Nullable Parameter findGlobalMaterialParameter(@NonNull String name)
      find global material parameter by name
      Parameters:
      name - (string)
      Returns:
      parameter (parameter) or null